platform

package
v0.0.0-...-c55d01b Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAndSetPlatform

func FindAndSetPlatform(cfg *rest.Config) error

func GetDistribution

func GetDistribution() string

func GetVersion

func GetVersion() string

Types

type Platform

type Platform struct {
	Type     PlatformType `json:"type"`
	Provider ProviderType `json:"provider"`
	Version  string       `json:"version"`
}

func GetPlatform

func GetPlatform() Platform

func GetPlatformInfo

func GetPlatformInfo(cfg *rest.Config) (Platform, error)

type PlatformType

type PlatformType string
const (
	OpenShift  PlatformType = "OpenShift"
	Kubernetes PlatformType = "Kubernetes"
)

func GetType

func GetType() PlatformType

type ProviderType

type ProviderType string
const (
	EKS ProviderType = "EKS"
	AKS ProviderType = "AKS"
	GKE ProviderType = "GKE"
)

func GetProvider

func GetProvider() ProviderType

Jump to

Keyboard shortcuts

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