Documentation ¶
Index ¶
- func NewExecutorSpecificBidStrategy(provider executor.ExecutorProvider) bidstrategy.BidStrategy
- func NewNoopExecutors(config noop_executor.ExecutorConfig) executor.ExecutorProvider
- func NewNoopStorageProvider(ctx context.Context, cm *system.CleanupManager, ...) (storage.StorageProvider, error)
- func NewStandardExecutorProvider(ctx context.Context, cm *system.CleanupManager, ...) (executor.ExecutorProvider, error)
- func NewStandardStorageProvider(_ context.Context, cm *system.CleanupManager, ...) (storage.StorageProvider, error)
- type InputLocalityStrategy
- func (s *InputLocalityStrategy) ShouldBid(ctx context.Context, request bidstrategy.BidStrategyRequest) (bidstrategy.BidStrategyResponse, error)
- func (s *InputLocalityStrategy) ShouldBidBasedOnUsage(_ context.Context, _ bidstrategy.BidStrategyRequest, _ model.ResourceUsageData) (bidstrategy.BidStrategyResponse, error)
- type InputLocalityStrategyParams
- type StandardExecutorOptions
- type StandardStorageProviderOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutorSpecificBidStrategy ¶ added in v0.3.24
func NewExecutorSpecificBidStrategy(provider executor.ExecutorProvider) bidstrategy.BidStrategy
func NewNoopExecutors ¶
func NewNoopExecutors(config noop_executor.ExecutorConfig) executor.ExecutorProvider
return noop executors for all engines
func NewNoopStorageProvider ¶
func NewNoopStorageProvider( ctx context.Context, cm *system.CleanupManager, config noop_storage.StorageConfig, ) (storage.StorageProvider, error)
func NewStandardExecutorProvider ¶
func NewStandardExecutorProvider( ctx context.Context, cm *system.CleanupManager, executorOptions StandardExecutorOptions, ) (executor.ExecutorProvider, error)
func NewStandardStorageProvider ¶
func NewStandardStorageProvider( _ context.Context, cm *system.CleanupManager, options StandardStorageProviderOptions, ) (storage.StorageProvider, error)
Types ¶
type InputLocalityStrategy ¶ added in v0.3.24
type InputLocalityStrategy struct {
// contains filtered or unexported fields
}
func NewInputLocalityStrategy ¶ added in v0.3.24
func NewInputLocalityStrategy(params InputLocalityStrategyParams) *InputLocalityStrategy
func (*InputLocalityStrategy) ShouldBid ¶ added in v0.3.24
func (s *InputLocalityStrategy) ShouldBid( ctx context.Context, request bidstrategy.BidStrategyRequest, ) (bidstrategy.BidStrategyResponse, error)
func (*InputLocalityStrategy) ShouldBidBasedOnUsage ¶ added in v0.3.24
func (s *InputLocalityStrategy) ShouldBidBasedOnUsage( _ context.Context, _ bidstrategy.BidStrategyRequest, _ model.ResourceUsageData) (bidstrategy.BidStrategyResponse, error)
type InputLocalityStrategyParams ¶ added in v0.3.24
type InputLocalityStrategyParams struct { Locality model.JobSelectionDataLocality Executors executor.ExecutorProvider }
type StandardExecutorOptions ¶
type StandardExecutorOptions struct { DockerID string Storage StandardStorageProviderOptions }
Click to show internal directories.
Click to hide internal directories.