censyscopy

package
v1.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Description

func Description() string

Description returns the copy for the description of this CLI.

func DocumentationCLI

func DocumentationCLI(w io.Writer) string

DocumentationCLI returns the copy for the documentation of this CLI. Takes a writer to determine if the output is a TTY for link rendering.

func DocumentationOrgID

func DocumentationOrgID(w io.Writer) string

DocumentationOrgID returns the copy for the documentation for obtaining an organization ID. Takes a writer to determine if the output is a TTY for link rendering.

func DocumentationPAT

func DocumentationPAT(w io.Writer) string

DocumentationPAT returns the copy for the documentation for obtaining a personal access token. Takes a writer to determine if the output is a TTY for link rendering.

func Title

func Title() string

Title returns the copy for the title of this CLI.

Types

type CencliLink string
const (
	CencliRepo                      CencliLink = "https://github.com/censys/cencli"
	CencliDocs                      CencliLink = "https://docs.censys.com/docs/platform-cli"
	CensysPATInstructions           CencliLink = "https://docs.censys.com/reference/get-started#step-2-create-a-personal-access-token"
	CensysOrgIDInstructions         CencliLink = "https://docs.censys.com/reference/get-started#step-3-find-and-use-your-organization-id-optional"
	CensysHostLookupTemplate        CencliLink = "https://platform.censys.io/hosts/{host_id}"
	CensysCertificateLookupTemplate CencliLink = "https://platform.censys.io/certificates/{certificate_id}"
	CensysWebPropertyLookupTemplate CencliLink = "https://platform.censys.io/web/{hostname:port}"
)
func CensysCertificateLookupLink(certID string) CencliLink

CensysCertificateLookupLink creates a link to the Censys platform for a given certificate ID.

func CensysHostLookupLink(hostID string) CencliLink

CensysHostLookupLink creates a link to the Censys platform for a given host ID.

func CensysWebPropertyLookupLink(hostport string) CencliLink

CensysWebPropertyLookupLink creates a link to the Censys platform for a given web property (hostname:port).

func (CencliLink) Render

func (l CencliLink) Render(anchorText string) string

Render returns a terminal-friendly clickable link. This should only be used if the result is being written to a TTY. If no anchor text is provided, the link's URL will be used as the anchor text, with the protocol stripped.

func (CencliLink) String

func (l CencliLink) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL