actions

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeleteActualQuotaAction

func NewDeleteActualQuotaAction(kafkaConfig config.KafkaConfig, quotaServiceFactory services.QuotaServiceFactory) chain.ReconcileAction[PromotionContext]

func NewReserveDesiredQuotaAction

func NewReserveDesiredQuotaAction(kafkaConfig config.KafkaConfig, quotaServiceFactory services.QuotaServiceFactory) chain.ReconcileAction[PromotionContext]

func NewUpdateKafkaRequestAction

func NewUpdateKafkaRequestAction(kafkaService services.KafkaService) chain.ReconcileAction[PromotionContext]

Types

type DeleteActualQuotaAction

type DeleteActualQuotaAction struct {
	// contains filtered or unexported fields
}

func (*DeleteActualQuotaAction) PerformJob

type PromotionContext

type PromotionContext struct {
	SubscriptionID string
}

type ReserveDesiredQuotaAction

type ReserveDesiredQuotaAction struct {
	// contains filtered or unexported fields
}

func (*ReserveDesiredQuotaAction) PerformJob

PerformJob reserves quota for the received kafkaRequest object. The quota is reserved only if it has not been already reserved (ie: running this action multiple times on the same kafkaRequest doesn't allocate multiple quotas) The type of quota to be allocated is inferred from the DesiredBillingModel attribute of the kafkaRequest object

type UpdateKafkaRequestAction

type UpdateKafkaRequestAction struct {
	// contains filtered or unexported fields
}

func (UpdateKafkaRequestAction) PerformJob

Jump to

Keyboard shortcuts

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