Documentation ¶
Index ¶
- type Baito
- func (b *Baito) Commands() []runner.Runner
- func (b *Baito) Environment() map[string]string
- func (b *Baito) ExpandAll(str string) string
- func (b *Baito) ExpandEnv(str string) string
- func (b *Baito) ExpandVariables(str string) string
- func (b *Baito) LogsFile() io.WriteSyncer
- func (b *Baito) Name() string
- func (b *Baito) Schedule() Schedule
- func (b *Baito) Variables() map[string]string
- func (b *Baito) Workdir() string
- type Schedule
- type Shigoto
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Baito ¶
type Baito struct { FieldName string FieldSchedule Schedule FieldWorkdir string FieldLogsFile io.WriteSyncer FieldVariables map[string]string FieldEnvironment map[string]string FieldCommands []runner.Runner }
A Baito (aka Arubaito from German Arbeit) is a task/job that will be runned at a scheduled time.
func (*Baito) Environment ¶
Environment returns the environment variables.
func (*Baito) ExpandAll ¶
ExpandAll replace templatized variables and environment variables by their values.
func (*Baito) ExpandEnv ¶
ExpandEnv replaces ${var} or $var in the string according to the values of the current environment variables. References to undefined variables left as there are.
func (*Baito) ExpandVariables ¶
ExpandVariables replace templatized variables by their values.
func (*Baito) LogsFile ¶
func (b *Baito) LogsFile() io.WriteSyncer
LogsFile returns the logs file where stdout/stderr are redirected.
Click to show internal directories.
Click to hide internal directories.