plan

package
v0.2.36 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const HiddenActionNamePrefix string = "_"
View Source
const (
	ScalarKind cue.Kind = cue.StringKind | cue.NumberKind | cue.BoolKind
)

Variables

View Source
var (
	ErrIncompatiblePlan = errors.New("attempting to load a dagger 0.1.0 project.\nPlease upgrade your config to be compatible with this version of dagger. Contact the Dagger team if you need help")
	ActionSelector      = cue.Str("actions")
	ClientSelector      = cue.Str("client")
)

Functions

func PrintOutputs added in v0.2.9

func PrintOutputs(fields []compiler.Field, format, file string) error

Types

type Action added in v0.2.0

type Action struct {
	Name          string
	Hidden        bool
	Path          cue.Path
	Documentation string
	Children      []*Action
	Value         *compiler.Value
	// contains filtered or unexported fields
}

func (*Action) AddChild added in v0.2.0

func (a *Action) AddChild(c *Action)

func (*Action) FindByPath added in v0.2.0

func (a *Action) FindByPath(path cue.Path) *Action

func (*Action) FindClosest added in v0.2.7

func (a *Action) FindClosest(path cue.Path) *Action

func (*Action) Inputs added in v0.2.7

func (a *Action) Inputs() []Input

func (*Action) Outputs added in v0.2.9

func (a *Action) Outputs() []compiler.Field

func (*Action) UpdateFinal added in v0.2.9

func (a *Action) UpdateFinal(final *compiler.Value)

type Config

type Config struct {
	Args   []string
	With   []string
	Target string
	DryRun bool
}

type ErrorValidation added in v0.2.24

type ErrorValidation struct {
	Err  error
	Plan *Plan
}

func (ErrorValidation) Error added in v0.2.24

func (e ErrorValidation) Error() string

type Input added in v0.2.7

type Input struct {
	Name          string
	Type          string
	Documentation string
}

type Plan

type Plan struct {
	// contains filtered or unexported fields
}

func Load

func Load(ctx context.Context, cfg Config) (*Plan, error)

func (*Plan) Action added in v0.2.0

func (p *Plan) Action() *Action

func (*Plan) Context

func (p *Plan) Context() *plancontext.Context

func (*Plan) Do added in v0.2.0

func (p *Plan) Do(ctx context.Context, path cue.Path, s *solver.Solver) error

Do executes an action in the plan

func (*Plan) Final added in v0.2.9

func (p *Plan) Final() *compiler.Value

func (*Plan) Source

func (p *Plan) Source() *compiler.Value

type Runner added in v0.2.0

type Runner struct {
	// contains filtered or unexported fields
}

func NewRunner added in v0.2.0

func NewRunner(pctx *plancontext.Context, target cue.Path, s *solver.Solver, dryRun bool) *Runner

func (*Runner) Run added in v0.2.0

func (r *Runner) Run(ctx context.Context, src *compiler.Value) (*compiler.Value, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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