meta

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

func StatusColor(status Status) (color.Attribute, color.Attribute, color.Attribute)

StatusColor returns color.Attribute(s) for the given status

func StatusNameStyled

func StatusNameStyled(status Status) string

StatusNameStyled returns the colorized name of the given status as string

func StyleAffordance

func StyleAffordance() (color.Attribute, color.Attribute, color.Attribute)

StyleAffordance returns color.Attribute(s) for affordance messages

func StyleError

func StyleError() (color.Attribute, color.Attribute, color.Attribute)

StyleError returns color.Attribute(s) for error messages

func StyleSuccess

func StyleSuccess() (color.Attribute, color.Attribute, color.Attribute)

StyleSuccess returns color.Attribute(s) for success messages

func StyleWarning

func StyleWarning() (color.Attribute, color.Attribute, color.Attribute)

StyleWarning returns color.Attribute(s) for warning messages

func UserAgent

func UserAgent() string

UserAgent returns the CAS User-Agent string

func Version

func Version() string

Version returns the current CodeNotary cas version string

Types

type Level

type Level int64

Level is the type for all possible signature levels

const (
	LevelDisabled         Level = -1
	LevelUnknown          Level = 0
	LevelEmailVerified    Level = 1
	LevelSocialVerified   Level = 2
	LevelIDVerified       Level = 3
	LevelLocationVerified Level = 4
	LevelCNLC             Level = 98
	LevelVchain           Level = 99
)

Allowed Level values

func (Level) String

func (l Level) String() string

String returns the name of the given level as string.

type Status

type Status int64

Status is the type for all possible asset statuses

const (
	StatusTrusted       Status = 0
	StatusUntrusted     Status = 1
	StatusUnknown       Status = 2
	StatusUnsupported   Status = 3
	StatusApikeyRevoked Status = 4
)

Allowed Status values

func (Status) Int

func (s Status) Int() int

func (Status) String

func (s Status) String() string

String returns the name of the given status as string

Jump to

Keyboard shortcuts

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