noop

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package noop implements a no-op target locker.

Index

Constants

This section is empty.

Variables

View Source
var Name = "Noop"

Name is the name used to look this plugin up.

Functions

func New

func New() target.Locker

New initializes and returns a new ExampleTestStep.

Types

type Noop

type Noop struct {
}

Noop is the no-op target locker. It does nothing.

func (Noop) Close

func (tl Noop) Close() error

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.

func (Noop) TryLock

func (tl Noop) TryLock(ctx xcontext.Context, _ types.JobID, _ time.Duration, targets []*target.Target, limit uint) ([]string, error)

TryLock locks the specified targets by doing nothing.

func (Noop) Unlock

func (tl Noop) Unlock(ctx xcontext.Context, _ types.JobID, targets []*target.Target) error

Unlock unlocks the specified targets by doing nothing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL