controller

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func New

func New(fs afero.Fs) *Controller

func (*Controller) Run

func (c *Controller) Run(ctx context.Context, logE *logrus.Entry) error

type HasLogLevelError added in v0.2.5

type HasLogLevelError struct {
	LogLevel logrus.Level
	Err      error
}

func (*HasLogLevelError) Error added in v0.2.5

func (e *HasLogLevelError) Error() string

func (*HasLogLevelError) Unwrap added in v0.2.5

func (e *HasLogLevelError) Unwrap() error

type Policy

type Policy interface {
	Name() string
	Apply(ctx context.Context, logE *logrus.Entry, cfg *config.Config, wf *workflow.Workflow) error
}

Jump to

Keyboard shortcuts

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