protoutil

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 LsEntryToProto

func LsEntryToProto(e *restic.LsEntry) *v1.LsEntry

func RepoStatsToProto added in v0.8.0

func RepoStatsToProto(s *restic.RepoStats) *v1.RepoStats

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

func ValidateOperation(op *v1.Operation) error

ValidateOperation verifies critical properties of the operation proto.

func ValidateSnapshot

func ValidateSnapshot(s *v1.ResticSnapshot) error

ValidateSnapshot verifies critical properties of the snapshot proto representation.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL