kubernetes: k8s.io/kubernetes/pkg/kubectl/cmd/version Index | Files

package version

import "k8s.io/kubernetes/pkg/kubectl/cmd/version"

Index

Package Files

version.go

func NewCmdVersion Uses

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

NewCmdVersion returns a cobra command for fetching versions

type Options Uses

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 Uses

func NewOptions(ioStreams genericclioptions.IOStreams) *Options

NewOptions returns initialized Options

func (*Options) Complete Uses

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

Complete completes all the required options

func (*Options) Run Uses

func (o *Options) Run() error

Run executes version command

func (*Options) Validate Uses

func (o *Options) Validate() error

Validate validates the provided options

type Version Uses

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

Package version imports 13 packages (graph) and is imported by 11 packages. Updated 2019-07-19. Refresh now. Tools for package owners.