Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterVersionInfo ¶ added in v1.0.1
type ClusterVersionInfo struct {
// ClientVersion denotes the version of Virtlet command line tool
ClientVersion Info `json:"clientVersion"`
// NodeVersions specify versions for each node that runs Virtlet
NodeVersions []Info `json:"nodeVersions,omitempty"`
}
ClusterVersionInfo specifies Virtlet version info for the whole cluster and the client
func (ClusterVersionInfo) AreNodesConsistent ¶ added in v1.0.1
func (v ClusterVersionInfo) AreNodesConsistent() bool
AreNodesConsistent returns true if all the nodes that run Virtlet run exactly same Virtlet build
type Info ¶ added in v1.0.1
type Info struct {
// NodeName denotes the name of the node this info belongs too
// (empty if not applicable)
NodeName string `json:",omitempty"`
// Major is the major version number
Major string `json:"major"`
// Minor is the minor version number
Minor string `json:"minor"`
// GitVersion is the full version string
GitVersion string `json:"gitVersion"`
// GitCommit is the git commit id
GitCommit string `json:"gitCommit"`
// GitTreeState is the git tree state, which can be either "clean" or "dirty"
GitTreeState string `json:"gitTreeState"`
// BuildDate is the build date, e.g. 2018-04-16T18:48:12Z
BuildDate string `json:"buildDate"`
// GoVersion is the Go version that was used to build Virtlet
GoVersion string `json:"goVersion"`
// Compiler is the name of the compiler toolchain that
// built the binary (either "gc" or "gccgo")
Compiler string `json:"compiler"`
// Platform denotes the platform such as "linux" or "darwin"
Platform string `json:"platform"`
// ImageTag specifies the image tag to use for Virtelt
ImageTag string `json:"imageTag"`
}
Info specifies Virtlet version info
Click to show internal directories.
Click to hide internal directories.