options

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

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

type KeyOptions

type KeyOptions struct {
	KeyPath           string
	CertPath          string
	IntermediatePaths []string
	SpiffePath        string
}

func (*KeyOptions) AddFlags

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

type RootOptions

type RootOptions struct {
	Config   string
	LogLevel string
}

func (*RootOptions) AddFlags

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

type RunOptions

type RunOptions struct {
	KeyOptions   KeyOptions
	WorkingDir   string
	Attestations []string
	OutFilePath  string
	StepName     string
	RekorServer  string
	Tracing      bool
}

func (*RunOptions) AddFlags

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

type SignOptions

type SignOptions struct {
	KeyOptions  KeyOptions
	DataType    string
	OutFilePath string
	InFilePath  string
}

func (*SignOptions) AddFlags

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

type VerifyOptions

type VerifyOptions struct {
	KeyPath              string
	AttestationFilePaths []string
	PolicyFilePath       string
	ArtifactFilePath     string
	RekorServer          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