Documentation
¶
Index ¶
- func ParseInterpreterCommand(variables Variables, entrypoint, commands []string) (string, []string)
- type Command
- type CommandExecutor
- type CommandGroup
- type DockerEnvironment
- type ExecutorContext
- type LocalEnvironment
- type LocalScheduler
- type ParallelCommands
- type Runable
- type Scheduler
- type SerialCommands
- type ShellCommand
- type SupermakeFile
- type Target
- type Targets
- type Variable
- type VariableEvaluationType
- type Variables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandExecutor ¶
type CommandExecutor interface {
Execute(ctx context.Context, execCtx ExecutorContext, command Command) error
}
type CommandGroup ¶
type CommandGroup []string
func (CommandGroup) GetShellCommands ¶
func (c CommandGroup) GetShellCommands() []string
type DockerEnvironment ¶
func (*DockerEnvironment) Execute ¶
func (d *DockerEnvironment) Execute(ctx context.Context, execCtx ExecutorContext, command Command) error
type ExecutorContext ¶
type LocalEnvironment ¶
type LocalEnvironment struct {
Entrypoint []string
}
func NewLocalEnvironment ¶
func NewLocalEnvironment() *LocalEnvironment
func (*LocalEnvironment) Execute ¶
func (l *LocalEnvironment) Execute(ctx context.Context, execCtx ExecutorContext, command Command) error
type LocalScheduler ¶
type LocalScheduler struct {
// contains filtered or unexported fields
}
func NewLocalScheduler ¶
func NewLocalScheduler() *LocalScheduler
func (*LocalScheduler) ResetTarget ¶
func (s *LocalScheduler) ResetTarget(ctx context.Context, target *Target) error
func (*LocalScheduler) ScheduleTarget ¶
func (s *LocalScheduler) ScheduleTarget(ctx context.Context, execCtx ExecutorContext, target *Target) error
func (*LocalScheduler) TargetDone ¶
func (s *LocalScheduler) TargetDone(ctx context.Context, target *Target) error
type ParallelCommands ¶
type ParallelCommands struct { Environment CommandExecutor Steps []Command }
func (*ParallelCommands) FQN ¶
func (c *ParallelCommands) FQN() string
func (*ParallelCommands) GetShellCommands ¶
func (c *ParallelCommands) GetShellCommands() []string
func (*ParallelCommands) Name ¶
func (c *ParallelCommands) Name() string
func (*ParallelCommands) Run ¶
func (c *ParallelCommands) Run(ctx context.Context, execCtx ExecutorContext) error
type Runable ¶
type Runable interface { Run(ctx context.Context, execCtx ExecutorContext) error Name() string }
type SerialCommands ¶
type SerialCommands struct { Environment CommandExecutor Steps []Command }
func (*SerialCommands) FQN ¶
func (c *SerialCommands) FQN() string
func (*SerialCommands) GetShellCommands ¶
func (c *SerialCommands) GetShellCommands() []string
func (*SerialCommands) Name ¶
func (c *SerialCommands) Name() string
func (*SerialCommands) Run ¶
func (c *SerialCommands) Run(ctx context.Context, execCtx ExecutorContext) error
type ShellCommand ¶
type ShellCommand struct {
Command string
}
func (*ShellCommand) GetShellCommands ¶
func (c *ShellCommand) GetShellCommands() []string
type SupermakeFile ¶
func (*SupermakeFile) GetDoneFileTargets ¶
func (s *SupermakeFile) GetDoneFileTargets() []*Target
func (*SupermakeFile) Help ¶
func (s *SupermakeFile) Help() string
type Target ¶
type Target struct { Node string Dependencies []string Variables Variables Executor CommandExecutor Steps []Command // contains filtered or unexported fields }
type Variable ¶
type Variable struct { Name string EvaluationType VariableEvaluationType Export bool // contains filtered or unexported fields }
func NewVariable ¶
func NewVariable(name string, evaluationType VariableEvaluationType, export bool, value string) *Variable
type VariableEvaluationType ¶
type VariableEvaluationType int
const ( RECURSIVE VariableEvaluationType = iota FALLBACK )
type Variables ¶
func (Variables) EnvStrings ¶
Returns a list of strings like K=V.
func (Variables) EnvStringsInherited ¶
Returns a list of strings like K=V. Including those inherited by the calling shell.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.