Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdKubeRC ¶
func NewCmdKubeRC(streams genericiooptions.IOStreams) *cobra.Command
NewCmdKubeRC creates a command object for the "kuberc" action, and adds all child commands to it.
func NewCmdKubeRCSet ¶
func NewCmdKubeRCSet(streams genericiooptions.IOStreams) *cobra.Command
NewCmdKubeRCSet returns a Command instance for 'kuberc set' sub command
func NewCmdKubeRCView ¶
func NewCmdKubeRCView(streams genericiooptions.IOStreams) *cobra.Command
NewCmdKubeRCView returns a Command instance for 'kuberc view' sub command
Types ¶
type SetOptions ¶
type SetOptions struct {
KubeRCFile string
Section string // "defaults" or "aliases"
Command string
AliasName string // for aliases
Options []string // flag=value pairs
PrependArgs []string
AppendArgs []string
Overwrite bool
genericiooptions.IOStreams
// contains filtered or unexported fields
}
SetOptions contains the options for setting kuberc configuration
func NewSetOptions ¶
func NewSetOptions(ioStreams genericiooptions.IOStreams) *SetOptions
func (*SetOptions) Complete ¶
func (o *SetOptions) Complete(cmd *cobra.Command) error
Complete sets default values for SetOptions
func (*SetOptions) Validate ¶
func (o *SetOptions) Validate() error
Validate validates the SetOptions
type ViewOptions ¶
type ViewOptions struct {
KubeRCFile string
Explicit bool
PrintFlags *genericclioptions.PrintFlags
genericiooptions.IOStreams
// contains filtered or unexported fields
}
ViewOptions contains the options for viewing kuberc configuration
func (*ViewOptions) Complete ¶
func (o *ViewOptions) Complete(cmd *cobra.Command) error
Complete sets default values for ViewOptions
func (*ViewOptions) Validate ¶
func (o *ViewOptions) Validate() error
Validate validates the ViewOptions
Click to show internal directories.
Click to hide internal directories.