Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerRunner ¶ added in v0.3.0
type ContainerRunner interface { // Prepare should create (not run) any containers/pods, setup the environment, mounts, etc Prepare(ctx context.Context, imageName string) (id string, err error) // Run should execution the action and wait for completion Run(ctx context.Context, id string) error // Destroy should handle removing all things created/setup in Prepare Destroy(ctx context.Context) error // SetActionData gets the action data into the implementation SetActionData(ctx context.Context, workflowID string, action *workflow.WorkflowAction) }
ContainerRunner defines the methods needed to run a workflow task action
type Controller ¶ added in v0.3.0
type Controller struct { WorkflowClient workflow.WorkflowServiceClient HardwareClient hardware.HardwareServiceClient Backend Runner }
Controller
func (Controller) GetHardwareID ¶ added in v0.3.3
type EnvironmentRunner ¶ added in v0.3.0
type EnvironmentRunner interface { // PrepareEnv should do things like create namespaces, configs, secrets, etc PrepareEnv(ctx context.Context, id string) error // CleanEnv should remove anything that was created when PrepareEnv was called CleanEnv(ctx context.Context) error }
EnvironmentRunner is for preparing an environment for running workflow task actions
type Runner ¶ added in v0.3.0
type Runner interface { EnvironmentRunner ContainerRunner }
Runner interface what backend implementations must define
Click to show internal directories.
Click to hide internal directories.