prepare

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: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvaluateWhen

func EvaluateWhen(expr string, vars map[string]any, runtime map[string]any) (bool, error)

func EvaluateWhenWithContext added in v0.2.6

func EvaluateWhenWithContext(expr string, vars map[string]any, runtime map[string]any, context map[string]any) (bool, error)

func Run

func Run(ctx context.Context, wf *config.Workflow, opts RunOptions) error

Types

type CommandRunner

type CommandRunner interface {
	Run(ctx context.Context, name string, args ...string) error
	RunWithIO(ctx context.Context, stdout io.Writer, stderr io.Writer, name string, args ...string) error
	LookPath(file string) (string, error)
}

type PackCachePlan

type PackCachePlan struct {
	WorkflowSHA256 string                  `json:"workflow_sha256"`
	Artifact       []packCacheArtifactPlan `json:"artifacts"`
}

func ComputePackCachePlan

func ComputePackCachePlan(prevState packCacheState, workflowBytes []byte, effectiveVars map[string]any, steps []config.Step) PackCachePlan

type PlanDiagnostics

type PlanDiagnostics struct {
	CachePlan PackCachePlan
}

func InspectPlan

func InspectPlan(wf *config.Workflow, bundleRoot string, opts RunOptions) (PlanDiagnostics, error)

type RunOptions

type RunOptions struct {
	BundleRoot      string
	Context         workflowcontext.Context
	CommandRunner   CommandRunner
	Interaction     operatorio.Interface
	ForceRedownload bool
	EventSink       StepEventSink
	// contains filtered or unexported fields
}

type StepEvent added in v0.2.1

type StepEvent = install.StepEvent

type StepEventSink added in v0.2.1

type StepEventSink = install.StepEventSink

Jump to

Keyboard shortcuts

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