client

package
v0.0.0-...-d6a6b0e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenShift

type OpenShift struct {
	Client *clientset.Clientset
}

OpenShift is an Client struct which will be used for all OpenShift related functions to interact with the existing Cluster.

func GetOpenShift

func GetOpenShift(kubeConfigPath string) (*OpenShift, error)

GetOpenShift creates client for the current OpenShift cluster. If Kubeconfig is provided, it is used to create client, otherwise it uses in-cluster config.

func (*OpenShift) GetCloudProvider

func (o *OpenShift) GetCloudProvider() (*v1.PlatformStatus, error)

GetCloudProvider returns the Provider details of a given OpenShift client including provider type and region or an error.

func (*OpenShift) GetInfrastructureID

func (o *OpenShift) GetInfrastructureID() (string, error)

GetInfrastructureID returns the infrastructure ID of the OpenShift cluster or an error.

Jump to

Keyboard shortcuts

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