Documentation ¶
Index ¶
- Variables
- func Load() (string, target.TargetManagerFactory)
- func New() target.TargetManager
- type AcquireParameters
- type ReleaseParameters
- type TargetListWithState
- func (tlws *TargetListWithState) Acquire(ctx xcontext.Context, jobID types.JobID, ...) ([]*target.Target, error)
- func (tlws *TargetListWithState) Release(ctx xcontext.Context, jobID types.JobID, targets []*target.Target, ...) error
- func (tlws TargetListWithState) ValidateAcquireParameters(params []byte) (interface{}, error)
- func (tlws TargetListWithState) ValidateReleaseParameters(params []byte) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Name = "TargetListWithState"
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 AcquireParameters ¶
AcquireParameters contains the parameters necessary to acquire targets.
type ReleaseParameters ¶
type ReleaseParameters struct { }
ReleaseParameters contains the parameters necessary to release targets.
type TargetListWithState ¶
type TargetListWithState struct { }
TargetListWithState implements the contest.TargetManager interface.
func (*TargetListWithState) Acquire ¶
func (tlws *TargetListWithState) Acquire(ctx xcontext.Context, jobID types.JobID, jobTargetManagerAcquireTimeout time.Duration, parameters interface{}, tl target.Locker) ([]*target.Target, error)
Acquire implements contest.TargetManager.Acquire
func (*TargetListWithState) Release ¶
func (tlws *TargetListWithState) Release(ctx xcontext.Context, jobID types.JobID, targets []*target.Target, params interface{}) error
Release releases the acquired resources.
func (TargetListWithState) ValidateAcquireParameters ¶
func (tlws TargetListWithState) ValidateAcquireParameters(params []byte) (interface{}, error)
ValidateAcquireParameters valides parameters that will be passed to Acquire.
func (TargetListWithState) ValidateReleaseParameters ¶
func (tlws TargetListWithState) ValidateReleaseParameters(params []byte) (interface{}, error)
ValidateReleaseParameters valides parameters that will be passed to Release.
Click to show internal directories.
Click to hide internal directories.