Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutionTask ¶
ExecutionTask encodes a Target with additional execution-time information.
type Target ¶
type Target struct { // An optional label for the target Name string `required:"true" json:"name"` // The repository URL to watch for changes, either http or ssh. RepoURL string `required:"true" json:"url"` // The git branch to use Branch string `json:"branch"` // The command to run on each new Git commit Up []string `required:"true" json:"up"` // Down specifies the command to run during either a graceful shutdown or when the target is removed Down []string `json:"down"` // Environment variables associated with the target - do not store credentials here! Env map[string]string `json:"env"` // Whether or not to run `Command` on first run, useful if the command is `docker-compose up` InitialRun bool `json:"initial_run"` // Auth method to use from the auth store Auth string `json:"auth"` }
Target represents a repository and the task to perform when that repository is updated.
func DiffTargets ¶
DiffTargets returns just the additions (also changes) and removals between the specified old targets and new targets
Click to show internal directories.
Click to hide internal directories.