26 lines
508 B
Go
26 lines
508 B
Go
package version
|
|
|
|
// Version info of the SDN platform
|
|
type RecordVersion struct {
|
|
// Core component version info
|
|
Core ComponentVersion `json:"core"`
|
|
|
|
// Director component version info
|
|
Director ComponentVersion `json:"director"`
|
|
}
|
|
|
|
// Version info of a single component
|
|
type ComponentVersion struct {
|
|
// Branch name
|
|
Branch string `json:"branch"`
|
|
|
|
// Build time
|
|
BuildTime string `json:"build_time"`
|
|
|
|
// Commit hash
|
|
Commit string `json:"commit"`
|
|
|
|
// Version string
|
|
Version string `json:"version"`
|
|
}
|