version

package
v4.2.0-alpha.0+incompa... Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdVersion

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

NewCmdVersion is copied from upstream NewCmdVersion with addition of OpenShift Server version info. OpenShift Server version is output only if logged in to a cluster as an admin user.

Types

type Version

type Version struct {
	kversion.Version
	OpenShiftVersion string `json:"openshiftVersion,omitempty"`
}

type VersionOptions

type VersionOptions struct {
	kversion.VersionOptions

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

func NewVersionOptions

func NewVersionOptions(ioStreams genericclioptions.IOStreams) *VersionOptions

func (*VersionOptions) Complete

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

Complete is copied from upstream version command with added clusteroperator client to report OpenShift server version

func (*VersionOptions) Run

func (o *VersionOptions) Run() error

Run is copied from upstream version command, with added OpenShift server version logic

Jump to

Keyboard shortcuts

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