Versions in this module Expand all Collapse all v0 v0.3.3 Sep 30, 2021 Changes in this version + const BackupDirEnv + const Hostname + const Namespace + const RestoreDirEnv + const RestoreS3AccessKeyIDEnv + const RestoreS3EndpointEnv + const RestoreS3SecretAccessKey + const Subsystem + type ArrayOpts []string + func (a *ArrayOpts) BuildArgs() []string + func (a *ArrayOpts) Set(value string) error + func (a *ArrayOpts) String() string + type BackupStats struct + BackupMetrics *RawMetrics + BucketName string + Name string + Snapshots []Snapshot + func (b *BackupStats) ToJson() []byte + func (b *BackupStats) ToProm() []prometheus.Collector + type Command struct + Errors []error + FatalError error + func NewCommand(ctx context.Context, log logr.Logger, commandOptions CommandOptions) *Command + func (c *Command) Configure() + func (c *Command) Run() + func (c *Command) Start() + func (c *Command) Wait() + type CommandOptions struct + Args []string + Path string + StdErr io.Writer + StdIn io.Reader + StdOut io.Writer + type Flags map[string][]string + func Combine(first, second Flags) Flags + func (f Flags) AddFlag(key string, values ...string) + func (f Flags) ApplyToCommand(command string, commandArgs ...string) []string + type Lock struct + Exclusive bool + Gid int + Hostname string + Pid int + Time time.Time + UID int + Username string + type PromMetrics struct + AvailableSnapshots prometheus.Gauge + ChangedDirs *prometheus.GaugeVec + ChangedFiles *prometheus.GaugeVec + DataTransferred *prometheus.GaugeVec + Errors *prometheus.GaugeVec + NewDirs *prometheus.GaugeVec + NewFiles *prometheus.GaugeVec + UnmodifiedDirs *prometheus.GaugeVec + UnmodifiedFiles *prometheus.GaugeVec + func (p *PromMetrics) ToProm() []prometheus.Collector + type PrometheusProvider interface + ToProm func() []prometheus.Collector + type RawMetrics struct + BackupEndTimestamp float64 + BackupStartTimestamp float64 + ChangedDirs float64 + ChangedFiles float64 + DataTransferred float64 + Errors float64 + Folder string + ID string + MountedPVCs []string + NewDirs float64 + NewFiles float64 + UnmodifiedDirs float64 + UnmodifiedFiles float64 + type Restic struct + func New(ctx context.Context, logger logr.Logger, statsHandler StatsHandler) *Restic + func (r *Restic) Archive(restoreFilter string, verifyRestore bool, tags ArrayOpts) error + func (r *Restic) Backup(backupDir string, tags ArrayOpts) error + func (r *Restic) Check() error + func (r *Restic) Init() error + func (r *Restic) LastSnapshots(tags ArrayOpts) error + func (r *Restic) Prune(tags ArrayOpts) error + func (r *Restic) Restore(snapshotID string, options RestoreOptions, tags ArrayOpts) error + func (r *Restic) Snapshots(tags ArrayOpts) error + func (r *Restic) StdinBackup(data *kubernetes.ExecData, filename, fileExt string, tags ArrayOpts) error + func (r *Restic) Unlock(all bool) error + func (r *Restic) Wait() error + type RestoreOptions struct + RestoreDir string + RestoreFilter string + RestoreType RestoreType + S3Destination S3Bucket + Verify bool + type RestoreStats struct + RestoreLocation string + RestoredFiles []string + SnapshotID string + func (r *RestoreStats) ToJson() []byte + type RestoreType string + const FolderRestore + const S3Restore + type S3Bucket struct + AccessKey string + Endpoint string + SecretKey string + type Snapshot struct + Gid int + Hostname string + ID string + Paths []string + Tags []string + Time time.Time + Tree string + UID int + Username string + type StatsHandler interface + SendPrometheus func(PrometheusProvider) error + SendWebhook func(WebhookProvider) error + type WebhookProvider interface + ToJson func() []byte v0.3.3-rc1 Sep 30, 2021