Documentation ¶
Index ¶
- Variables
- func NextHexKey(key string) string
- type BlobStore
- func (bs *BlobStore) Check() error
- func (bs *BlobStore) Close() error
- func (bs *BlobStore) Enumerate(ctx context.Context, start, end string, limit int) ([]*blob.SizedBlobRef, string, error)
- func (bs *BlobStore) Get(ctx context.Context, hash string) ([]byte, error)
- func (bs *BlobStore) Put(ctx context.Context, blob *blob.Blob) (bool, error)
- func (bs *BlobStore) ReplicationEnabled() bool
- func (bs *BlobStore) S3Backend() *s3.S3Backend
- func (bs *BlobStore) S3Stats() (map[string]interface{}, error)
- func (bs *BlobStore) Scan(ctx context.Context) error
- func (bs *BlobStore) Stat(ctx context.Context, hash string) (bool, error)
- func (bs *BlobStore) Stats() (*blobsfile.Stats, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBlobExists = fmt.Errorf("blob exist")
View Source
var ErrRemoteNotAvailable = fmt.Errorf("remote backend not available")
Functions ¶
func NextHexKey ¶
Types ¶
type BlobStore ¶
type BlobStore struct {
// contains filtered or unexported fields
}
func (*BlobStore) Enumerate ¶
func (bs *BlobStore) Enumerate(ctx context.Context, start, end string, limit int) ([]*blob.SizedBlobRef, string, error)
func (backend *BlobsFileBackend) Enumerate(blobs chan<- *blob.SizedBlobRef, start, stop string, limit int) error {
func (*BlobStore) ReplicationEnabled ¶
Click to show internal directories.
Click to hide internal directories.