Documentation
¶
Index ¶
- func ApplyFilters(ocmClient *sdk.Connection, filters []string) ([]*v1.Cluster, error)
- func ConfirmSend() error
- func CreateConnection() *sdk.Connection
- func GenerateQuery(clusterIdentifier string) string
- func GetAccount(connection *sdk.Connection, key string) (account *amv1.Account, err error)
- func GetCluster(connection *sdk.Connection, key string) (cluster *cmv1.Cluster, err error)
- func GetClusterLimitedSupportReasons(connection *sdk.Connection, clusterID string) ([]*lmtSprReasonItem, error)
- func GetClusters(ocmClient *sdk.Connection, clusterIds []string) []*v1.Cluster
- func GetOCMAccessToken() (*string, error)
- func GetSubscription(connection *sdk.Connection, key string) (subscription *amv1.Subscription, err error)
- func IsValidClusterKey(clusterKey string) (err error)
- func IsValidKey(clusterKey string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyFilters ¶ added in v0.9.6
ApplyFilters retrieves clusters in OCM which match the filters given
func ConfirmSend ¶ added in v0.12.0
func ConfirmSend() error
func CreateConnection ¶ added in v0.9.6
func CreateConnection() *sdk.Connection
func GenerateQuery ¶ added in v0.9.6
GenerateQuery returns an OCM search query to retrieve all clusters matching an expression (ie- "foo%")
func GetAccount ¶ added in v0.12.0
GetAccount Function allows to get a single account with any identifier (username, ID)
func GetCluster ¶ added in v0.9.6
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 GetSubscription ¶ added in v0.12.0
func GetSubscription(connection *sdk.Connection, key string) (subscription *amv1.Subscription, err error)
GetSubscription Function allows to get a single subscription with any identifier (displayname, ID, internal or external ID)
func IsValidClusterKey ¶ added in v0.11.0
func IsValidKey ¶ added in v0.11.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.