ocm

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 10 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 GetCluster

func GetCluster(ocmClient *sdk.Connection, key string) (*cmv1.Cluster, 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

func NewClient

func NewClient() (*sdk.Connection, error)

Types

type Config

type Config struct {
	Env map[string]string
}

func New

func New(ocmcOcmUrl string) (*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