Documentation ¶
Index ¶
Constants ¶
View Source
const ( // InstanceManagerAPIVersion is used for compatibility check for longhorn-manager InstanceManagerAPIVersion = 5 InstanceManagerAPIMinVersion = 1 // InstanceManagerProxyAPIVersion is used for compatibility check for longhorn-manager InstanceManagerProxyAPIVersion = 5 InstanceManagerProxyAPIMinVersion = 1 // InstanceManagerDiskServiceAPIVersion used to communicate with the user e.g. longhorn-manager InstanceManagerDiskServiceAPIVersion = 1 InstanceManagerDiskServiceAPIMinVersion = 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 DiskServiceVersionOutput ¶ added in v1.5.0
type DiskServiceVersionOutput struct { Version string `json:"version"` GitCommit string `json:"gitCommit"` BuildDate string `json:"buildDate"` InstanceManagerDiskServiceAPIVersion int `json:"instanceManagerDiskServiceAPIVersion"` InstanceManagerDiskServiceAPIMinVersion int `json:"instanceManagerDiskServiceAPIMinVersion"` }
func GetDiskServiceVersion ¶ added in v1.5.0
func GetDiskServiceVersion() DiskServiceVersionOutput
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.