Documentation
¶
Index ¶
- func AddLabel(subscriptionID string, key string, value string, isInternal bool, ...) (*v1.Label, error)
- func DeleteLabel(subscriptionID string, key string, conn *sdk.Connection) error
- func GetSubscription(subscriptionID string, conn *sdk.Connection) (*v1.Subscription, error)
- func GetSubscriptions(key string, searchStr string, limit int, fetchLabels bool, ...) ([]*v1.Subscription, error)
- func GetSubscriptionsByOrg(organizationId string, conn *sdk.Connection) ([]*v1.Subscription, error)
- func ValidateSubscription(subscriptionID string, conn *sdk.Connection) error
- type Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteLabel ¶
func DeleteLabel(subscriptionID string, key string, conn *sdk.Connection) error
func GetSubscription ¶
func GetSubscription(subscriptionID string, conn *sdk.Connection) (*v1.Subscription, error)
func GetSubscriptions ¶
func GetSubscriptionsByOrg ¶
func GetSubscriptionsByOrg(organizationId string, conn *sdk.Connection) ([]*v1.Subscription, error)
func ValidateSubscription ¶
func ValidateSubscription(subscriptionID string, conn *sdk.Connection) error
Types ¶
type Subscription ¶
type Subscription struct {
types.Meta
CloudProviderID string `json:"cloud_provider_id"`
ClusterID string `json:"cluster_id"`
ConsoleURL string `json:"console_url"`
CreatedAt time.Time `json:"created_at"`
ExternalClusterID string `json:"external_cluster_id"`
HREF string `json:"href"`
ID string `json:"id"`
Managed bool `json:"managed"`
OrganizationId string `json:"organization_id"`
PlanID string `json:"plan_id"`
Status string `json:"status"`
SupportLevel string `json:"support_level"`
UpdatedAt time.Time `json:"updated_at"`
Labels label.LabelsList `json:"labels,omitempty"`
Capabilities capability.CapabilityList `json:"capabilities,omitempty"`
ReservedResources reserved_resource.ReservedResourceList `json:"reserved_resources,omitempty"`
Roles []rolebinding.SubscriptionsRoleBinding `json:"roles,omitempty"`
}
func PresentSubscription ¶
func PresentSubscription(subscription *v1.Subscription, reservedResources []*v1.ReservedResource, roles []*v1.RoleBinding) Subscription
func PresentSubscriptions ¶
func PresentSubscriptions(subscriptions []*v1.Subscription) []Subscription
Click to show internal directories.
Click to hide internal directories.