version

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: MIT Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package version print the client and server version information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdVersion

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

NewCmdVersion returns a cobra command for fetching versions.

Types

type Options

type Options struct {
	ClientOnly bool
	Short      bool
	Output     string

	genericiooptions.IOStreams
	// contains filtered or unexported fields
}

Options is a struct to support version command.

func NewOptions

func NewOptions(ioStreams genericiooptions.IOStreams) *Options

NewOptions returns initialized Options.

func (*Options) Complete

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

Complete completes all the required options.

func (*Options) Run

func (o *Options) Run() error

Run executes version command.

func (*Options) Validate

func (o *Options) Validate() error

Validate validates the provided options.

type Version

type Version struct {
	ClientVersion *version.Info `json:"clientVersion,omitempty" yaml:"clientVersion,omitempty"`
	ServerVersion *version.Info `json:"gatewayVersion,omitempty" yaml:"gatewayVersion,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