This commit is contained in:
dayterr
2026-04-10 16:38:00 +03:00
parent 30e464e4d2
commit 5cdae8520f
16 changed files with 458 additions and 62 deletions

25
pkg/sdn/version/models.go Normal file
View File

@@ -0,0 +1,25 @@
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"`
}