Documentation ¶
Index ¶
- Constants
- func GitRevision() string
- func StaticBuild() bool
- func StatusColor(status Status) (color.Attribute, color.Attribute, color.Attribute)
- func StatusNameStyled(status Status) string
- func StyleAffordance() (color.Attribute, color.Attribute, color.Attribute)
- func StyleError() (color.Attribute, color.Attribute, color.Attribute)
- func StyleSuccess() (color.Attribute, color.Attribute, color.Attribute)
- func StyleWarning() (color.Attribute, color.Attribute, color.Attribute)
- func UserAgent() string
- func Version() string
- type Level
- type Status
Constants ¶
View Source
const ( CasApiKey string = "CAS_API_KEY" CasHost string = "CAS_HOST" CasPort string = "CAS_PORT" CasCert string = "CAS_CERT" CasNoTls string = "CAS_NO_TLS" CasSkipTlsVerify string = "CAS_SKIP_TLS_VERIFY" )
cas environment variable names
View Source
const BomEntryKeyName string = "BOM"
View Source
const CasApiKeyDesc string = "Community Attestation Service api key"
View Source
const CasCIAttribDesc string = "detect CI environment variables context if presents and inject "
View Source
const CasCertPathDesc string = "local or absolute path to a certificate file needed to set up tls connection to a Community Attestation Service"
View Source
const CasCmdHeaderName = "cas-command"
View Source
const CasDefaultExitCode = 0
View Source
const CasEnforceSignatureVerifyDesc string = "if this flag is provided cas will disable signature auto trusting when connecting to a new Community Attestation Service"
View Source
const CasExitCode string = "override default exit codes in case of success"
View Source
const CasHostFlagDesc string = "if set with host, action will be route to a Community Attestation Service"
View Source
const CasLedgerDesc string = "Community Attestation Service ledger. Required when a multi-ledger API key is used."
View Source
const CasLedgerHeaderName string = "ledger"
View Source
const CasNoTlsDesc string = "allow insecure connections when connecting to a Community Attestation Service"
View Source
const CasNotarizeCmdHeaderValue = "notarize"
View Source
const CasPluginTypeHeaderName string = "plugin-type"
Community Attestation Service
View Source
const CasPluginTypeHeaderValue string = "vcn"
View Source
const CasPortFlagDesc string = "" /* 130-byte string literal not displayed */
View Source
const CasPrefix string = "cas"
View Source
const CasSigningPubKeyDesc string = "" /* 212-byte string literal not displayed */
View Source
const CasSigningPubKeyFileName = ".cas-trusted-signing-pub-key"
View Source
const CasSigningPubKeyFileNameDesc string = "" /* 318-byte string literal not displayed */
View Source
const CasSkipTlsVerifyDesc string = "disables tls certificate verification when connecting to a Community Attestation Service"
View Source
const CasUidDesc string = "authenticate on a specific artifact uid"
View Source
const CasVerifyCmdHeaderValue = "verify"
View Source
const CasVersionHeaderName string = "version"
View Source
const DateShortForm = "2006/1/2-15:04:05"
View Source
const IndexDateRangePrefix = "_INDEX.ITEM.INSERTION-DATE."
Variables ¶
This section is empty.
Functions ¶
func GitRevision ¶
func GitRevision() string
GitRevision returns the current CodeNotary cas git revision string
func StaticBuild ¶
func StaticBuild() bool
StaticBuild returns when the current cas executable has been statically linked against libraries
func StatusColor ¶
StatusColor returns color.Attribute(s) for the given status
func StatusNameStyled ¶
StatusNameStyled returns the colorized name of the given status as string
func StyleAffordance ¶
StyleAffordance returns color.Attribute(s) for affordance messages
func StyleError ¶
StyleError returns color.Attribute(s) for error messages
func StyleSuccess ¶
StyleSuccess returns color.Attribute(s) for success messages
func StyleWarning ¶
StyleWarning returns color.Attribute(s) for warning messages
Types ¶
type Level ¶
type Level int64
Level is the type for all possible signature levels
Click to show internal directories.
Click to hide internal directories.