Documentation ¶
Index ¶
- Variables
- func BackupProgressEntryToBackupError(b *restic.BackupProgressEntry) (*v1.BackupProgressError, error)
- func BackupProgressEntryToProto(b *restic.BackupProgressEntry) *v1.BackupProgressEntry
- func LsEntryToProto(e *restic.LsEntry) *v1.LsEntry
- func RepoStatsToProto(s *restic.RepoStats) *v1.RepoStats
- func ResolveSchedule(sched *v1.Schedule, lastRan time.Time) (time.Time, error)
- func RestoreProgressEntryToProto(p *restic.RestoreProgressEntry) *v1.RestoreProgressEntry
- func RetentionPolicyFromProto(p *v1.RetentionPolicy) *restic.RetentionPolicy
- func RetentionPolicyToProto(p *restic.RetentionPolicy) *v1.RetentionPolicy
- func SnapshotToProto(s *restic.Snapshot) *v1.ResticSnapshot
- func ValidateOperation(op *v1.Operation) error
- func ValidateSchedule(sched *v1.Schedule) error
- func ValidateSnapshot(s *v1.ResticSnapshot) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrScheduleDisabled = errors.New("never")
Functions ¶
func BackupProgressEntryToBackupError ¶ added in v0.13.0
func BackupProgressEntryToBackupError(b *restic.BackupProgressEntry) (*v1.BackupProgressError, error)
BackupProgressEntryToBackupError converts a BackupProgressEntry to a BackupError if it's type is "error"
func BackupProgressEntryToProto ¶
func BackupProgressEntryToProto(b *restic.BackupProgressEntry) *v1.BackupProgressEntry
func ResolveSchedule ¶ added in v1.0.0
ResolveSchedule resolves a schedule to the next time it should run based on last execution. note that this is different from backup behavior which is always relative to the current time.
func RestoreProgressEntryToProto ¶
func RestoreProgressEntryToProto(p *restic.RestoreProgressEntry) *v1.RestoreProgressEntry
func RetentionPolicyFromProto ¶
func RetentionPolicyFromProto(p *v1.RetentionPolicy) *restic.RetentionPolicy
func RetentionPolicyToProto ¶
func RetentionPolicyToProto(p *restic.RetentionPolicy) *v1.RetentionPolicy
func SnapshotToProto ¶
func SnapshotToProto(s *restic.Snapshot) *v1.ResticSnapshot
func ValidateOperation ¶
ValidateOperation verifies critical properties of the operation proto.
func ValidateSchedule ¶ added in v1.0.0
func ValidateSnapshot ¶
func ValidateSnapshot(s *v1.ResticSnapshot) error
ValidateSnapshot verifies critical properties of the snapshot proto representation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.