Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkflowDeploymentAction ¶
type WorkflowDeploymentAction interface {
// AddWorkflow registers a new workflow with the source
AddWorkflow(ctx context.Context, workflow *WorkflowRegistration) error
// UpdateWorkflow updates the workflow's status configuration
UpdateWorkflow(ctx context.Context, workflowID [32]byte, config *WorkflowStatusConfig) error
// DeleteWorkflow removes the workflow from the source
DeleteWorkflow(ctx context.Context, workflowID [32]byte) error
}
WorkflowDeploymentAction defines operations for managing workflows in a workflow source. This interface is implemented by both the mock server (for testing) and the actual private workflow registry server (when built).
type WorkflowRegistration ¶
type WorkflowRegistration struct {
WorkflowID [32]byte
Owner []byte
WorkflowName string
BinaryURL string
ConfigURL string
DonFamily string
Tag string
Attributes []byte
}
WorkflowRegistration contains the data needed to register a workflow
type WorkflowStatusConfig ¶
type WorkflowStatusConfig struct {
// Paused indicates whether the workflow should be paused (true) or active (false)
Paused bool
}
WorkflowStatusConfig contains the desired state for a workflow's status
Click to show internal directories.
Click to hide internal directories.