version

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PlatformUndef      Platform = ""
	PlatformKubernetes          = "kubernetes"
	PlatformOpenshift           = "openshift"
)

Variables

View Source
var (
	Version = "1.4.0"
)

Functions

This section is empty.

Types

type Platform added in v0.3.0

type Platform string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL