ocm

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterServiceClusterSearch = "id = '%s' or name = '%s' or external_id = '%s'"
)

Variables

This section is empty.

Functions

func CreateConnection

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

CreateConnection takes care of common friendly errors and creates an OCM connection. As a consumer, remember to close the connection when you are done using it.

func GetCloudCredentials

func GetCloudCredentials(conn *sdk.Connection, cluster *cmv1.Cluster) (aws.Config, error)

GetCloudCredentials sets up AWS credentials via backplane-api given a cluster id, OCM token, and backplane-api URL

func GetCluster

func GetCluster(conn *sdk.Connection, clusterId string) (*cmv1.Cluster, error)

GetCluster returns an OCM cluster object given an OCM connection and cluster id (internal and external ids both supported).

Types

This section is empty.

Jump to

Keyboard shortcuts

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