Documentation
¶
Overview ¶
Package client implements the gRPC client used by the zedpm master process to communicate with all the plugins.
Index ¶
- type Interface
- func (c *Interface) Cancel(ctx context.Context, task plugin.Task) error
- func (c *Interface) Complete(ctx context.Context, task plugin.Task) error
- func (c *Interface) Goal(ctx context.Context, goalName string) (plugin.GoalDescription, error)
- func (c *Interface) Implements(ctx context.Context) ([]plugin.TaskDescription, error)
- func (c *Interface) Prepare(ctx context.Context, taskName string) (plugin.Task, error)
- type Operation
- type Task
- func (t *Task) Begin(ctx context.Context) (plugin.Operations, error)
- func (t *Task) Check(ctx context.Context) error
- func (t *Task) End(ctx context.Context) (plugin.Operations, error)
- func (t *Task) Finish(ctx context.Context) error
- func (t *Task) Run(ctx context.Context) (plugin.Operations, error)
- func (t *Task) Setup(_ context.Context) error
- func (t *Task) Teardown(_ context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface struct {
// contains filtered or unexported fields
}
Interface implements plugin.Interface to map calls to that interface onto calls to the api.TaskExecutionClient.
func NewGRPCTaskInterface ¶
func NewGRPCTaskInterface(client api.TaskExecutionClient) *Interface
NewGRPCTaskInterface returns a new plugin.Interface wrapper around api.TaskExecutionClient.
func (*Interface) Implements ¶
Implements calls the Implements gRPC service method.
type Operation ¶
type Operation struct {
// contains filtered or unexported fields
}
Operation implements plugin.OperationHandler, which makes calls to the api.TaskExecutionClient gRPC client.
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
Task implements the plugin.Task interface, which makes calls to the gRPC service defined by api.TaskExecutionClient.
func (*Task) Begin ¶
Begin calls the gRPC PrepareBegin method and returns operations that, when called, will call the gRPC ExecuteBegin service method.
func (*Task) End ¶
End calls the gRPC PrepareEnd method and returns operations that, when called, will call the gRPC ExecuteEnd service method.
func (*Task) Run ¶
Run calls the gRPC PrepareRun method and returns operations that, when called, will call the gRPC ExecuteRun service method.