ocm

package
v0.5.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AckVersionGate added in v0.5.0

func AckVersionGate(cluster *csv1.Cluster, gate *csv1.VersionGate, connection *sdk.Connection, dryRun bool) (*csv1.VersionGateAgreement, error)

func ClustersForOrganization added in v0.5.0

func ClustersForOrganization(organizationId string, connection *sdk.Connection) (map[string]*csv1.Cluster, error)

func CurrentOrganizationId

func CurrentOrganizationId(connection *sdk.Connection) (string, error)

func GetClusterByName added in v0.5.0

func GetClusterByName(organizationId string, clusterName string, connection *sdk.Connection) (*csv1.Cluster, error)

func GetOrganization

func GetOrganization(organizationId string, connection *sdk.Connection) (*amv1.Organization, error)

func GetVersionGateAgreements added in v0.5.0

func GetVersionGateAgreements(clusterId string, connection *sdk.Connection) (map[string]*csv1.VersionGateAgreement, error)

func GetVersionGates added in v0.5.0

func GetVersionGates(connection *sdk.Connection) (map[string][]*csv1.VersionGate, error)

func NewOCMConnection

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

func SubscriptionForDisplayName added in v0.5.0

func SubscriptionForDisplayName(organizationId string, displayName string, connection *sdk.Connection) (*amv1.Subscription, error)

func SubscriptionsForOrganization added in v0.5.0

func SubscriptionsForOrganization(organizationId string, searchQuery string, connection *sdk.Connection) (map[string]*amv1.Subscription, error)

func Whoami

func Whoami(connection *sdk.Connection) (*amv1.Account, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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