Documentation ¶
Index ¶
- type Core
- func (x *Core) ActionMock() interfaces.ActionMock
- func (x *Core) DBClient() interfaces.Database
- func (x *Core) DisableAction() bool
- func (x *Core) Env() types.EnvVars
- func (x *Core) GetAction(name types.ActionName) (interfaces.RunAction, bool)
- func (x *Core) MaxSequences() int
- func (x *Core) Now() time.Time
- func (x *Core) QueryActionPolicy(ctx context.Context, in, out any) error
- func (x *Core) QueryAlertPolicy(ctx context.Context, schema types.Schema, in, out any) error
- func (x *Core) ScenarioLogger() interfaces.ScenarioLogger
- func (x *Core) Timeout() time.Duration
- type Option
- func WithActionMock(mock interfaces.ActionMock) Option
- func WithDatabase(db interfaces.Database) Option
- func WithDisableAction() Option
- func WithEnablePrint() Option
- func WithEnv(f interfaces.Env) Option
- func WithExtraAction(name types.ActionName, action interfaces.RunAction) Option
- func WithPolicyAction(p *policy.Client) Option
- func WithPolicyAlert(p *policy.Client) Option
- func WithScenarioLogger(logger interfaces.ScenarioLogger) Option
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 (*Core) ActionMock ¶
func (x *Core) ActionMock() interfaces.ActionMock
func (*Core) DBClient ¶
func (x *Core) DBClient() interfaces.Database
func (*Core) DisableAction ¶
func (*Core) GetAction ¶
func (x *Core) GetAction(name types.ActionName) (interfaces.RunAction, bool)
func (*Core) MaxSequences ¶
func (*Core) QueryActionPolicy ¶
func (*Core) QueryAlertPolicy ¶
func (*Core) ScenarioLogger ¶
func (x *Core) ScenarioLogger() interfaces.ScenarioLogger
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 WithPolicyAlert ¶
func WithScenarioLogger ¶
func WithScenarioLogger(logger interfaces.ScenarioLogger) Option
Click to show internal directories.
Click to hide internal directories.