accountmgmtutil

package
v0.44.0-beta4 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTermsAccepted

func CheckTermsAccepted(ctx context.Context, spec *remote.AmsConfig, conn connection.Connection) (accepted bool, redirectURI string, err error)

func GetOrganizationID

func GetOrganizationID(ctx context.Context, conn connection.Connection) (accountID string, err error)

func GetValidMarketplaceAcctIDs added in v0.44.0

func GetValidMarketplaceAcctIDs(userQuotaType *QuotaSpec, marketplace string) (marketplaceAcctIDs []string, err error)

func GetValidMarketplaces added in v0.44.0

func GetValidMarketplaces(userQuotaType *QuotaSpec) (marketplaces []string, err error)

Types

type QuotaSpec added in v0.42.0

type QuotaSpec struct {
	Name          string
	Quota         int
	BillingModel  string
	CloudAccounts *[]amsclient.CloudAccount
}

QuotaSpec - contains quota name and remaining quota count

func FetchQuotaCost

func FetchQuotaCost(f *factory.Factory, billingModel string, cloudAccountID string, marketplace string, spec *remote.AmsConfig) (userQuotaSpec *QuotaSpec, err error)

type QuotaType

type QuotaType = string

AMS types

const (
	QuotaTrialType       QuotaType = "trial"
	QuotaStandardType    QuotaType = "standard"
	QuotaMarketplaceType QuotaType = "marketplace"
)

Jump to

Keyboard shortcuts

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