Versions in this module Expand all Collapse all v0 v0.1.0 May 12, 2024 Changes in this version + var CommandMap = map[string]CmdFunc + type BackupError struct + Code BackupErrorCode + Message string + Source string + func (e BackupError) Localize(langs ...string) string + type BackupErrorCode int8 + const CmdFailed + const CmdInvalid + const DownloadError + const GenericError + const PathError + const UploadError + func (e BackupErrorCode) Error(source string, message string) BackupError + func (e BackupErrorCode) ID() string + type BackupOptFunc func(*BackupOpts) + func WithDebug(debug bool) BackupOptFunc + func WithDownload() BackupOptFunc + func WithInteractivity(interactive bool) BackupOptFunc + func WithLanguage(lang string) BackupOptFunc + func WithRemote(remote string) BackupOptFunc + func WithRemoteRoot(remoteRoot string) BackupOptFunc + func WithSimulation(simulate bool) BackupOptFunc + type BackupOpts struct + Debug bool + Language string + Remote string + RemoteRoot string + Simulate bool + Unattended bool + Uploading bool + type BackupSession struct + Machine *config.Machine + Notifier *notify.Notifier + Opts *BackupOpts + func NewSession(ctx context.Context, options ...BackupOptFunc) *BackupSession + func (session *BackupSession) Backup() + func (session *BackupSession) Heartbeat(endpoint string, withLog bool) + func (session *BackupSession) NotifyStatus(status string, statusTags ...string) + type CmdFunc func(chan BackupError, string) string + type CommandOpts struct + CWD string + Env []string