utils

package
v0.0.0-...-9b598c7 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CloudProviderAWS   = "aws"
	CloudProviderRHM   = "rhm"
	CloudProviderAzure = "azure"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AMSQuotaConfigProvider

type AMSQuotaConfigProvider interface {
	GetQuotaCostsForProduct(organizationID, resourceName, product string) ([]*amsv1.QuotaCost, error)
}

type BillingModelDetails

type BillingModelDetails struct {
	KafkaBillingModel config.KafkaBillingModel
	AMSBillingModel   string
}

type BillingModelResolver

type BillingModelResolver interface {
	SupportRequest(kafka *dbapi.KafkaRequest) bool
	Resolve(orgID string, kafka *dbapi.KafkaRequest) (BillingModelDetails, error)
}

func NewBillingModelResolver

func NewBillingModelResolver(quotaConfigProvider AMSQuotaConfigProvider, kafkaConfig *config.KafkaConfig) BillingModelResolver

Jump to

Keyboard shortcuts

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