Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdVersion ¶
NewCmdVersion returns a cobra command for fetching versions
Types ¶
type Options ¶
type Options struct { ClientOnly bool Short bool Output string genericclioptions.IOStreams // contains filtered or unexported fields }
Options is a struct to support version command
func NewOptions ¶
func NewOptions(ioStreams genericclioptions.IOStreams) *Options
NewOptions returns initialized Options
type Version ¶
type Version struct { ClientVersion *apimachineryversion.Info `json:"clientVersion,omitempty" yaml:"clientVersion,omitempty"` ServerVersion *apimachineryversion.Info `json:"serverVersion,omitempty" yaml:"serverVersion,omitempty"` }
Version is a struct for version information
Click to show internal directories.
Click to hide internal directories.