Documentation ¶
Index ¶
Constants ¶
View Source
const ( // InstanceManagerAPIVersion used to communicate with the user e.g. longhorn-manager InstanceManagerAPIVersion = 3 InstanceManagerAPIMinVersion = 1 // InstanceManagerProxyAPIVersion is used for compatibility check for longhorn-manager InstanceManagerProxyAPIVersion = 3 InstanceManagerProxyAPIMinVersion = 1 )
Variables ¶
View Source
var ( Version string GitCommit string BuildDate string )
Following variables are filled in by main.go
Functions ¶
This section is empty.
Types ¶
type VersionOutput ¶
type VersionOutput struct { Version string `json:"version"` GitCommit string `json:"gitCommit"` BuildDate string `json:"buildDate"` InstanceManagerAPIVersion int `json:"instanceManagerAPIVersion"` InstanceManagerAPIMinVersion int `json:"instanceManagerAPIMinVersion"` InstanceManagerProxyAPIVersion int `json:"instanceManagerProxyAPIVersion"` InstanceManagerProxyAPIMinVersion int `json:"instanceManagerProxyAPIMinVersion"` }
func GetVersion ¶
func GetVersion() VersionOutput
Click to show internal directories.
Click to hide internal directories.