Documentation ¶
Index ¶
- func NewFileBackend(conf map[string]string, logger log.Logger) (physical.Backend, error)
- func NewTransactionalFileBackend(conf map[string]string, logger log.Logger) (physical.Backend, error)
- type FBackend
- func (b *FBackend) Delete(ctx context.Context, path string) error
- func (b *FBackend) DeleteInternal(ctx context.Context, path string) error
- func (b *FBackend) Get(ctx context.Context, k string) (*physical.Entry, error)
- func (b *FBackend) GetInternal(ctx context.Context, k string) (*physical.Entry, error)
- func (b *FBackend) List(ctx context.Context, prefix string) ([]string, error)
- func (b *FBackend) ListInternal(ctx context.Context, prefix string) ([]string, error)
- func (b *FBackend) Put(ctx context.Context, entry *physical.Entry) error
- func (b *FBackend) PutInternal(ctx context.Context, entry *physical.Entry) error
- type TransactionalFileBackend
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFileBackend ¶
NewFileBackend constructs a FileBackend using the given directory
Types ¶
type FBackend ¶
FBackend is a physical backend that stores data on disk at a given file path. It can be used for durable single server situations, or to develop locally where durability is not critical.
WARNING: the file backend implementation is currently extremely unsafe and non-performant. It is meant mostly for local testing and development. It can be improved in the future.
func (*FBackend) DeleteInternal ¶
func (*FBackend) GetInternal ¶
func (*FBackend) ListInternal ¶
type TransactionalFileBackend ¶
type TransactionalFileBackend struct {
FBackend
}
func (*TransactionalFileBackend) Transaction ¶
Click to show internal directories.
Click to hide internal directories.