Documentation
¶
Index ¶
- func Execute(data map[string]any, opts ...Option) (map[string]any, error)
- func Keeps() []string
- func Params() []string
- func Serve()
- func ServeWithActions(builtin []string)
- 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 WithRunID(id string) Option
- type Req
- type Res
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Keeps ¶
func Keeps() []string
Keeps returns the kinds of guard the embedded action keeps to: it runs its job under the guard of the run, whose steps keep to it or are refused.
func ServeWithActions ¶
func ServeWithActions(builtin []string)
ServeWithActions is Serve for an action that 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.
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.