actions

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action interface {
	Plan(*context.Context) ([]patches.Patch, error)
}

type ConditionAction

type ConditionAction struct {
	Condition func(
		ctx *context.Context,
	) bool
	Action Action
}

func (ConditionAction) Plan

func (a ConditionAction) Plan(
	ctx *context.Context,
) ([]patches.Patch, error)

type Pipeline

type Pipeline struct {
	Actions []Action
}

func (*Pipeline) Add

func (p *Pipeline) Add(actions ...Action) *Pipeline

func (Pipeline) Plan

func (p Pipeline) Plan(
	ctx *context.Context,
) ([]patches.Patch, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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