Documentation ¶
Index ¶
- Constants
- func CheckTermsAccepted(ctx context.Context, spec *remote.AmsConfig, conn connection.Connection) (accepted bool, redirectURI string, err error)
- func FetchValidMarketplaceAccounts(amsTypes []QuotaSpec, marketplace string) []string
- func FetchValidMarketplaces(amsTypes []QuotaSpec) []string
- func GetOrganizationID(ctx context.Context, conn connection.Connection) (accountID string, err error)
- type MarketplaceInfo
- type OrgQuotas
- type QuotaSpec
- type QuotaType
Constants ¶
View Source
const (
RedHatMarketPlace = "rhm"
)
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
FetchValidMarketplaceAccounts returns the cloud accounts available for the specified marketplace
func FetchValidMarketplaces ¶ added in v0.46.0
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 OrgQuotas ¶ added in v0.46.0
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, provider string) (*QuotaSpec, error)
nolint:funlen
Click to show internal directories.
Click to hide internal directories.