action

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Action

type Action interface {
	Apply(ctx context.Context) error
	String() string
}

type ExecFactory added in v0.4.0

type ExecFactory struct{}

func (ExecFactory) Create added in v0.4.0

func (f ExecFactory) Create(params params.Params, taskPath string) (Action, error)

func (ExecFactory) Name added in v0.4.0

func (f ExecFactory) Name() string

type Factory

type Factory interface {
	Create(params params.Params, taskPath string) (Action, error)
	Name() string
}

type FileCreateFactory

type FileCreateFactory struct{}

func (FileCreateFactory) Create

func (f FileCreateFactory) Create(params params.Params, taskPath string) (Action, error)

func (FileCreateFactory) Name

func (f FileCreateFactory) Name() string

type FileDeleteFactory

type FileDeleteFactory struct{}

func (FileDeleteFactory) Create

func (f FileDeleteFactory) Create(params params.Params, _ string) (Action, error)

func (FileDeleteFactory) Name

func (f FileDeleteFactory) Name() string

type LineDeleteFactory

type LineDeleteFactory struct{}

func (LineDeleteFactory) Create

func (f LineDeleteFactory) Create(params params.Params, _ string) (Action, error)

func (LineDeleteFactory) Name

func (f LineDeleteFactory) Name() string

type LineInsertFactory

type LineInsertFactory struct{}

func (LineInsertFactory) Create

func (f LineInsertFactory) Create(params params.Params, _ string) (Action, error)

func (LineInsertFactory) Name

func (f LineInsertFactory) Name() string

type LineReplaceFactory

type LineReplaceFactory struct{}

func (LineReplaceFactory) Create

func (f LineReplaceFactory) Create(params params.Params, _ string) (Action, error)

func (LineReplaceFactory) Name

func (f LineReplaceFactory) Name() string

type ScriptFactory added in v0.12.0

type ScriptFactory struct{}

ScriptFactory initializes a new script action.

func (ScriptFactory) Create added in v0.12.0

func (f ScriptFactory) Create(params params.Params, taskPath string) (Action, error)

Create implements Factory.

func (ScriptFactory) Name added in v0.12.0

func (f ScriptFactory) Name() string

Name implements Factory.

Jump to

Keyboard shortcuts

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