planvars

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandApply   = "apply"
	CommandPrepare = "prepare"
)

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context, opts Options) error

Types

type Options

type Options struct {
	Command         string
	WorkflowPath    string
	Scenario        string
	SelectedPhase   string
	PreparedRoot    string
	VarOverrides    map[string]any
	VarsFiles       []string
	Output          string
	StdoutPrintf    func(format string, args ...any) error
	JSONEncoderFunc func() *json.Encoder
}

type PlannedRuntimeVar

type PlannedRuntimeVar struct {
	Key    string `json:"key"`
	Step   string `json:"step"`
	Output string `json:"output"`
	Phase  string `json:"phase,omitempty"`
	Secret bool   `json:"secret,omitempty"`
}

type Report

type Report struct {
	Command       string         `json:"command"`
	WorkflowPath  string         `json:"workflowPath"`
	SelectedPhase string         `json:"selectedPhase,omitempty"`
	StatePath     string         `json:"statePath,omitempty"`
	Vars          map[string]any `json:"vars"`
	Context       map[string]any `json:"context"`
	Runtime       RuntimeReport  `json:"runtime"`
}

func BuildReport

func BuildReport(ctx context.Context, opts Options) (Report, error)

type RuntimeReport

type RuntimeReport struct {
	Initial map[string]any      `json:"initial"`
	Planned []PlannedRuntimeVar `json:"planned"`
}

Jump to

Keyboard shortcuts

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