version

package
v1.1.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd() *cobra.Command

Types

type VersionOptions

type VersionOptions struct {
	ClientOnly bool
	OutputOpts output.OutputOptions
}

VersionOptions is a struct to support version command

func NewVersionOptions

func NewVersionOptions() *VersionOptions

NewVersionOptions returns initialized Options

func (*VersionOptions) Run

func (oV *VersionOptions) Run(ctx context.Context, cmd *cobra.Command) error

Run executes version command

type Versions

type Versions struct {
	ClientVersion *models.BuildVersionInfo `json:"clientVersion,omitempty"`
	ServerVersion *models.BuildVersionInfo `json:"serverVersion,omitempty"`
}

Versions is a struct for version information

Jump to

Keyboard shortcuts

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