Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllTargets ¶
func CheckEnvironment ¶
func CheckEnvironment() error
func ResticIsInstalled ¶
func ResticIsInstalled() bool
func ResticVersion ¶
func ScanTargetDir ¶
Types ¶
type Job ¶
type Job struct { Name string `json:"name"` Filename string Hostname string `json:"hostname"` IP string `json:"ip"` Source string `json:"source"` Args []string `json:"args"` TargetName string `json:"target"` Target *Target }
func ParseJobFromJSONFile ¶
func ParseJobFromYmlFile ¶
func ScanJobDir ¶
func (*Job) Execute ¶
func (j *Job) Execute(opts JobExecuteOptions) error
func (*Job) IsRelevant ¶
type JobExecuteOptions ¶
type JobExecuteOptions struct {
DryRun bool
}
type ResticExecutor ¶
type ResticExecutor struct { DryRun bool // contains filtered or unexported fields }
func NewResticExecutor ¶
func NewResticExecutor() *ResticExecutor
func (*ResticExecutor) Command ¶
func (e *ResticExecutor) Command(command string, args ...string) (*script.ProcessResult, error)
func (*ResticExecutor) SetTarget ¶
func (e *ResticExecutor) SetTarget(t *Target)
type Target ¶
type Target struct { Name string `json:"name"` Filename string Type string `json:"type"` Path string `json:"path"` Password string `json:"password"` }
func ParseTargetFromJSONFile ¶
func ParseTargetFromYmlFile ¶
func TargetByName ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.