version

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Version       string   `json:"version,omitempty"`
	GitCommit     string   `json:"gitCommit,omitempty"`
	GitCommitDate string   `json:"gitCommitDate,omitempty"`
	GitTreeState  string   `json:"gitTreeState,omitempty"`
	BuildDate     string   `json:"buildDate,omitempty"`
	GoVersion     string   `json:"goVersion,omitempty"`
	Compiler      string   `json:"compiler,omitempty"`
	Platform      string   `json:"platform,omitempty"`
	Libseccomp    string   `json:"libseccomp,omitempty"`
	Libbpf        string   `json:"libbpf,omitempty"`
	BuildTags     string   `json:"buildTags,omitempty"`
	LDFlags       string   `json:"ldFlags,omitempty"`
	CGOLDFlags    string   `json:"cgoLdflags,omitempty"`
	Dependencies  []string `json:"dependencies,omitempty"`
}

func Get

func Get() (*Info, error)

func (*Info) AsKeyValues added in v0.4.0

func (i *Info) AsKeyValues() []interface{}

AsKeyValues returns a key value slice of the info.

func (*Info) JSONString

func (i *Info) JSONString() (string, error)

JSONString returns the JSON representation of the version info.

func (*Info) String

func (i *Info) String() string

String returns the string representation of the version info.

Jump to

Keyboard shortcuts

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