Documentation ¶
Overview ¶
Package task exposes the Task interface and some utils related to it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Is ¶
Is compares to tasks to determine if they match.
A task is considered to match a target if it is equal to that target or if it implements a method Is(Task) bool such that Is(target) returns true.
func MarshalYAML ¶
MarshalYAML marshals a slice of tasks in YAML format.
Types ¶
type Connection ¶
type Connection interface { SendProAttachment(proToken string) error SendLandscapeConfig(lpeConfig string) error }
Connection is a connection to the WSL-Pro-Service that allows for sending commands.
type NeedsRetryError ¶
type NeedsRetryError struct {
SourceErr error
}
NeedsRetryError is an error that should be emitted by tasks that, in case of failure, should be retried at the next startup sequence.
func (NeedsRetryError) Error ¶
func (e NeedsRetryError) Error() string
Click to show internal directories.
Click to hide internal directories.