options

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultAttestors = []string{"environment", "git"}
View Source
var OneRequiredPKSignFlags = []string{
	"signer-file-key-path",
	"policy-ca",
	"signer-kms-ref",
}
View Source
var OneRequiredPKVerifyFlags = []string{
	"publickey",
	"policy-ca",
	"policy-ca-roots",
	"policy-ca-intermediates",
	"verifier-kms-ref",
}
View Source
var OneRequiredSubjectFlags = []string{
	"artifactfile",
	"subjects",
}
View Source
var RequiredRunFlags = []string{
	"step",
}
View Source
var RequiredSignFlags = []string{
	"infile",
	"outfile",
}
View Source
var RequiredVerifyFlags = []string{
	"policy",
}

Functions

This section is empty.

Types

type ArchivistaOptions

type ArchivistaOptions struct {
	Enable bool
	Url    string
}

func (*ArchivistaOptions) AddFlags

func (o *ArchivistaOptions) AddFlags(cmd *cobra.Command)

type Interface

type Interface interface {
	// AddFlags adds this options' flags to the cobra command.
	AddFlags(cmd *cobra.Command)
}

type KMSSignerProviderOptions added in v0.3.0

type KMSSignerProviderOptions map[string][]func(signer.SignerProvider) (signer.SignerProvider, error)

func (*KMSSignerProviderOptions) AddFlags added in v0.3.0

func (ko *KMSSignerProviderOptions) AddFlags(cmd *cobra.Command)

type KMSVerifierProviderOptions added in v0.3.0

type KMSVerifierProviderOptions map[string][]func(signer.SignerProvider) (signer.SignerProvider, error)

func (*KMSVerifierProviderOptions) AddFlags added in v0.3.0

func (ko *KMSVerifierProviderOptions) AddFlags(cmd *cobra.Command)

type RootOptions

type RootOptions struct {
	Config         string
	LogLevel       string
	CpuProfileFile string
	MemProfileFile string
}

func (*RootOptions) AddFlags

func (ro *RootOptions) AddFlags(cmd *cobra.Command)

type RunOptions

type RunOptions struct {
	SignerOptions            SignerOptions
	KMSSignerProviderOptions KMSSignerProviderOptions
	ArchivistaOptions        ArchivistaOptions
	WorkingDir               string
	Attestations             []string
	DirHashGlobs             []string
	Hashes                   []string
	OutFilePath              string
	StepName                 string
	Tracing                  bool
	TimestampServers         []string
	AttestorOptSetters       map[string][]func(attestation.Attestor) (attestation.Attestor, error)
}

func (*RunOptions) AddFlags

func (ro *RunOptions) AddFlags(cmd *cobra.Command)

type SignOptions

type SignOptions struct {
	SignerOptions            SignerOptions
	KMSSignerProviderOptions KMSSignerProviderOptions
	DataType                 string
	OutFilePath              string
	InFilePath               string
	TimestampServers         []string
}

func (*SignOptions) AddFlags

func (so *SignOptions) AddFlags(cmd *cobra.Command)

type SignerOptions

type SignerOptions map[string][]func(signer.SignerProvider) (signer.SignerProvider, error)

func (*SignerOptions) AddFlags

func (so *SignerOptions) AddFlags(cmd *cobra.Command)

type VerifierOptions added in v0.3.0

type VerifierOptions map[string][]func(signer.VerifierProvider) (signer.VerifierProvider, error)

func (*VerifierOptions) AddFlags added in v0.3.0

func (vo *VerifierOptions) AddFlags(cmd *cobra.Command)

type VerifyOptions

type VerifyOptions struct {
	ArchivistaOptions          ArchivistaOptions
	VerifierOptions            VerifierOptions
	KMSVerifierProviderOptions KMSVerifierProviderOptions
	KeyPath                    string
	AttestationFilePaths       []string
	PolicyFilePath             string
	ArtifactFilePath           string
	ArtifactDirectoryPath      string
	AdditionalSubjects         []string
	PolicyFulcioCertExtensions certificate.Extensions
	PolicyCARootPaths          []string
	PolicyCAIntermediatePaths  []string
	PolicyTimestampServers     []string
	PolicyCommonName           string
	PolicyDNSNames             []string
	PolicyEmails               []string
	PolicyOrganizations        []string
	PolicyURIs                 []string
}

func (*VerifyOptions) AddFlags

func (vo *VerifyOptions) AddFlags(cmd *cobra.Command)

Jump to

Keyboard shortcuts

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