Documentation ¶
Index ¶
- func CheckTermsAccepted(ctx context.Context, spec *remote.AmsConfig, conn connection.Connection) (accepted bool, redirectURI string, err error)
- func GetOrganizationID(ctx context.Context, conn connection.Connection) (accountID string, err error)
- func GetValidMarketplaceAcctIDs(ctx context.Context, connectionFunc factory.ConnectionFunc, marketplace string) (marketplaceAcctIDs []string, err error)
- func GetValidMarketplaces(ctx context.Context, connectionFunc factory.ConnectionFunc) (marketplaces []string, err error)
- type QuotaSpec
- func BattleOfInstanceBillingModels(quotas []QuotaSpec) []QuotaSpec
- func GetUserSupportedInstanceType(ctx context.Context, spec *remote.AmsConfig, conn connection.Connection) (quota *QuotaSpec, err error)
- func GetUserSupportedInstanceTypes(ctx context.Context, spec *remote.AmsConfig, conn connection.Connection) (quota []QuotaSpec, err error)
- func PickInstanceType(amsTypes []QuotaSpec) *QuotaSpec
- type QuotaType
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 GetValidMarketplaces ¶ added in v0.44.0
Types ¶
type QuotaSpec ¶ added in v0.42.0
QuotaSpec - contains quota name and remaining quota count
func BattleOfInstanceBillingModels ¶ added in v0.42.0
This function selects the billing model that should be used It represents some requirement to always use the same standard billing models This function should not exist but it does represents some requirement that we cannot do on backend
func GetUserSupportedInstanceType ¶ added in v0.42.0
func GetUserSupportedInstanceType(ctx context.Context, spec *remote.AmsConfig, conn connection.Connection) (quota *QuotaSpec, err error)
func GetUserSupportedInstanceTypes ¶
func GetUserSupportedInstanceTypes(ctx context.Context, spec *remote.AmsConfig, conn connection.Connection) (quota []QuotaSpec, err error)
func PickInstanceType ¶ added in v0.42.0
PickInstanceType - Standard instance always wins! This function should not exist but it does represents some requirement from business to only pick one instance type when two are presented. When standard instance type is present in user instances it should always take precedence
Click to show internal directories.
Click to hide internal directories.