Documentation
¶
Index ¶
- Variables
- func BackupProgressEntryToBackupError(b *restic.BackupProgressEntry) (*v1.BackupProgressError, error)
- func BackupProgressEntryToProto(b *restic.BackupProgressEntry) *v1.BackupProgressEntry
- func IsErrorCondition(event v1.Hook_Condition) bool
- func IsLogCondition(event v1.Hook_Condition) bool
- func IsStartCondition(event v1.Hook_Condition) bool
- func IsSuccessCondition(event v1.Hook_Condition) bool
- func LsEntryToProto(e *restic.LsEntry) *v1.LsEntry
- func OpSelectorToQuery(sel *v1.OpSelector) (oplog.Query, error)
- func RepoStatsToProto(s *restic.RepoStats) *v1.RepoStats
- func ResolveSchedule(sched *v1.Schedule, lastRan time.Time, curTime time.Time) (time.Time, error)
- func RestoreProgressEntryToProto(p *restic.RestoreProgressEntry) *v1.RestoreProgressEntry
- func RetentionPolicyFromProto(p *v1.RetentionPolicy) *restic.RetentionPolicy
- func SnapshotToProto(s *restic.Snapshot) *v1.ResticSnapshot
- func ValidateOperation(op *v1.Operation) error
- func ValidateRetentionPolicy(p *v1.RetentionPolicy) error
- func ValidateSchedule(sched *v1.Schedule) error
- func ValidateSnapshot(s *v1.ResticSnapshot) error
Constants ¶
This section is empty.
Variables ¶
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 IsErrorCondition ¶ added in v1.6.0
func IsErrorCondition(event v1.Hook_Condition) bool
IsErrorCondition returns true if the event is an error condition.
func IsLogCondition ¶ added in v1.6.0
func IsLogCondition(event v1.Hook_Condition) bool
IsLogCondition returns true if the event is a log condition.
func IsStartCondition ¶ added in v1.6.0
func IsStartCondition(event v1.Hook_Condition) bool
IsStartCondition returns true if the event is a start condition.
func IsSuccessCondition ¶ added in v1.6.0
func IsSuccessCondition(event v1.Hook_Condition) bool
IsSuccessCondition returns true if the event is a success condition.
func OpSelectorToQuery ¶ added in v1.7.0
func OpSelectorToQuery(sel *v1.OpSelector) (oplog.Query, error)
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 SnapshotToProto ¶
func SnapshotToProto(s *restic.Snapshot) *v1.ResticSnapshot
func ValidateOperation ¶
ValidateOperation verifies critical properties of the operation proto.
func ValidateRetentionPolicy ¶ added in v1.13.0
func ValidateRetentionPolicy(p *v1.RetentionPolicy) error
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.