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 StringVarWithViper(cmd *cobra.Command, p *string, viperPrefix, name, value, usage string)
- type BuildOptions
- type OpenStackCoreFlags
- type OpenStackFlags
- type OpenStackInstanceFlags
- type PublishOptions
- 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 ¶
Types ¶
type BuildOptions ¶
type BuildOptions struct {
OpenStackFlags
Verbose bool
BuildOS string
ImagePrefix string
ImageRepo string
CrictlVersion string
CniVersion string
KubeVersion string
ExtraDebs string
AddFalco bool
AddTrivy bool
AddNvidiaSupport bool
NvidiaVersion string
NvidiaBucketEndpoint string
NvidiaBucketName string
NvidiaBucketAccessKey string
NvidiaBucketSecretKey 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) SetSignOptionsFromViper ¶
func (o *OpenStackCoreFlags) SetSignOptionsFromViper()
SetSignOptionsFromViper 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) SetSignOptionsFromViper ¶
func (o *OpenStackFlags) SetSignOptionsFromViper()
SetSignOptionsFromViper 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) SetSignOptionsFromViper ¶
func (o *OpenStackInstanceFlags) SetSignOptionsFromViper()
SetSignOptionsFromViper 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 ScanOptions ¶
type ScanOptions struct {
OpenStackCoreFlags
OpenStackInstanceFlags
ImageID string
AutoDeleteImage bool
SkipCVECheck bool
MaxSeverityScore float64
MaxSeverityType 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) SetSignGenerateOptionsFromViper ¶
func (o *SignGenerateOptions) SetSignGenerateOptionsFromViper()
SetSignGenerateOptionsFromViper 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) SetSignImageOptionsFromViper ¶
func (o *SignImageOptions) SetSignImageOptionsFromViper()
SetSignImageOptionsFromViper 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) SetSignOptionsFromViper ¶
func (o *SignOptions) SetSignOptionsFromViper()
SetSignOptionsFromViper 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) SetValidateImageOptionsFromViper ¶
func (o *SignValidateOptions) SetValidateImageOptionsFromViper()
SetValidateImageOptionsFromViper configures options passed in via viper for the struct.