Documentation ¶
Index ¶
- type Backend
- func (be *Backend) Close() error
- func (be *Backend) Connections() uint
- func (be *Backend) Delete(_ context.Context) error
- func (be *Backend) HasAtomicReplace() bool
- 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(_ context.Context, _ restic.Handle) error
- func (be *Backend) Save(_ context.Context, h restic.Handle, _ restic.RewindReader) error
- func (be *Backend) Stat(ctx context.Context, h restic.Handle) (restic.FileInfo, 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) Connections ¶ added in v0.14.0
func (*Backend) HasAtomicReplace ¶ added in v0.14.0
func (*Backend) IsNotExist ¶
Click to show internal directories.
Click to hide internal directories.