-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Parthvi Vala <pvala@redhat.com>
- Loading branch information
1 parent
0acf1a5
commit ea2d256
Showing
4 changed files
with
154 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package api | ||
|
||
/* | ||
{ | ||
"version": "v3.11.0", | ||
"gitCommit": "0acf1a5af", | ||
"cluster": { | ||
"serverURL": "https://kubernetes.docker.internal:6443", | ||
"kubernetes": { | ||
"version": "v1.25.9" | ||
}, | ||
"openshift": { | ||
"version": "4.13.0" | ||
} | ||
}, | ||
"podman": { | ||
"client": { | ||
"version": "4.5.1" | ||
} | ||
} | ||
} | ||
*/ | ||
|
||
type OdoVersion struct { | ||
Version string `json:"version"` | ||
GitCommit string `json:"gitCommit"` | ||
Cluster *ClusterInfo `json:"cluster,omitempty"` | ||
Podman *PodmanInfo `json:"podman,omitempty"` | ||
} | ||
|
||
type ClusterInfo struct { | ||
ServerURL string `json:"serverURL,omitempty"` | ||
Kubernetes ClusterClientInfo `json:"kubernetes,omitempty"` | ||
OpenShift ClusterClientInfo `json:"openshift,omitempty"` | ||
} | ||
|
||
type ClusterClientInfo struct { | ||
Version string `json:"version,omitempty"` | ||
} | ||
|
||
type PodmanInfo struct { | ||
Client PodmanClientInfo `json:"client,omitempty"` | ||
} | ||
|
||
type PodmanClientInfo struct { | ||
Version string `json:"version,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters