platform

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Platform

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

type ServerVersion

type ServerVersion struct {
	Platform Platform
	Info     k8sversion.Info
}

func GetServerVersion

func GetServerVersion(cliCmd clientcmd.Client) (*ServerVersion, error)

GetServerVersion 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