Documentation ¶
Index ¶
- type DefaultExecutor
- func (e *DefaultExecutor) Analyze(stage string, fs vfs.FS, console plugins.Console, args ...string)
- func (e *DefaultExecutor) Apply(stageName string, s schema.YipConfig, fs vfs.FS, console plugins.Console) error
- func (e *DefaultExecutor) Conditionals(p []Plugin)
- func (e *DefaultExecutor) Graph(stage string, fs vfs.FS, console plugins.Console, source string) ([][]herd.GraphEntry, error)
- func (e *DefaultExecutor) Modifier(m schema.Modifier)
- func (e *DefaultExecutor) Plugins(p []Plugin)
- func (e *DefaultExecutor) Run(stage string, fs vfs.FS, console plugins.Console, args ...string) error
- type Executor
- type Options
- type Plugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultExecutor ¶
type DefaultExecutor struct {
// contains filtered or unexported fields
}
DefaultExecutor is the default yip Executor. It simply creates file and executes command for a linux executor
func (*DefaultExecutor) Analyze ¶
func (e *DefaultExecutor) Analyze(stage string, fs vfs.FS, console plugins.Console, args ...string)
func (*DefaultExecutor) Apply ¶
func (e *DefaultExecutor) Apply(stageName string, s schema.YipConfig, fs vfs.FS, console plugins.Console) error
Apply applies a yip Config file by creating files and running commands defined.
func (*DefaultExecutor) Conditionals ¶
func (e *DefaultExecutor) Conditionals(p []Plugin)
func (*DefaultExecutor) Graph ¶
func (e *DefaultExecutor) Graph(stage string, fs vfs.FS, console plugins.Console, source string) ([][]herd.GraphEntry, error)
func (*DefaultExecutor) Modifier ¶
func (e *DefaultExecutor) Modifier(m schema.Modifier)
func (*DefaultExecutor) Plugins ¶
func (e *DefaultExecutor) Plugins(p []Plugin)
type Executor ¶
type Executor interface { Apply(string, schema.YipConfig, vfs.FS, plugins.Console) error Run(string, vfs.FS, plugins.Console, ...string) error Plugins([]Plugin) Conditionals([]Plugin) Modifier(m schema.Modifier) Analyze(string, vfs.FS, plugins.Console, ...string) Graph(string, vfs.FS, plugins.Console, string) ([][]herd.GraphEntry, error) }
Executor an executor applies a yip config
func NewExecutor ¶
NewExecutor returns an executor from the stringified version of it.
type Options ¶
type Options func(d *DefaultExecutor) error
func WithConditionals ¶
WithConditionals sets the conditionals for the cloudrunner
func WithLogger ¶
WithLogger sets the logger for the cloudrunner
func WithPlugins ¶
WithPlugins sets the plugins for the cloudrunner
Click to show internal directories.
Click to hide internal directories.