options

package
v0.45.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatAliases

func FormatAliases(ids ...sbom.FormatID) (aliases []string)

func IsVerbose

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

Types

type AttestOptions

type AttestOptions struct {
	Key string
}

func (*AttestOptions) AddFlags

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

type Interface

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

type PackagesOptions

type PackagesOptions struct {
	Scope                  string
	Output                 []string
	File                   string
	Platform               string
	Host                   string
	Username               string
	Password               string
	Dockerfile             string
	Exclude                []string
	OverwriteExistingImage bool
	ImportTimeout          uint
}

func (*PackagesOptions) AddFlags

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

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