Documentation
¶
Index ¶
- func Execute(data map[string]any, opts ...Option) (map[string]any, error)
- func ServeWithActions(builtin []string, opts ...Option)
- func Spec() actionspec.Spec
- type Action
- type Callback
- type Option
- func WithActions(names map[string]string) Option
- func WithAfter(f func(result *Result)) Option
- func WithBefore(f func(path string, vars map[string]any)) Option
- func WithBuiltinActions(names []string) Option
- func WithCleanups(c *actionrpc.Cleanups) Option
- func WithGuard(guard actionrpc.Guard) Option
- func WithNeedsNoCheck(names []string) Option
- func WithRunID(id string) Option
- type Req
- type Res
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServeWithActions ¶
ServeWithActions serves the embedded action, which knows builtin, the names of the actions of Probe: a job that uses any other name is stopped before its first step, and told which name. opts are given to every job it runs, such as WithNeedsNoCheck.
func Spec ¶ added in v1.30.0
func Spec() actionspec.Spec
Spec declares the embedded action. It keeps to every kind of guard: it runs its job under the guard of the run, whose steps keep to it or are refused. It cannot run without path.
Spec leaves Serve to the registry, which serves the action with ServeWithActions to tell it the names of the actions of Probe.
Types ¶
type Option ¶
type Option func(*Callback)
func WithActions ¶
WithActions reads the job by names, the names the workflow of the step that embeds it gives its external actions.
func WithBuiltinActions ¶
WithBuiltinActions tells the job the names of the actions of Probe, so that a uses that names no action stops the job before any step runs.
func WithCleanups ¶ added in v1.27.0
WithCleanups leaves what the steps of the job left behind for the rest of the run of the step that embeds it, which cleans up once it is over: the actions to call then are named in c.
func WithNeedsNoCheck ¶ added in v1.30.0
WithNeedsNoCheck tells the job the names of the actions whose steps pass without a test, so that a step of one that has none is not counted as untested.