version

package
v1.16.109 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrettyFormat string = "pretty"
	JSONFormat   string = "json"
)

Variables

This section is empty.

Functions

func GetSupportedFormats added in v1.16.100

func GetSupportedFormats() []string

func New

func New(ui cli.Ui) *cmd

Types

type Formatter added in v1.16.100

type Formatter interface {
	Format(info *VersionInfo) (string, error)
}

func NewFormatter added in v1.16.100

func NewFormatter(format string) (Formatter, error)

type RPCVersionInfo added in v1.16.100

type RPCVersionInfo struct {
	Default int
	Min     int
	Max     int
}

type VersionInfo added in v1.16.100

type VersionInfo struct {
	HumanVersion string `json:"-"`
	Version      string
	Revision     string
	Prerelease   string
	FIPS         string `json:",omitempty"`
	BuildDate    time.Time
	RPC          RPCVersionInfo
}

Jump to

Keyboard shortcuts

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