controller

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 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(_ context.Context, logE *logrus.Entry, cfgFilePath string) 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 JobPolicy added in v0.2.8

type JobPolicy interface {
	Name() string
	ID() string
	ApplyJob(logE *logrus.Entry, cfg *config.Config, jobCtx *policy.JobContext, job *workflow.Job) error
}

type Policy

type Policy interface {
	Name() string
	ID() string
}

type StepPolicy added in v0.2.8

type StepPolicy interface {
	Name() string
	ID() string
	ApplyStep(logE *logrus.Entry, cfg *config.Config, stepCtx *policy.StepContext, step *workflow.Step) error
}

type WorkflowPolicy added in v0.2.8

type WorkflowPolicy interface {
	Name() string
	ID() string
	ApplyWorkflow(logE *logrus.Entry, cfg *config.Config, wfCtx *policy.WorkflowContext, wf *workflow.Workflow) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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