readmeta

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

Index

Constants

This section is empty.

Variables

View Source
var (
	Name = "readmeta"
)

Name defined the name of the plugin

Functions

func Load

Load returns the name and factory which are needed to register the TargetManager.

func New

func New() target.TargetManager

New builds a new Readmeta object.

Types

type Readmeta

type Readmeta struct {
}

Readmeta implements the contest.TargetManager interface.

func (*Readmeta) Acquire

func (t *Readmeta) Acquire(ctx xcontext.Context, jobID types.JobID, jobTargetManagerAcquireTimeout time.Duration, parameters interface{}, tl target.Locker) ([]*target.Target, error)

Acquire implements contest.TargetManager.Acquire

func (*Readmeta) Release

func (t *Readmeta) Release(ctx xcontext.Context, jobID types.JobID, targets []*target.Target, params interface{}) error

Release releases the acquired resources.

func (Readmeta) ValidateAcquireParameters

func (r Readmeta) ValidateAcquireParameters(params []byte) (interface{}, error)

ValidateAcquireParameters valides parameters that will be passed to Acquire.

func (Readmeta) ValidateReleaseParameters

func (r Readmeta) ValidateReleaseParameters(params []byte) (interface{}, error)

ValidateReleaseParameters valides parameters that will be passed to Release.

Jump to

Keyboard shortcuts

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