ocm

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

supprotedUrls 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 GetOCMConfigLocation added in v0.3.0

func GetOCMConfigLocation() (string, error)

Finds the OCM Configuration file and returns the path to it Taken wholesale from openshift-online/ocm-cli

func NewClient

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

Types

type Config

type Config struct {
	Env map[string]string
}

func New

func New(ocmUrl 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