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 VersionOptions ¶
type VersionOptions struct { kversion.VersionOptions genericclioptions.IOStreams // contains filtered or unexported fields }
func NewVersionOptions ¶
func NewVersionOptions(ioStreams genericclioptions.IOStreams) *VersionOptions
func (*VersionOptions) Complete ¶
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
Click to show internal directories.
Click to hide internal directories.