ocm

package
v0.0.0-...-f48db2a Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*ocmsdk.Connection
}

func New

func New(ctx context.Context,
	token string,
	clientID string,
	clientSecret string,
	environment Environment,
) (*Client, error)

func (*Client) Kubeconfig

func (c *Client) Kubeconfig(ctx context.Context, clusterID string) (string, error)

Kubeconfig returns the clusters kubeconfig content

func (*Client) KubeconfigFile

func (c *Client) KubeconfigFile(ctx context.Context, clusterID, directory string) (string, error)

GetKubeconfig returns the clusters kubeconfig file

type Environment

type Environment string
const (
	Production         Environment = "https://api.openshift.com"
	Stage              Environment = "https://api.stage.openshift.com"
	Integration        Environment = "https://api.integration.openshift.com"
	FedRampProduction  Environment = "https://api.openshiftusgov.com"
	FedRampStage       Environment = "https://api.stage.openshiftusgov.com"
	FedRampIntegration Environment = "https://api.int.openshiftusgov.com"
)

Jump to

Keyboard shortcuts

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