Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BuildVersion = "N/A" GitCommit = "N/A" BuildTime = "N/A" )
These are set during build time via -ldflags
Functions ¶
func GetVersionYAML ¶
GetVersionYAML returns the version information of the driver in YAML format
Types ¶
type VersionInfo ¶
type VersionInfo struct { DriverName string `json:"Driver Name"` DriverVersion string `json:"Driver Version"` GitCommit string `json:"Git Commit"` BuildTime string `json:"Build Time"` GoVersion string `json:"Go Version"` Compiler string `json:"Compiler"` Platform string `json:"Platform"` }
VersionInfo holds the version information of the driver
func GetVersion ¶
func GetVersion(driverName string) VersionInfo
GetVersion returns the version information of the driver
Click to show internal directories.
Click to hide internal directories.