version

package
v1.15.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdVersion

func NewCmdVersion(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdVersion returns a cobra command for fetching versions

Types

type Options added in v1.15.0

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 added in v1.15.0

func NewOptions(ioStreams genericclioptions.IOStreams) *Options

NewOptions returns initialized Options

func (*Options) Complete added in v1.15.0

func (o *Options) Complete(f cmdutil.Factory, cmd *cobra.Command) error

Complete completes all the required options

func (*Options) Run added in v1.15.0

func (o *Options) Run() error

Run executes version command

func (*Options) Validate added in v1.15.0

func (o *Options) Validate() error

Validate validates the provided 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

Jump to

Keyboard shortcuts

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