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 ¶
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 ¶
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 ¶
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.
Types ¶
type CencliLink ¶
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 ¶ added in v0.1.0
func CensysCertificateLookupLink(certID string) CencliLink
CensysCertificateLookupLink creates a link to the Censys platform for a given certificate ID.
func CensysHostLookupLink ¶ added in v0.1.0
func CensysHostLookupLink(hostID string) CencliLink
CensysHostLookupLink creates a link to the Censys platform for a given host ID.
func CensysWebPropertyLookupLink ¶ added in v0.1.0
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