Documentation ¶
Index ¶
- type Backend
- func (be *Backend) Close() error
- func (be *Backend) Delete(ctx context.Context) error
- func (be *Backend) Hasher() hash.Hash
- func (be *Backend) IsNotExist(err error) bool
- func (be *Backend) List(ctx context.Context, t restic.FileType, fn func(restic.FileInfo) error) error
- func (be *Backend) Load(ctx context.Context, h restic.Handle, length int, offset int64, ...) error
- func (be *Backend) Location() string
- func (be *Backend) Remove(ctx context.Context, h restic.Handle) error
- func (be *Backend) Save(ctx context.Context, h restic.Handle, rd restic.RewindReader) error
- func (be *Backend) Stat(ctx context.Context, h restic.Handle) (restic.FileInfo, error)
- func (be *Backend) Test(ctx context.Context, h restic.Handle) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend passes reads through to an underlying layer and accepts writes, but doesn't do anything. Also removes are ignored. So in fact, this backend silently ignores all operations that would modify the repo and does normal operations else. This is used for `backup --dry-run`.
func (*Backend) IsNotExist ¶
Click to show internal directories.
Click to hide internal directories.