Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecEnv ¶
type ExecEnv interface {
// PrepareActions creates the shared resources needed for the actions of an
// specific execution mode. It returns the actions of this execution mode.
PrepareActions(ctx context.Context, out io.Writer, allbuilds, localImgs []graph.Artifact, acsNames []string) ([]Action, error)
// Cleanup frees the shared resources created during PrepareActions.
Cleanup(ctx context.Context, out io.Writer) error
// Stop stops any ongoing task started in the execution env necessary to run the tasks.
Stop()
}
ExecEnv represents every execution mode available for custom actions.
type ExecStrategy ¶
ExecStrategy represents the functions to use to execute a list of tasks.
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
type Task ¶
type Task interface {
// Name is the unique name of the tasks across all other tasks and actions.
Name() string
// Exec triggers the execution of the task.
Exec(ctx context.Context, out io.Writer) error
// Cleanup frees the resources created by the task to execute itself.
Cleanup(ctx context.Context, out io.Writer) error
}
Task represents a single container from a custom action.
Click to show internal directories.
Click to hide internal directories.