kuberc

package
v0.35.0 Latest Latest
Warning

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

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

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) Run

func (o *SetOptions) Run() error

Run executes the set command

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) Run

func (o *ViewOptions) Run() error

Run executes the view command

func (*ViewOptions) Validate

func (o *ViewOptions) Validate() error

Validate validates the ViewOptions

Jump to

Keyboard shortcuts

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