client

package
v0.0.0-...-d0f8ddb Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 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 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 uses kubeconfig to create a client for existing OpenShift cluster and returns it or an error.

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