Documentation ¶
Overview ¶
Package noop implements a no-op target locker.
Index ¶
- Variables
- func New() target.Locker
- type Noop
- func (tl Noop) Close() error
- func (tl Noop) Lock(ctx xcontext.Context, _ types.JobID, _ time.Duration, targets []*target.Target) error
- func (tl Noop) RefreshLocks(ctx xcontext.Context, jobID types.JobID, _ time.Duration, ...) error
- func (tl Noop) TryLock(ctx xcontext.Context, _ types.JobID, _ time.Duration, targets []*target.Target, ...) ([]string, error)
- func (tl Noop) Unlock(ctx xcontext.Context, _ types.JobID, targets []*target.Target) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Name = "Noop"
Name is the name used to look this plugin up.
Functions ¶
Types ¶
type Noop ¶
type Noop struct { }
Noop is the no-op target locker. It does nothing.
func (Noop) Lock ¶
func (tl Noop) Lock(ctx xcontext.Context, _ types.JobID, _ time.Duration, targets []*target.Target) error
Lock locks the specified targets by doing nothing.
func (Noop) RefreshLocks ¶
func (tl Noop) RefreshLocks(ctx xcontext.Context, jobID types.JobID, _ time.Duration, targets []*target.Target) error
RefreshLocks refreshes all the locks by the internal (non-existing) timeout, by flawlessly doing nothing.
Click to show internal directories.
Click to hide internal directories.