Documentation ¶
Index ¶
- Constants
- 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 NewPluginExecutorProvider(ctx context.Context, cm *system.CleanupManager, ...) (executor.ExecutorProvider, error)
- func NewStandardExecutorProvider(dockerCacheCfg types.DockerCacheConfig, ...) (executor.ExecutorProvider, error)
- func NewStandardStorageProvider(getVolumeTimeout time.Duration, urlDownloadTimeout time.Duration, ...) (storage.StorageProvider, error)
- type PluginExecutorManager
- func (e *PluginExecutorManager) Get(ctx context.Context, key string) (executor.Executor, error)
- func (e *PluginExecutorManager) Has(ctx context.Context, key string) bool
- func (e *PluginExecutorManager) Keys(ctx context.Context) []string
- func (e *PluginExecutorManager) RegisterPlugin(config PluginExecutorManagerConfig) error
- func (e *PluginExecutorManager) Start(ctx context.Context) error
- func (e *PluginExecutorManager) Stop(ctx context.Context) error
- type PluginExecutorManagerConfig
- type PluginExecutorOptions
- type StandardExecutorOptions
- type StandardStorageProviderOptions
Constants ¶
View Source
const PluggableExecutorPluginName = "PLUGGABLE_EXECUTOR"
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 NewPluginExecutorProvider ¶ added in v1.0.4
func NewPluginExecutorProvider( ctx context.Context, cm *system.CleanupManager, pluginOptions PluginExecutorOptions, ) (executor.ExecutorProvider, error)
func NewStandardExecutorProvider ¶
func NewStandardExecutorProvider( dockerCacheCfg types.DockerCacheConfig, executorOptions StandardExecutorOptions, ) (executor.ExecutorProvider, error)
func NewStandardStorageProvider ¶
func NewStandardStorageProvider( getVolumeTimeout time.Duration, urlDownloadTimeout time.Duration, urlMaxRetries int, options StandardStorageProviderOptions, ) (storage.StorageProvider, error)
Types ¶
type PluginExecutorManager ¶ added in v1.0.4
type PluginExecutorManager struct {
// contains filtered or unexported fields
}
func NewPluginExecutorManager ¶ added in v1.0.4
func NewPluginExecutorManager() *PluginExecutorManager
func (*PluginExecutorManager) Has ¶ added in v1.0.4
func (e *PluginExecutorManager) Has(ctx context.Context, key string) bool
func (*PluginExecutorManager) Keys ¶ added in v1.0.4
func (e *PluginExecutorManager) Keys(ctx context.Context) []string
Keys returns the keys of the registered executors
func (*PluginExecutorManager) RegisterPlugin ¶ added in v1.0.4
func (e *PluginExecutorManager) RegisterPlugin(config PluginExecutorManagerConfig) error
type PluginExecutorManagerConfig ¶ added in v1.0.4
type PluginExecutorOptions ¶ added in v1.0.4
type PluginExecutorOptions struct {
Plugins []PluginExecutorManagerConfig
}
type StandardExecutorOptions ¶
type StandardExecutorOptions struct {
DockerID string
}
Click to show internal directories.
Click to hide internal directories.