ocm

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SupportedUrls = []string{
		"prod",
		"stage",
		"int",
		"prodgov",
	}
)

SupportedUrls is a shortened list of the urlAliases, for the help message We actually support all the urlAliases, but that's too many for the help

Functions

func CloseClient added in v1.0.0

func CloseClient() error

CloseClient allows the global ocm client to be closed.

func GetClient added in v1.0.0

func GetClient() *sdk.Connection

func GetCluster

func GetCluster(connection *sdk.Connection, key string) (cluster *cmv1.Cluster, err error)

GetCluster takes an *sdk.Connection and a cluster identifier string, and returns a *sdk.Cluster The string can be anything - UUID, ID, DisplayName

func GetClusterId

func GetClusterId(ocmClient *sdk.Connection, key string) (string, error)

GetClusterId takes an *sdk.Connection and a cluster identifier string, and returns the cluster ID

Types

type Config

type Config struct {
	Env map[string]string
}

func New

func New() (*Config, error)

type Error

type Error string

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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