Documentation ¶
Index ¶
- func ReadSecretFile(filename string) (map[string]string, error)
- func ReadSecretFromEnv() map[string]string
- type Hook
- type HookEngine
- type HookStepRunResponse
- type Run
- func (r *Run) InjectSecrets(secrets map[string]string)
- func (r *Run) Interpolate(input string, vars map[string]string) string
- func (r *Run) Log() string
- func (r *Run) MakeEnv(more map[string]string) map[string]string
- func (r *Run) RunHandler(src *Task, handlerName string) error
- func (r *Run) RunTask(t *Task) error
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadSecretFromEnv ¶
Types ¶
type Hook ¶
type HookEngine ¶
func NewHookEngine ¶
func NewHookEngine(configDir string) *HookEngine
func (*HookEngine) Hooks ¶
func (e *HookEngine) Hooks() ([]*Hook, error)
func (*HookEngine) ReadHookFromFile ¶
func (e *HookEngine) ReadHookFromFile(p string) (*Hook, error)
type HookStepRunResponse ¶
type Run ¶
type Run struct { Hook *Hook ID string ExitCode int Completed bool Output string Registers map[string]string Secrets map[string]string }
func (*Run) InjectSecrets ¶
type Task ¶
type Task struct { HandlerName string `yaml:"handler"` Name string `yaml:"name"` Command string `yaml:"command"` Retry int `yaml:"retry"` Interval int `yaml:"interval"` Timeout int `yaml:"timeout"` OnFailure string `yaml:"on_failure"` ContinueAfterFailure bool `yaml:"continue_after_failure"` OnlyIf string `yaml:"only_if"` Register string `yaml:"register"` Vars map[string]string `yaml:"vars"` Cd string `yaml:"cd"` }
Click to show internal directories.
Click to hide internal directories.