Documentation ¶
Index ¶
- type Manager
- func (mgr *Manager) CleanupThreads(owner client.Object) func(context.Context, client.Client) error
- func (mgr *Manager) GetChannel() <-chan event.GenericEvent
- func (mgr *Manager) GetKeys() []string
- func (mgr *Manager) GetThread(id string, owner client.Object, log logr.Logger) RunnableThread
- func (mgr *Manager) ReconcileThreads(ctx context.Context, owner client.Object, threads []RunnableThread, ...) error
- type RunnableThread
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is a struct that holds configuration to manage concurrent RunnableThreads
func (*Manager) CleanupThreads ¶
CleanupThreads returns a function that cleans matching threads when invoked. This is intended for use as a cleanup function in the finalize phase of a controller's reconcile loop.
func (*Manager) GetChannel ¶
func (mgr *Manager) GetChannel() <-chan event.GenericEvent
GetChannel returns the channel through which events can be received from the running thread
func (*Manager) GetThread ¶
Returns a thread, typically for inspection by the caller (ie get status/errors)
func (*Manager) ReconcileThreads ¶
func (mgr *Manager) ReconcileThreads(ctx context.Context, owner client.Object, threads []RunnableThread, log logr.Logger) error
ReconcileThreads ensures that the threads identified by the provided keys are running. prefix() is used to identify which threads belong to each resource.
Click to show internal directories.
Click to hide internal directories.