mutators

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedMutatorType = errors.New("mutator type unsupported")
)

Functions

This section is empty.

Types

type Mutator

type Mutator interface {
	Execute(ctx heimdall.Context, sub *subject.Subject) error
	WithConfig(config map[string]any) (Mutator, error)
}

func CreateMutatorPrototype

func CreateMutatorPrototype(id string, typ config.PipelineObjectType, mConfig map[string]any) (Mutator, error)

type MutatorTypeFactory

type MutatorTypeFactory func(id string, t config.PipelineObjectType, c map[string]any) (bool, Mutator, error)

Jump to

Keyboard shortcuts

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