Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct { // Env is the environment variables to pass. Env map[string]string // Cmd is the executable to call. Cmd string // Args is the command line arguments. Args []string // Workdir is the working directory. Workdir string // SecretEnv contains environment variables and their value, but makes sure // to not log or print their value, to avoid secrets leaking. SecretEnv map[string]string }
Cmd represents a command to execute.
type Config ¶
type Config struct { Reqs []Requirement Cmds []Cmd }
Config is an Executor configuration.
type DefaultRunner ¶
type DefaultRunner struct{}
DefaultRunner executes the commands on the local system.
type DirExists ¶
type DirExists struct {
Path string
}
DirExists is a requirement that is satisfied when the given path is present.
type Executor ¶
Executor executes the configured commands.
func (Executor) CanExecute ¶
CanExecute returns true if the backup satisfies all requirements.
type Requirement ¶
Requirement is a requirement to satisfy.
Click to show internal directories.
Click to hide internal directories.