Documentation ¶
Index ¶
- Constants
- func GetKubeContext() (string, error)
- type PlatformManager
- func (mng *PlatformManager) CheckCreds() error
- func (mng *PlatformManager) CheckRequirements() error
- func (mng *PlatformManager) GetCredentialManager() credentialmanager.CredentialManagerInterface
- func (mng *PlatformManager) ParseConfig(configFile string) error
- func (mng *PlatformManager) ReadCreds(assumeYes bool) error
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 ¶
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
Click to show internal directories.
Click to hide internal directories.