 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
const ( PlatformUndef Platform = "" PlatformKubernetes = "kubernetes" PlatformOpenshift = "openshift" )
Variables ¶
      View Source
      
  
var (
	Version = "1.2.0"
)
    Functions ¶
This section is empty.
Types ¶
type ServerVersion ¶ added in v0.3.0
type ServerVersion struct {
	Platform Platform
	Info     k8sversion.Info
}
    ServerVersion represents info about k8s / openshift server version
func GetServer ¶ added in v0.3.0
func GetServer() (*ServerVersion, error)
GetServer make request to platform server and returns server version and platform (k8s|oc)
func Server ¶ added in v0.3.0
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.