accountmgmtutil

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: Apache-2.0 Imports: 6 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 FetchValidMarketplaceAccounts added in v0.46.0

func FetchValidMarketplaceAccounts(amsTypes []QuotaSpec, marketplace string) []string

FetchValidMarketplaceAccounts returns the cloud accounts available for the specified marketplace

func FetchValidMarketplaces added in v0.46.0

func FetchValidMarketplaces(amsTypes []QuotaSpec) []string

FetchValidMarketplaces returns the marketplaces available to the user to create Kafka Instance

func GetOrganizationID

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

Types

type MarketplaceInfo added in v0.46.0

type MarketplaceInfo struct {
	BillingModel   string
	Provider       string
	CloudAccountID string
}

type OrgQuotas added in v0.46.0

type OrgQuotas struct {
	StandardQuotas    []QuotaSpec
	MarketplaceQuotas []QuotaSpec
	TrialQuotas       []QuotaSpec
}

func GetOrgQuotas added in v0.46.0

func GetOrgQuotas(f *factory.Factory, spec *remote.AmsConfig) (*OrgQuotas, error)

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 SelectQuotaForUser added in v0.46.0

func SelectQuotaForUser(f *factory.Factory, orgQuota *OrgQuotas, marketplaceInfo MarketplaceInfo) (*QuotaSpec, 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