version

package
v1.5.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DockerAPIVersion     = "1.25"
	DockerDefaultVersion = "1.25"
	DockerMinimumVersion = "1.19"

	DockerServerVersion = "1.13.0"
)

Variables

View Source
var (
	Version     string
	GitCommit   string
	BuildDate   string
	BuildNumber string
	State       string
)

These fields are set by the compiler using the linker flags upon build via Makefile.

Functions

func Show

func Show() bool

Show returns whether -version flag is set

func String

func String() string

String returns a string representation of the version

func UserAgent

func UserAgent(component string) string

UserAgent returns component/version in HTTP User-Agent header value format

Types

type Build

type Build struct {
	Version       string
	GitCommit     string
	BuildDate     string
	BuildNumber   string
	State         string
	PluginVersion int
}

func GetBuild

func GetBuild() *Build

func (*Build) Equal

func (v *Build) Equal(b *Build) bool

Equal determines if v is equal to b based on BuildNumber

func (*Build) IsNewer

func (v *Build) IsNewer(b *Build) (bool, error)

IsNewer determines if v is newer than b based on BuildNumber

func (*Build) IsOlder

func (v *Build) IsOlder(b *Build) (bool, error)

IsOlder determines if v is older than b based on BuildNumber

func (*Build) ShortVersion

func (v *Build) ShortVersion() string

func (*Build) String

func (v *Build) String() string

Jump to

Keyboard shortcuts

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