version

package
v1.5.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2019 License: Apache-2.0 Imports: 6 Imported by: ? 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

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