Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConcurrentTask ¶
type ConcurrentTask struct {
// contains filtered or unexported fields
}
ConcurrentTask represent a set of tasks that are executed concurrently using an errgroup.Group. Externally it act as a Task, and as such, can be included on a workflow or wrapped on a retry. Keep in mmind in the latter case that, given the nature of errgroup.Group, on failure the whole task set will be retried, including tasks that potentially have already finished.
func NewConcurrentTask ¶
func NewConcurrentTask(name string, tasks ...Task) *ConcurrentTask
func (*ConcurrentTask) Name ¶
func (c *ConcurrentTask) Name() string
func (*ConcurrentTask) Run ¶
func (c *ConcurrentTask) Run() error
func (*ConcurrentTask) String ¶
func (c *ConcurrentTask) String() string
type DockerTaskConfig ¶
type ExecTask ¶
type ExecTask struct { Args []string // contains filtered or unexported fields }
ExecTask is a task backed by os/exec.
func NewDockerTask ¶
func NewDockerTask(name string, config DockerTaskConfig) ExecTask
func NewExecTask ¶
Click to show internal directories.
Click to hide internal directories.