Documentation
¶
Index ¶
Constants ¶
View Source
const (
CreatePlanWorkflowName = "CreatePlan"
)
Variables ¶
This section is empty.
Functions ¶
func CreatePlanIDCallback ¶
func CreatePlanIDCallback(req *CreatePlanRequest) string
Types ¶
type CreatePlanRequest ¶
type CreatePlanRequest struct {
Input interface{} `json:"input"`
}
CreatePlanRequest is a child workflow request for the plan phase. The Input field should contain the specific input type (component, sandbox, or runner).
type CreatePlanResponse ¶
CreatePlanResponse is a child workflow response for the plan phase.
func CreatePlan ¶
func CreatePlan(workflow.Context, *CreatePlanRequest) (*CreatePlanResponse, error)
@temporal-gen workflow @execution-timeout 60m @task-timeout 30m @task-queue "executors" @id-callback CreatePlanIDCallback
func FakePlanResponse ¶
func FakePlanResponse() *CreatePlanResponse
FakePlanResponse returns a fake response for sandbox mode.
type Plan ¶
type Plan struct {
ID string `json:"id"`
Status string `json:"status"`
Actions []PlanAction `json:"actions"`
Metadata map[string]interface{} `json:"metadata"`
}
Plan contains the plan details.
Click to show internal directories.
Click to hide internal directories.