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 backend.FileType, fn func(backend.FileInfo) error) error
- func (be *Backend) Load(ctx context.Context, h backend.Handle, length int, offset int64, ...) error
- func (be *Backend) Location() string
- func (be *Backend) Remove(_ context.Context, _ backend.Handle) error
- func (be *Backend) Save(_ context.Context, h backend.Handle, _ backend.RewindReader) error
- func (be *Backend) Stat(ctx context.Context, h backend.Handle) (backend.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 ¶
func (*Backend) HasAtomicReplace ¶
func (*Backend) IsNotExist ¶
Click to show internal directories.
Click to hide internal directories.