organization

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLabel

func AddLabel(orgID string, key string, value string, isInternal bool, conn *sdk.Connection) (*v1.Label, error)

func DeleteLabel

func DeleteLabel(orgID string, key string, conn *sdk.Connection) error

func GetOrganization

func GetOrganization(orgID string, conn *sdk.Connection) (*v1.Organization, error)

func GetOrganizations

func GetOrganizations(key string, searchStr string, limit int, fetchLabels bool, fetchCapabilities bool, searchOnly bool, conn *sdk.Connection) ([]*v1.Organization, error)

func ValidateOrganization

func ValidateOrganization(orgID string, conn *sdk.Connection) error

Types

type Organization

type Organization struct {
	types.Meta
	Name          string                        `json:"name"`
	CreatedAt     time.Time                     `json:"created_at"`
	UpdatedAt     time.Time                     `json:"updated_at"`
	EbsAccountID  string                        `json:"ebs_account_id"`
	ExternalID    string                        `json:"external_id"`
	Subscriptions []subscription.Subscription   `json:"subscriptions,omitempty"`
	Quota         []quota.Quota                 `json:"quota,omitempty"`
	Labels        label.LabelsList              `json:"labels,omitempty"`
	Capabilities  capability.CapabilityList     `json:"capabilities,omitempty"`
	ResourceQuota []resourcequota.ResourceQuota `json:"resource_quota,omitempty"`
}

func PresentOrganization

func PresentOrganization(organization *v1.Organization, subscriptions []*v1.Subscription, quotaCostList []*v1.QuotaCost, resourceQuotaList []*v1.ResourceQuota) Organization

Jump to

Keyboard shortcuts

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