Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deduper ¶
type Deduper struct {
// contains filtered or unexported fields
}
Deduper is a job handler that wraps another job handler (typically Limiter) and only creates a new job if an existing job does not already exist.
func (*Deduper) Handle ¶
Handle passes the job to the next handler if the job is not already scheduled. Otherwise, it returns model.ErrDuplicateJob.
func (*Deduper) RegisterInformer ¶
func (d *Deduper) RegisterInformer(ctx context.Context, factory informers.SharedInformerFactory) error
RegisterInformer registers the limiter to listen for Kubernetes job events, and waits for cache sync.
Click to show internal directories.
Click to hide internal directories.