actions

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnexpectedArguments = errors.New("unexpected arguments")
	ErrMissingArguments    = errors.New("missing arguments")
	ErrInvalidKVArguments  = errors.New("invalid arguments, expected syntax {action}:{key}={value}")
)

Functions

func Get

func Get(name string) (plugintypes.Action, error)

Get returns an unwrapped RuleAction from the actionmap based on the name If the action does not exist it returns an error

func Register

func Register(name string, a func() plugintypes.Action)

Register registers a new RuleAction It can be used also for plugins. If you register an action with an existing name, it will be overwritten.

Types

This section is empty.

Jump to

Keyboard shortcuts

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