options

package
v4.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGOPSFlags

func AddGOPSFlags(flags *pflag.FlagSet)

func AddKlogFlags

func AddKlogFlags(fs *pflag.FlagSet)

func AddProfilingFlags

func AddProfilingFlags(flags *pflag.FlagSet)

func FlushProfiling

func FlushProfiling() error

func InitGOPS

func InitGOPS() error

func InitProfiling

func InitProfiling() error

Types

type ArtifactExportOptions

type ArtifactExportOptions struct {
	CommonOptions
}

func NewArtifactExportOptions

func NewArtifactExportOptions() *ArtifactExportOptions

func (ArtifactExportOptions) Complete

func (*ArtifactExportOptions) Flags

type ArtifactImagesOptions

type ArtifactImagesOptions struct {
	CommonOptions
}

func NewArtifactImagesOptions

func NewArtifactImagesOptions() *ArtifactImagesOptions

func (ArtifactImagesOptions) Complete

func (*ArtifactImagesOptions) Flags

type CertsRenewOptions

type CertsRenewOptions struct {
	CommonOptions
}

func NewCertsRenewOptions

func NewCertsRenewOptions() *CertsRenewOptions

func (*CertsRenewOptions) Complete

func (*CertsRenewOptions) Flags

type CommonOptions

type CommonOptions struct {
	// Playbook which to execute.
	Playbook string
	// HostFile is the path of host file
	InventoryFile string
	// ConfigFile is the path of config file
	ConfigFile string
	// Set value in config
	Set []string
	// WorkDir is the baseDir which command find any resource (project etc.)
	WorkDir string
	// Artifact is the path of offline package for kubekey.
	Artifact string
	// Debug mode, after a successful execution of Pipeline, will retain runtime data, which includes task execution status and parameters.
	Debug bool
	// Namespace for all resources.
	Namespace string
}

func (*CommonOptions) Flags

func (o *CommonOptions) Flags() cliflag.NamedFlagSets

type CreateClusterOptions

type CreateClusterOptions struct {
	CommonOptions
	// kubernetes version which the cluster will install.
	Kubernetes string
	// ContainerRuntime for kubernetes. Such as docker, containerd etc.
	ContainerManager string
}

func NewCreateClusterOptions

func NewCreateClusterOptions() *CreateClusterOptions

func (*CreateClusterOptions) Complete

func (*CreateClusterOptions) Flags

type InitOSOptions

type InitOSOptions struct {
	CommonOptions
}

func NewInitOSOptions

func NewInitOSOptions() *InitOSOptions

func (InitOSOptions) Complete

func (*InitOSOptions) Flags

func (o *InitOSOptions) Flags() cliflag.NamedFlagSets

type InitRegistryOptions

type InitRegistryOptions struct {
	CommonOptions
}

func NewInitRegistryOptions

func NewInitRegistryOptions() *InitRegistryOptions

func (InitRegistryOptions) Complete

func (*InitRegistryOptions) Flags

type KubekeyRunOptions

type KubekeyRunOptions struct {
	CommonOptions
	// ProjectAddr is the storage for executable packages (in Ansible format).
	// When starting with http or https, it will be obtained from a Git repository.
	// When starting with file path, it will be obtained from the local path.
	ProjectAddr string
	// ProjectName is the name of project. it will store to project dir use this name.
	// If empty generate from ProjectAddr
	ProjectName string
	// ProjectBranch is the git branch of the git Addr.
	ProjectBranch string
	// ProjectTag if the git tag of the git Addr.
	ProjectTag string
	// ProjectInsecureSkipTLS skip tls or not when git addr is https.
	ProjectInsecureSkipTLS bool
	// ProjectToken to clone and pull git project
	ProjectToken string
	// Tags is the tags of playbook which to execute
	Tags []string
	// SkipTags is the tags of playbook which skip execute
	SkipTags []string
}

func NewKubeKeyRunOptions

func NewKubeKeyRunOptions() *KubekeyRunOptions

func (*KubekeyRunOptions) Complete

func (*KubekeyRunOptions) Flags

type PipelineOptions

type PipelineOptions struct {
	Name      string
	Namespace string
	WorkDir   string
}

func NewPipelineOption

func NewPipelineOption() *PipelineOptions

func (*PipelineOptions) Flags

type PreCheckOptions

type PreCheckOptions struct {
	CommonOptions
}

func NewPreCheckOptions

func NewPreCheckOptions() *PreCheckOptions

func (*PreCheckOptions) Complete

func (*PreCheckOptions) Flags

Jump to

Keyboard shortcuts

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