version

package
v1.10.4 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: MPL-2.0 Imports: 9 Imported by: 37

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func GetSupportedFormats added in v1.8.1

func GetSupportedFormats() []string

func New

func New(ui cli.Ui) *cmd

Types

type Formatter added in v1.8.1

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

func NewFormatter added in v1.8.1

func NewFormatter(format string) (Formatter, error)

type RPCVersionInfo added in v1.8.1

type RPCVersionInfo struct {
	Default int
	Min     int
	Max     int
}

type VersionInfo added in v1.8.1

type VersionInfo struct {
	HumanVersion string `json:"-"`
	Version      string
	Revision     string
	Prerelease   string
	RPC          RPCVersionInfo
}

Jump to

Keyboard shortcuts

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