Documentation
¶
Index ¶
- func BoolVarWithViper(cmd *cobra.Command, p *bool, viperPrefix, name string, value bool, ...)
- func Float64VarWithViper(cmd *cobra.Command, p *float64, viperPrefix, name string, value float64, ...)
- func IntVarWithViper(cmd *cobra.Command, p *int, viperPrefix, name string, value int, usage string)
- func PersistentStringVarWithViper(cmd *cobra.Command, p *string, viperPrefix, name, value, usage string)
- func StringSliceVarWithViper(cmd *cobra.Command, p *[]string, viperPrefix, name string, value []string, ...)
- func StringVarWithViper(cmd *cobra.Command, p *string, viperPrefix, name, value, usage string)
- type BuildOptions
- type OpenStackCoreFlags
- type OpenStackFlags
- type OpenStackInstanceFlags
- type PublishOptions
- type S3Flags
- type ScanOptions
- type SignGenerateOptions
- type SignImageOptions
- type SignOptions
- type SignValidateOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolVarWithViper ¶
func Float64VarWithViper ¶
func IntVarWithViper ¶
func StringSliceVarWithViper ¶
Types ¶
type BuildOptions ¶
type BuildOptions struct {
OpenStackFlags
S3Flags
Verbose bool
BuildOS string
ImagePrefix string
ImageRepo string
CrictlVersion string
CniVersion string
KubeVersion string
ExtraDebs string
AddFalco bool
AddTrivy bool
AddNvidiaSupport bool
NvidiaVersion string
NvidiaBucket string
NvidiaInstallerLocation string
NvidiaTOKLocation string
NvidiaGriddFeatureType int
}
func (*BuildOptions) AddFlags ¶
func (o *BuildOptions) AddFlags(cmd *cobra.Command, imageBuilderRepo string)
func (*BuildOptions) SetOptionsFromViper ¶
func (o *BuildOptions) SetOptionsFromViper()
type OpenStackCoreFlags ¶
OpenStackCoreFlags are the core requirements for any interaction with the openstack cloud.
func (*OpenStackCoreFlags) AddFlags ¶
func (o *OpenStackCoreFlags) AddFlags(cmd *cobra.Command, viperPrefix string)
func (*OpenStackCoreFlags) SetOptionsFromViper ¶
func (o *OpenStackCoreFlags) SetOptionsFromViper()
SetOptionsFromViper configures additional options passed in via viper for the struct.
type OpenStackFlags ¶
type OpenStackFlags struct {
OpenStackCoreFlags
OpenStackInstanceFlags
SourceImageID string
UseFloatingIP bool
FloatingIPNetworkName string
ImageVisibility string
ImageDiskFormat string
VolumeType string
RootfsUUID string
}
OpenStackFlags are explicitly for OpenStack based clouds and defines settings that pertain only to that cloud type.
func (*OpenStackFlags) AddFlags ¶
func (o *OpenStackFlags) AddFlags(cmd *cobra.Command, viperPrefix string)
func (*OpenStackFlags) SetOptionsFromViper ¶
func (o *OpenStackFlags) SetOptionsFromViper()
SetOptionsFromViper configures additional options passed in via viper for the struct.
type OpenStackInstanceFlags ¶
OpenStackInstanceFlags are Additional flags that can would be required for other steps such as scan, sign and publish.
func (*OpenStackInstanceFlags) AddFlags ¶
func (o *OpenStackInstanceFlags) AddFlags(cmd *cobra.Command, viperPrefix string)
func (*OpenStackInstanceFlags) SetOptionsFromViper ¶
func (o *OpenStackInstanceFlags) SetOptionsFromViper()
SetOptionsFromViper configures additional options passed in via viper for the struct.
type PublishOptions ¶
type PublishOptions struct {
OpenStackCoreFlags
ImageID string
GithubUser string
GithubAccount string
GithubProject string
GithubToken string
GithubPagesBranch string
ResultsFile string
}
func (*PublishOptions) AddFlags ¶
func (o *PublishOptions) AddFlags(cmd *cobra.Command)
func (*PublishOptions) SetOptionsFromViper ¶
func (o *PublishOptions) SetOptionsFromViper()
type S3Flags ¶
func (*S3Flags) SetOptionsFromViper ¶
func (o *S3Flags) SetOptionsFromViper()
type ScanOptions ¶
type ScanOptions struct {
OpenStackFlags
S3Flags
ImageID string
AutoDeleteImage bool
SkipCVECheck bool
MaxSeverityScore float64
MaxSeverityType string
TrivyignoreBucket string
TrivyignoreFilename string
TrivyignoreList []string
}
func (*ScanOptions) AddFlags ¶
func (o *ScanOptions) AddFlags(cmd *cobra.Command)
func (*ScanOptions) SetOptionsFromViper ¶
func (o *ScanOptions) SetOptionsFromViper()
type SignGenerateOptions ¶
type SignGenerateOptions struct {
Path string
}
SignGenerateOptions contains additional options for the 'generate' subcommand.
func (*SignGenerateOptions) AddFlags ¶
func (o *SignGenerateOptions) AddFlags(cmd *cobra.Command)
AddFlags adds flags to the 'generate' subcommand and binds them to the 'generate' options.
func (*SignGenerateOptions) SetOptionsFromViper ¶
func (o *SignGenerateOptions) SetOptionsFromViper()
SetOptionsFromViper configures options passed in via viper for the struct.
type SignImageOptions ¶
type SignImageOptions struct {
SignOptions
PrivateKey string
}
SignImageOptions contains additional options for the 'image' subcommand.
func (*SignImageOptions) AddFlags ¶
func (o *SignImageOptions) AddFlags(cmd *cobra.Command)
AddFlags adds flags to the sign 'image' command and binds them to the sign 'image' options.
func (*SignImageOptions) SetOptionsFromViper ¶
func (o *SignImageOptions) SetOptionsFromViper()
SetOptionsFromViper configures options passed in via viper for the struct.
type SignOptions ¶
type SignOptions struct {
OpenStackCoreFlags
VaultURL string
VaultToken string
ImageID string
}
SignOptions contains options for the 'sign' command. These will be available to the subcommands and not configured directly for the sign command itself.
func (*SignOptions) AddFlags ¶
func (o *SignOptions) AddFlags(cmd *cobra.Command)
AddFlags adds additional flags to the subcommands that call this.
func (*SignOptions) SetOptionsFromViper ¶
func (o *SignOptions) SetOptionsFromViper()
SetOptionsFromViper configures additional options passed in via viper for the struct from any subcommands.
type SignValidateOptions ¶
type SignValidateOptions struct {
SignOptions
PublicKey string
Digest string
}
SignValidateOptions contains additional options for the 'validate' subcommand.
func (*SignValidateOptions) AddFlags ¶
func (o *SignValidateOptions) AddFlags(cmd *cobra.Command)
AddFlags adds flags to the 'validate' subcommand and binds them to the 'validate' options.
func (*SignValidateOptions) SetOptionsFromViper ¶
func (o *SignValidateOptions) SetOptionsFromViper()
SetOptionsFromViper configures options passed in via viper for the struct.