Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cleaner ¶
type Cleaner interface { // Run causes the cleaner to clean up after dead worker. It blocks until a // fatal error is encountered or the context passed to it has been canceled. // Run always returns a non-nil error. Run(context.Context) error }
Cleaner is an interface to be implemented by components that re-queue tasks assigned to dead workers
type Heart ¶
type Heart interface { // Beat sends a single heartbeat Beat() error // Run sends heartbeats at regular intervals. It blocks until a fatal error // is encountered or the context passed to it has been canceled. Run always // returns a non-nil error. Run(context.Context) error }
Heart is an interface to be implemented by components that can send worker heartbeats
type Worker ¶
type Worker interface { // GetID returns the worker's ID GetID() string // RegisterJob registers a new Job with the worker RegisterJob(name string, fn async.JobFn) error // Run causes the worker to complete tasks. It blocks until a fatal error is // encountered or the context passed to it has been canceled. Run always // returns a non-nil error. Run(context.Context) error }
Worker is an interface to be implemented by components that receive and asynchronously complete provisioning and deprovisioning tasks
Click to show internal directories.
Click to hide internal directories.