Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// OptOutOfDefaultKubectlFlags indicates that the standard kubectl/kubeconfig-related flags should not be bound
// by default.
OptOutOfDefaultKubectlFlags bool
// OptOutOfWorkspaceFlag indicates that the --workspace/-w flag should not be bound.
OptOutOfWorkspaceFlag bool
// Kubeconfig specifies kubeconfig file(s).
Kubeconfig string
// KubectlOverrides stores the extra client connection fields, such as context, user, etc.
KubectlOverrides *clientcmd.ConfigOverrides
// Workspace is an optional workspace path to target, overriding the current workspace in the kubeconfig.
Workspace string
genericclioptions.IOStreams
// ClientConfig is the resolved cliendcmd.ClientConfig based on the client connection flags. This is only valid
// after calling Complete.
ClientConfig clientcmd.ClientConfig
}
Options contains options common to most CLI plugins, including settings for connecting to kcp (kubeconfig, etc).
func NewOptions ¶
func NewOptions(streams genericclioptions.IOStreams) *Options
NewOptions provides an instance of Options with default values.
Click to show internal directories.
Click to hide internal directories.