Documentation
¶
Index ¶
- type App
- func (a *App) IsValid(event domain.ParsedEvent) bool
- func (a *App) LoadTargetScriptList(event domain.ParsedEvent) error
- func (a *App) LoadTargetScripts(event domain.ParsedEvent) error
- func (a *App) ParseEvent() (domain.ParsedEvent, error)
- func (a *App) Run(invoker ShellInvoker) error
- func (a *App) ValidateTargetScripts() bool
- type Config
- type Logger
- type ParsedEventValidator
- type ShellInvoker
- type TargetScriptListValidator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Config Config TargetScriptList domain.TargetScriptList Parser domain.EventParser ScriptValidator TargetScriptListValidator EventValidator ParsedEventValidator Logger Logger }
func New ¶
func New(config *Config, parser domain.EventParser, scriptValidator TargetScriptListValidator, eventValidator ParsedEventValidator, logger Logger) *App
func (*App) LoadTargetScriptList ¶
func (a *App) LoadTargetScriptList(event domain.ParsedEvent) error
func (*App) LoadTargetScripts ¶
func (a *App) LoadTargetScripts(event domain.ParsedEvent) error
func (*App) ParseEvent ¶
func (a *App) ParseEvent() (domain.ParsedEvent, error)
func (*App) Run ¶
func (a *App) Run(invoker ShellInvoker) error
func (*App) ValidateTargetScripts ¶
type ParsedEventValidator ¶
type ParsedEventValidator interface {
Validate(event domain.ParsedEvent) bool
}
type ShellInvoker ¶
type ShellInvoker interface {
Execute(domain.TargetScriptList) error
}
type TargetScriptListValidator ¶
type TargetScriptListValidator interface {
Validate(list domain.TargetScriptList) bool
}
Click to show internal directories.
Click to hide internal directories.