Documentation
¶
Index ¶
Constants ¶
View Source
const (
LogKey = "log"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { Name string Fn ActionFunc // contains filtered or unexported fields }
func NewAction ¶
func NewAction(name string, action ActionFunc) Action
func (*Action) Status ¶
func (a *Action) Status() (StatusType, error)
type ActionFunc ¶
type ActionFunc func(context.Context) (StatusType, error)
type Context ¶
func (*Context) GetTaskByName ¶
func (c *Context) GetTaskByName(name string) TaskErrors
type Flow ¶
type Flow struct {
// contains filtered or unexported fields
}
func (*Flow) SetLogLevel ¶
type StatusType ¶
type StatusType int
const ( StatusSkipped StatusType = iota - 1 StatusPending StatusRunning StatusSuccess StatusFailed StatusHasFailed StatusUnknown )
func (StatusType) String ¶
func (t StatusType) String() string
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func (*Task) GetActionStatus ¶
func (t *Task) GetActionStatus(name string) (StatusType, error)
func (*Task) NoExitOnError ¶
func (t *Task) NoExitOnError()
func (*Task) Successful ¶
type TaskErrors ¶
type TaskErrors interface { GetActionStatus(name string) (StatusType, error) Successful() bool }
Click to show internal directories.
Click to hide internal directories.