Documentation
¶
Index ¶
- Variables
- type Attributes
- type BatchDeleteError
- type ListOptions
- type ListResult
- type ObjectInfo
- type Store
- func (s *Store) Attributes(ctx context.Context, key string) (Attributes, error)
- func (s *Store) BatchDelete(ctx context.Context, keys []string) error
- func (s *Store) BlobPath(blobID string) string
- func (s *Store) Bucket() *blob.Bucket
- func (s *Store) Close() error
- func (s *Store) DebugString() string
- func (s *Store) Delete(ctx context.Context, key string) error
- func (s *Store) Exists(ctx context.Context, key string) (bool, error)
- func (s *Store) List(ctx context.Context, opts ListOptions) (*ListResult, error)
- func (s *Store) ListBlobFiles(ctx context.Context) ([]ObjectInfo, error)
- func (s *Store) ListManifestLogs(ctx context.Context) ([]ObjectInfo, error)
- func (s *Store) ListSSTFiles(ctx context.Context) ([]ObjectInfo, error)
- func (s *Store) ListVLogFiles(ctx context.Context) ([]ObjectInfo, error)
- func (s *Store) ManifestLogPath(id string) string
- func (s *Store) ManifestPath() string
- func (s *Store) ManifestSnapshotPath(id string) string
- func (s *Store) Prefix() string
- func (s *Store) Read(ctx context.Context, key string) ([]byte, Attributes, error)
- func (s *Store) ReadRange(ctx context.Context, key string, offset, length int64) ([]byte, error)
- func (s *Store) ReadRangeStream(ctx context.Context, key string, offset, length int64) (*blob.Reader, error)
- func (s *Store) ReadStream(ctx context.Context, key string) (*blob.Reader, error)
- func (s *Store) SSTPath(id string) string
- func (s *Store) VLogPath(id string) string
- func (s *Store) Write(ctx context.Context, key string, data []byte) (Attributes, error)
- func (s *Store) WriteIfMatch(ctx context.Context, key string, data []byte, ifMatch string) (Attributes, error)
- func (s *Store) WriteIfNotExist(ctx context.Context, key string, data []byte) (Attributes, error)
- func (s *Store) WriteReader(ctx context.Context, key string, r io.Reader, opts *blob.WriterOptions) (Attributes, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
type BatchDeleteError ¶
func (*BatchDeleteError) Error ¶
func (e *BatchDeleteError) Error() string
type ListOptions ¶
type ListResult ¶
type ListResult struct {
Objects []ObjectInfo
}
type ObjectInfo ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func New ¶
New wraps an existing bucket. For cloud providers, bucketName is required for CAS writes; use Open() when possible.
func (*Store) Attributes ¶
func (*Store) DebugString ¶
func (*Store) List ¶
func (s *Store) List(ctx context.Context, opts ListOptions) (*ListResult, error)
func (*Store) ListBlobFiles ¶
func (s *Store) ListBlobFiles(ctx context.Context) ([]ObjectInfo, error)
func (*Store) ListManifestLogs ¶
func (s *Store) ListManifestLogs(ctx context.Context) ([]ObjectInfo, error)
func (*Store) ListSSTFiles ¶
func (s *Store) ListSSTFiles(ctx context.Context) ([]ObjectInfo, error)
func (*Store) ListVLogFiles ¶
func (s *Store) ListVLogFiles(ctx context.Context) ([]ObjectInfo, error)
func (*Store) ManifestLogPath ¶
func (*Store) ManifestPath ¶
func (*Store) ManifestSnapshotPath ¶
func (*Store) ReadRangeStream ¶
func (*Store) ReadStream ¶
func (*Store) WriteIfMatch ¶
func (*Store) WriteIfNotExist ¶
func (*Store) WriteReader ¶
func (s *Store) WriteReader(ctx context.Context, key string, r io.Reader, opts *blob.WriterOptions) (Attributes, error)
Click to show internal directories.
Click to hide internal directories.