Documentation ¶
Index ¶
- Variables
- func Load() (string, target.TargetManagerFactory)
- func New() target.TargetManager
- type Readmeta
- func (t *Readmeta) Acquire(ctx xcontext.Context, jobID types.JobID, ...) ([]*target.Target, error)
- func (t *Readmeta) Release(ctx xcontext.Context, jobID types.JobID, targets []*target.Target, ...) error
- func (r Readmeta) ValidateAcquireParameters(params []byte) (interface{}, error)
- func (r Readmeta) ValidateReleaseParameters(params []byte) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Name = "readmeta"
)
Name defined the name of the plugin
Functions ¶
func Load ¶
func Load() (string, target.TargetManagerFactory)
Load returns the name and factory which are needed to register the TargetManager.
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 ¶
ValidateAcquireParameters valides parameters that will be passed to Acquire.
func (Readmeta) ValidateReleaseParameters ¶
ValidateReleaseParameters valides parameters that will be passed to Release.
Click to show internal directories.
Click to hide internal directories.