plan

package
v0.19.1303 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: AGPL-3.0 Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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