platform

package
v0.0.0-...-318a3d5 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const KubernetesIdentifier = "kubernetes"

KubernetesIdentifier is used as identifier for Kubernetes

View Source
const OpenShiftIdentifier = "openshift"

OpenShiftIdentifier is used as identifier for OpenShift

Variables

This section is empty.

Functions

func GetKubeContext

func GetKubeContext() (string, error)

GetKubeContext returns the configured current-context

Types

type PlatformManager

type PlatformManager struct {
	// contains filtered or unexported fields
}

PlatformManager allows to manage (i.e. check requirements) for supported platforms

func NewPlatformManager

func NewPlatformManager(platformIdentifier string, cm credentialmanager.CredentialManagerInterface) (*PlatformManager, error)

NewPlatformManager creates a new manager for the provided platform

func (*PlatformManager) CheckCreds

func (mng *PlatformManager) CheckCreds() error

CheckCreds checks the provided creds

func (*PlatformManager) CheckRequirements

func (mng *PlatformManager) CheckRequirements() error

CheckRequirements checks the platform's requirements

func (*PlatformManager) GetCredentialManager

func (mng *PlatformManager) GetCredentialManager() credentialmanager.CredentialManagerInterface

func (*PlatformManager) ParseConfig

func (mng *PlatformManager) ParseConfig(configFile string) error

ParseConfig reads and parses the provided config file

func (*PlatformManager) ReadCreds

func (mng *PlatformManager) ReadCreds(assumeYes bool) error

ReadCreds reads the credentials for the platform

Jump to

Keyboard shortcuts

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