Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CLIAPIVersion used to communicate with user e.g. longhorn-manager CLIAPIVersion = 10 CLIAPIMinVersion = 8 // ControllerAPIVersion used to communicate with instance-manager ControllerAPIVersion = 5 ControllerAPIMinVersion = 4 // DataFormatVersion used by the Replica to store data DataFormatVersion = 1 DataFormatMinVersion = 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"` CLIAPIVersion int `json:"cliAPIVersion"` CLIAPIMinVersion int `json:"cliAPIMinVersion"` ControllerAPIVersion int `json:"controllerAPIVersion"` ControllerAPIMinVersion int `json:"controllerAPIMinVersion"` DataFormatVersion int `json:"dataFormatVersion"` DataFormatMinVersion int `json:"dataFormatMinVersion"` }
func GetVersion ¶
func GetVersion() VersionOutput
Click to show internal directories.
Click to hide internal directories.