version

package
v0.9.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVersionCmd

func NewVersionCmd(clientGetter util.ClientGetter, streams genericiooptions.IOStreams) *cobra.Command

NewVersionCmd returns a new cobra.Command for fetching version

Types

type VersionOptions

type VersionOptions struct {
	K8sClientset k8s.Interface

	genericiooptions.IOStreams
}

VersionOptions is a struct to support version command

func NewOptions

func NewOptions(streams genericiooptions.IOStreams) *VersionOptions

NewOptions returns initialized Options

func (*VersionOptions) Complete

func (o *VersionOptions) Complete(clientGetter util.ClientGetter) error

func (*VersionOptions) Run

func (o *VersionOptions) Run(ctx context.Context) error

Run executes version command

Jump to

Keyboard shortcuts

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