Documentation ¶
Index ¶
- type AvailableCapacityStrategy
- func (s *AvailableCapacityStrategy) ShouldBid(ctx context.Context, request bidstrategy.BidStrategyRequest) (bidstrategy.BidStrategyResponse, error)
- func (s *AvailableCapacityStrategy) ShouldBidBasedOnUsage(ctx context.Context, request bidstrategy.BidStrategyRequest, ...) (bidstrategy.BidStrategyResponse, error)
- type AvailableCapacityStrategyParams
- type MaxCapacityStrategy
- type MaxCapacityStrategyParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AvailableCapacityStrategy ¶
type AvailableCapacityStrategy struct {
// contains filtered or unexported fields
}
func NewAvailableCapacityStrategy ¶
func NewAvailableCapacityStrategy(ctx context.Context, params AvailableCapacityStrategyParams) *AvailableCapacityStrategy
func (*AvailableCapacityStrategy) ShouldBid ¶
func (s *AvailableCapacityStrategy) ShouldBid( ctx context.Context, request bidstrategy.BidStrategyRequest) (bidstrategy.BidStrategyResponse, error)
func (*AvailableCapacityStrategy) ShouldBidBasedOnUsage ¶
func (s *AvailableCapacityStrategy) ShouldBidBasedOnUsage( ctx context.Context, request bidstrategy.BidStrategyRequest, usage model.ResourceUsageData) (bidstrategy.BidStrategyResponse, error)
type MaxCapacityStrategy ¶
type MaxCapacityStrategy struct {
// contains filtered or unexported fields
}
func NewMaxCapacityStrategy ¶
func NewMaxCapacityStrategy(params MaxCapacityStrategyParams) *MaxCapacityStrategy
func (*MaxCapacityStrategy) ShouldBid ¶
func (s *MaxCapacityStrategy) ShouldBid(context.Context, bidstrategy.BidStrategyRequest) (bidstrategy.BidStrategyResponse, error)
func (*MaxCapacityStrategy) ShouldBidBasedOnUsage ¶
func (s *MaxCapacityStrategy) ShouldBidBasedOnUsage( ctx context.Context, request bidstrategy.BidStrategyRequest, usage model.ResourceUsageData) (bidstrategy.BidStrategyResponse, error)
type MaxCapacityStrategyParams ¶
type MaxCapacityStrategyParams struct {
MaxJobRequirements model.ResourceUsageData
}
Click to show internal directories.
Click to hide internal directories.