options

package
v0.74.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultOIDCIssuerURL = "https://oauth2.sigstore.dev/auth"
View Source
const DefaultRekorURL = "https://rekor.sigstore.dev"

Variables

This section is empty.

Functions

func IsVerbose

func IsVerbose(app *config.Application) (result bool)

func MakeWriter added in v0.46.0

func MakeWriter(outputs []string, defaultFile, templateFilePath string) (sbom.Writer, error)

makeWriter creates a sbom.Writer for output or returns an error. this will either return a valid writer or an error but neither both and if there is no error, sbom.Writer.Close() should be called

Types

type AttestOptions

type AttestOptions struct {
	Key string
}

func (AttestOptions) AddFlags

func (o AttestOptions) AddFlags(cmd *cobra.Command, v *viper.Viper) error

type FulcioOptions added in v0.46.0

type FulcioOptions struct {
	URL                      string
	IdentityToken            string
	InsecureSkipFulcioVerify bool
}

FulcioOptions is the wrapper for Fulcio related options.

func (*FulcioOptions) AddFlags added in v0.46.0

func (o *FulcioOptions) AddFlags(cmd *cobra.Command, v *viper.Viper) error

AddFlags implements Interface

type Interface

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

type OIDCOptions added in v0.46.0

type OIDCOptions struct {
	Issuer      string
	ClientID    string
	RedirectURL string
}

OIDCOptions is the wrapper for OIDC related options.

func (*OIDCOptions) AddFlags added in v0.46.0

func (o *OIDCOptions) AddFlags(cmd *cobra.Command, v *viper.Viper) error

AddFlags implements Interface

type PackagesOptions

type PackagesOptions struct {
	Scope              string
	Output             []string
	OutputTemplatePath string
	File               string
	Platform           string
	Exclude            []string
	Catalogers         []string
	Name               string
}

func (*PackagesOptions) AddFlags

func (o *PackagesOptions) AddFlags(cmd *cobra.Command, v *viper.Viper) error

type RekorOptions added in v0.46.0

type RekorOptions struct {
	URL string
}

RekorOptions is the wrapper for Rekor related options.

func (*RekorOptions) AddFlags added in v0.46.0

func (o *RekorOptions) AddFlags(cmd *cobra.Command, v *viper.Viper) error

AddFlags implements Interface

type RootOptions

type RootOptions struct {
	Config  string
	Quiet   bool
	Verbose int
}

func (*RootOptions) AddFlags

func (o *RootOptions) AddFlags(cmd *cobra.Command, v *viper.Viper) error

type VersionOptions

type VersionOptions struct {
	Output string
}

func (*VersionOptions) AddFlags

func (o *VersionOptions) AddFlags(cmd *cobra.Command, v *viper.Viper) error

Jump to

Keyboard shortcuts

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