Documentation
¶
Overview ¶
Package objstore provides ObjectStore implementations. The local-filesystem backend (FS) is the v1 default; an S3-compatible backend can be added behind the same teled.ObjectStore interface.
Index ¶
- type FS
- func (s *FS) Delete(_ context.Context, key string) error
- func (s *FS) Get(_ context.Context, key string) (io.ReadCloser, error)
- func (s *FS) GetRange(_ context.Context, key string, offset, length int64) (io.ReadCloser, error)
- func (s *FS) Put(_ context.Context, key string, r io.Reader, _ int64, _ teled.PutOptions) error
- func (s *FS) Stat(_ context.Context, key string) (teled.ObjectInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
FS is a local-filesystem ObjectStore. Objects are stored under a base directory, sharded by the first bytes of the key to avoid huge directories.
Click to show internal directories.
Click to hide internal directories.