version

package
v1.8.7-beta1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 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