options

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PersistentOptions

type PersistentOptions struct {
	*RawPersistentOptions
	PlatformCluster *clusters.Cluster

	// fields filled in Complete()
	Log    logging.Logger
	Config *config.Config
}

func NewPersistentOptions

func NewPersistentOptions() *PersistentOptions

func (*PersistentOptions) AddPersistentFlags

func (o *PersistentOptions) AddPersistentFlags(cmd *cobra.Command)

func (*PersistentOptions) Complete

func (o *PersistentOptions) Complete() error

func (*PersistentOptions) PrintCompleted

func (o *PersistentOptions) PrintCompleted(cmd *cobra.Command)

func (*PersistentOptions) PrintRaw

func (o *PersistentOptions) PrintRaw(cmd *cobra.Command)

type RawPersistentOptions

type RawPersistentOptions struct {
	Environment                   string   `json:"environment"`
	ProviderName                  string   `json:"provider-name"`
	DryRun                        bool     `json:"dry-run"`
	ConfigPaths                   []string `json:"configPaths"`
	PlatformClusterKubeconfigPath string   `json:"kubeconfig"` // dummy for printing, actual path is in Clusters
}

Jump to

Keyboard shortcuts

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