core

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

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

func New

func New(options ...Option) *Core

func (*Core) ActionMock

func (x *Core) ActionMock() interfaces.ActionMock

func (*Core) DBClient

func (x *Core) DBClient() interfaces.Database

func (*Core) DisableAction

func (x *Core) DisableAction() bool

func (*Core) Env

func (x *Core) Env() types.EnvVars

func (*Core) GetAction

func (x *Core) GetAction(name types.ActionName) (interfaces.RunAction, bool)

func (*Core) MaxSequences

func (x *Core) MaxSequences() int

func (*Core) Now

func (x *Core) Now() time.Time

func (*Core) QueryActionPolicy

func (x *Core) QueryActionPolicy(ctx context.Context, in, out any) error

func (*Core) QueryAlertPolicy

func (x *Core) QueryAlertPolicy(ctx context.Context, schema types.Schema, in, out any) error

func (*Core) ScenarioLogger

func (x *Core) ScenarioLogger() interfaces.ScenarioLogger

func (*Core) Timeout

func (x *Core) Timeout() time.Duration

type Option

type Option func(c *Core)

func WithActionMock

func WithActionMock(mock interfaces.ActionMock) Option

func WithDatabase

func WithDatabase(db interfaces.Database) Option

func WithDisableAction

func WithDisableAction() Option

func WithEnablePrint

func WithEnablePrint() Option

func WithEnv

func WithEnv(f interfaces.Env) Option

func WithExtraAction

func WithExtraAction(name types.ActionName, action interfaces.RunAction) Option

func WithPolicyAction

func WithPolicyAction(p *policy.Client) Option

func WithPolicyAlert

func WithPolicyAlert(p *policy.Client) Option

func WithScenarioLogger

func WithScenarioLogger(logger interfaces.ScenarioLogger) Option

Jump to

Keyboard shortcuts

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