|
|
@ -4,15 +4,15 @@ package version
|
|
|
|
// TODO: Add []string of api versions supported? It's still unclear
|
|
|
|
// TODO: Add []string of api versions supported? It's still unclear
|
|
|
|
// how we'll want to distribute that information.
|
|
|
|
// how we'll want to distribute that information.
|
|
|
|
type Info struct {
|
|
|
|
type Info struct {
|
|
|
|
Major string `json:"major,omitempty"`
|
|
|
|
Major string `json:"major,omitempty"`
|
|
|
|
Minor string `json:"minor,omitempty"`
|
|
|
|
Minor string `json:"minor,omitempty"`
|
|
|
|
GitVersion string `json:"gitVersion"`
|
|
|
|
GitVersion string `json:"gitVersion"`
|
|
|
|
GitTreeState string `json:"gitTreeState,omitempty"`
|
|
|
|
GitTreeState string `json:"gitTreeState,omitempty"`
|
|
|
|
GitCommit string `json:"gitCommit,omitempty"`
|
|
|
|
GitCommit string `json:"gitCommit,omitempty"`
|
|
|
|
BuildDate string `json:"buildDate"`
|
|
|
|
BuildDate string `json:"buildDate"`
|
|
|
|
GoVersion string `json:"goVersion"`
|
|
|
|
GoVersion string `json:"goVersion"`
|
|
|
|
Compiler string `json:"compiler"`
|
|
|
|
Compiler string `json:"compiler"`
|
|
|
|
Platform string `json:"platform"`
|
|
|
|
Platform string `json:"platform"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type Output struct {
|
|
|
|
type Output struct {
|
|
|
@ -21,7 +21,7 @@ type Output struct {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type OpenIMClientVersion struct {
|
|
|
|
type OpenIMClientVersion struct {
|
|
|
|
ClientVersion string `json:"clientVersion,omitempty" yaml:"clientVersion,omitempty"` //sdk core version
|
|
|
|
ClientVersion string `json:"clientVersion,omitempty" yaml:"clientVersion,omitempty"` //sdk core version
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// String returns info as a human-friendly version string.
|
|
|
|
// String returns info as a human-friendly version string.
|
|
|
|