flags

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseOptions

type BaseOptions struct {
	InfraType string
}

func (*BaseOptions) SetOptionsFromViper

func (o *BaseOptions) SetOptionsFromViper()

type BuildOptions

type BuildOptions struct {
	BaseOptions
	KubernetesClusterFlags
	S3Flags
	OpenStackFlags
	KubeVirtFlags

	Verbose                 bool
	BuildOS                 string
	ImagePrefix             string
	ImageRepo               string
	ImageRepoBranch         string
	ImageRepoDir            string
	ContainerdSHA256        string
	ContainerdVersion       string
	CrictlVersion           string
	CniVersion              string
	CniDebVersion           string
	KubeVersion             string
	KubeRpmVersion          string
	KubeDebVersion          string
	ExtraDebs               string
	AdditionalImages        []string
	AdditionalMetadata      map[string]string
	AddFalco                bool
	AddTrivy                bool
	AddGpuSupport           bool
	GpuVendor               string
	GpuModelSupport         string
	GpuInstanceSupport      string
	AMDVersion              string
	AMDDebVersion           string
	AMDUseCase              string
	NvidiaVersion           string
	NvidiaBucket            string
	NvidiaInstallerLocation string
	NvidiaTOKLocation       string
	NvidiaGriddFeatureType  int
}

func (*BuildOptions) SetOptionsFromViper

func (o *BuildOptions) SetOptionsFromViper()

type KubeVirtFlags

type KubeVirtFlags struct {
	QEMUFlags
	StoreInS3      bool
	ImageBucket    string
	ImageName      string
	ImageNamespace string
}

KubeVirtFlags are explicitly for QEMU image builds.

func (*KubeVirtFlags) SetOptionsFromViper

func (k *KubeVirtFlags) SetOptionsFromViper()

SetOptionsFromViper configures additional options passed in via viper for the struct.

type KubernetesClusterFlags

type KubernetesClusterFlags struct {
	KubeconfigPath string
}

KubernetesClusterFlags are flags that can be used for the interaction with a kubernetes cluster.

func (*KubernetesClusterFlags) SetOptionsFromViper

func (k *KubernetesClusterFlags) SetOptionsFromViper()

SetOptionsFromViper configures additional options passed in via viper for the struct.

type OpenStackCoreFlags

type OpenStackCoreFlags struct {
	CloudsPath     string
	CloudName      string
	MetadataPrefix string
}

OpenStackCoreFlags are the core requirements for any interaction with the openstack cloud.

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
	SSHPrivateKeyFile     string
	SSHKeypairName        string
	UseFloatingIP         bool
	FloatingIPNetworkName string
	SecurityGroup         string
	ImageVisibility       string
	ImageDiskFormat       string
	UseBlockStorageVolume string
	VolumeType            string
	VolumeSize            int
}

OpenStackFlags are explicitly for OpenStack based clouds and defines settings that pertain only to that cloud type.

func (*OpenStackFlags) SetOptionsFromViper

func (q *OpenStackFlags) SetOptionsFromViper()

SetOptionsFromViper configures additional options passed in via viper for the struct.

type OpenStackInstanceFlags

type OpenStackInstanceFlags struct {
	AttachConfigDrive bool
	NetworkID         string
	FlavorName        string
}

OpenStackInstanceFlags are Additional flags that can would be required for other steps such as scan, sign and publish.

func (*OpenStackInstanceFlags) SetOptionsFromViper

func (o *OpenStackInstanceFlags) SetOptionsFromViper()

SetOptionsFromViper configures additional options passed in via viper for the struct.

type QEMUFlags

type QEMUFlags struct {
	QemuBinary      string
	DiskSize        string
	OutputDirectory string
}

QEMUFlags are explicitly for QEMU image builds.

func (*QEMUFlags) SetOptionsFromViper

func (q *QEMUFlags) SetOptionsFromViper()

SetOptionsFromViper configures additional options passed in via viper for the struct.

type S3Flags

type S3Flags struct {
	Endpoint  string
	AccessKey string
	SecretKey string
	Region    string
	IsCeph    bool
}

func (*S3Flags) SetOptionsFromViper

func (o *S3Flags) SetOptionsFromViper()

type ScanMultipleOptions

type ScanMultipleOptions struct {
	ImageSearch string
	Concurrency int
}

func (*ScanMultipleOptions) SetOptionsFromViper

func (o *ScanMultipleOptions) SetOptionsFromViper()

type ScanOptions

type ScanOptions struct {
	BaseOptions
	OpenStackFlags
	KubeVirtFlags
	S3Flags
	ScanSingleOptions
	ScanMultipleOptions

	ScanFlavorName      string
	AutoDeleteImage     bool
	SkipCVECheck        bool
	MaxSeverityScore    float64
	MaxSeverityType     string
	ScanBucket          string
	TrivyignorePath     string
	TrivyignoreFilename string
	TrivyignoreList     []string
}

func (*ScanOptions) SetOptionsFromViper

func (o *ScanOptions) SetOptionsFromViper()

type ScanSingleOptions

type ScanSingleOptions struct {
	ImageID string
}

func (*ScanSingleOptions) SetOptionsFromViper

func (o *ScanSingleOptions) SetOptionsFromViper()

type SignGenerateOptions

type SignGenerateOptions struct {
	Path string
}

SignGenerateOptions contains additional options for the 'generate' subcommand.

func (*SignGenerateOptions) SetOptionsFromViper

func (o *SignGenerateOptions) SetOptionsFromViper()

SetOptionsFromViper configures options passed in via viper for the struct.

type SignOptions

type SignOptions struct {
	BaseOptions
	OpenStackCoreFlags
	SignGenerateOptions

	VaultURL        string
	VaultToken      string
	VaultMountPath  string
	VaultSecretPath string
	ImageID         string
	PrivateKey      string
	PublicKey       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) SetOptionsFromViper

func (o *SignOptions) SetOptionsFromViper()

SetOptionsFromViper configures additional options passed in via viper for the struct from any subcommands.

Jump to

Keyboard shortcuts

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