Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ServerVersion ¶
type ServerVersion struct {
Platform Platform
Info k8sversion.Info
}
ServerVersion represents info about k8s / openshift server version
func GetServer ¶
func GetServer() (*ServerVersion, error)
GetServer make request to platform server and returns server version and platform (k8s|oc)
func Server ¶
func Server() (*ServerVersion, error)
Server returns server version and platform (k8s|oc) it performs API requests for the first invocation and then returns "cached" value
Click to show internal directories.
Click to hide internal directories.