plans

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 9 Imported by: ? modules, 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

Overview

Package plans holds the predefined plan kinds the plan manager runs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

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

func NewCommand

func NewCommand(plan *entity.Plan) (Command, error)

NewCommand requires Params to be a jobs.Command; its Out is replaced on each run.

func (Command) Header

func (c Command) Header() string

func (Command) Run

func (c Command) Run(jc job.Context, out io.Writer) (Outcome, error)

type Outcome

type Outcome struct {
	State    entity.PlanRunState
	Error    string // why it failed, or what stopped it
	ExitCode int    // for a kind with an exit status, like a command; 0 for one without
}

Outcome always carries a State, and an Error unless it succeeded; the plan manager fills in the rest of the PlanRun.

Jump to

Keyboard shortcuts

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