version

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "1.14.0"
)

Functions

This section is empty.

Types

type Platform added in v1.6.0

type Platform string
const (
	PlatformUndef      Platform = ""
	PlatformKubernetes Platform = "kubernetes"
	PlatformOpenshift  Platform = "openshift"
)

type ServerVersion added in v1.6.0

type ServerVersion struct {
	Platform Platform
	Info     k8sversion.Info
}

ServerVersion represents info about k8s / openshift server version

func GetServer added in v0.2.0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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