Documentation ¶
Index ¶
- func ClearRegistry(_ context.Context) error
- func GetAllTaskTypeExecutors() map[types.TaskType]types.Executor
- func GetTaskExecutor(taskType types.TaskType) (types.Executor, error)
- func K8sRegisterAsDefault(id string, resourceToWatch runtime.Object, resyncPeriod time.Duration, ...) error
- func K8sRegisterForTaskTypes(id string, resourceToWatch runtime.Object, resyncPeriod time.Duration, ...) error
- func ListAllTaskExecutors() []types.Executor
- func RegisterAsDefault(executor types.Executor) error
- func RegisterForTaskTypes(executor types.Executor, taskTypes ...types.TaskType) error
- func RegisterLoader(fn PluginLoaderFn)
- func RunAllLoaders(ctx context.Context) error
- type PluginLoaderFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearRegistry ¶
Clears all registered plugins. This should only be called after all packages/plugins have been safely loaded. Otherwise, init-based registrations will sneak through.
func K8sRegisterAsDefault ¶
func K8sRegisterForTaskTypes ¶
func ListAllTaskExecutors ¶
func RegisterAsDefault ¶
func RegisterForTaskTypes ¶
func RegisterLoader ¶
func RegisterLoader(fn PluginLoaderFn)
Registers a plugin loader to be called when it's safe to perform plugin initialization logic. This function is NOT thread-safe and is expected to be called in an init() function (which runs in a single thread).
func RunAllLoaders ¶
Runs all plugin loader functions and errors out if any of the loaders fails to finish successfully.
Types ¶
type PluginLoaderFn ¶
Click to show internal directories.
Click to hide internal directories.