plan

package
v0.19.765 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

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

type CreatePlanResponse struct {
	Ref  *PlanRef `json:"ref"`
	Plan *Plan    `json:"plan"`
}

CreatePlanResponse is a child workflow response for the plan phase.

func CreatePlan

@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.

type PlanAction

type PlanAction struct {
	Type     string                 `json:"type"`
	Resource string                 `json:"resource"`
	Action   string                 `json:"action"`
	Details  map[string]interface{} `json:"details"`
}

PlanAction represents a single action in a plan.

type PlanRef

type PlanRef struct {
	ID   string `json:"id"`
	Type string `json:"type"`
}

PlanRef contains reference information for a plan.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL