utils

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyFilters added in v0.9.6

func ApplyFilters(ocmClient *sdk.Connection, filters []string) ([]*v1.Cluster, error)

ApplyFilters retrieves clusters in OCM which match the filters given

func CreateConnection added in v0.9.6

func CreateConnection() *sdk.Connection

func GenerateQuery added in v0.9.6

func GenerateQuery(clusterIdentifier string) string

GenerateQuery returns an OCM search query to retrieve all clusters matching an expression (ie- "foo%")

func GetCluster added in v0.9.6

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

GetCluster Function allows to get a single cluster with any identifier (displayname, ID, or external ID)

func GetClusterLimitedSupportReasons added in v0.9.6

func GetClusterLimitedSupportReasons(connection *sdk.Connection, clusterID string) ([]*lmtSprReasonItem, error)

func GetClusters added in v0.9.6

func GetClusters(ocmClient *sdk.Connection, clusterIds []string) []*v1.Cluster

func GetOCMAccessToken

func GetOCMAccessToken() (*string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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