version

package
v0.2.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Package is filled at linking time
	Package = "github.com/tensorchord/envd"

	// Revision is filled with the VCS (e.g. git) revision being used to build
	// the program at linking time.
	Revision = ""
)

Functions

func GetEnvdVersion added in v0.2.0

func GetEnvdVersion() string

GetEnvdVersion gets Envd version information

func GetRuntimes

func GetRuntimes(info *types.EnvdInfo) string

func UserAgent

func UserAgent() string

Types

type DetailedVersion

type DetailedVersion struct {
	OSVersion         string
	OSType            string
	KernelVersion     string
	Architecture      string
	DockerVersion     string
	ContainerRuntimes string
	DefaultRuntime    string
}

func GetDetailedVersion

func GetDetailedVersion(clicontext *cli.Context) (DetailedVersion, error)

type Version

type Version struct {
	Version      string
	BuildDate    string
	GitCommit    string
	GitTag       string
	GitTreeState string
	GoVersion    string
	Compiler     string
	Platform     string
}

Version contains envd version information

func GetVersion added in v0.1.0

func GetVersion() Version

GetVersion returns the version information

func (Version) String added in v0.1.0

func (v Version) String() string

Jump to

Keyboard shortcuts

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