Versions in this module Expand all Collapse all v1 v1.18.0 Aug 2, 2026 Changes in this version + var ErrInvalidFrame = errors.New("store: invalid compression frame") + var ErrPlaintextObject = errors.New("store: unencrypted object in an encrypted repository") + type CompressedOption func(*CompressedStore) + func WithFrameGate(gate func() bool) CompressedOption + func WithFramedWrites(enabled bool) CompressedOption + type CompressedStore struct + func NewCompressedStore(inner store.ObjectStore, opts ...CompressedOption) *CompressedStore + func (s *CompressedStore) Delete(ctx context.Context, key string) error + func (s *CompressedStore) Exists(ctx context.Context, key string) (bool, error) + func (s *CompressedStore) Flush(ctx context.Context) error + func (s *CompressedStore) Get(ctx context.Context, key string) ([]byte, error) + func (s *CompressedStore) List(ctx context.Context, prefix string) ([]string, error) + func (s *CompressedStore) Put(ctx context.Context, key string, data []byte) error + func (s *CompressedStore) Size(ctx context.Context, key string) (int64, error) + func (s *CompressedStore) TotalSize(ctx context.Context) (int64, error) + func (s *CompressedStore) Unwrap() store.ObjectStore + type EncryptedStore struct + func NewEncryptedStore(inner store.ObjectStore, key []byte) *EncryptedStore + func (s *EncryptedStore) Get(ctx context.Context, key string) ([]byte, error) + func (s *EncryptedStore) Put(ctx context.Context, key string, data []byte) error + func (s *EncryptedStore) Unwrap() store.ObjectStore + type KeyCacheStore struct + func NewKeyCacheStore(inner store.ObjectStore) *KeyCacheStore + func (s *KeyCacheStore) Delete(ctx context.Context, key string) error + func (s *KeyCacheStore) Exists(ctx context.Context, key string) (bool, error) + func (s *KeyCacheStore) Flush(ctx context.Context) error + func (s *KeyCacheStore) Get(ctx context.Context, key string) ([]byte, error) + func (s *KeyCacheStore) List(ctx context.Context, prefix string) ([]string, error) + func (s *KeyCacheStore) PreloadKeys(ctx context.Context, prefixes ...string) error + func (s *KeyCacheStore) Put(ctx context.Context, key string, data []byte) error + func (s *KeyCacheStore) Size(ctx context.Context, key string) (int64, error) + func (s *KeyCacheStore) TotalSize(ctx context.Context) (int64, error) + func (s *KeyCacheStore) Unwrap() store.ObjectStore + type MeteredStore struct + func NewMeteredStore(s store.ObjectStore) *MeteredStore + func (m *MeteredStore) BytesWritten() int64 + func (m *MeteredStore) Delete(ctx context.Context, key string) error + func (m *MeteredStore) DeleteReturnSize(ctx context.Context, key string) (int64, error) + func (m *MeteredStore) Put(ctx context.Context, key string, data []byte) error + func (m *MeteredStore) Reset() + func (m *MeteredStore) Unwrap() store.ObjectStore + type PackEntry struct + Length int64 + Offset int64 + PackRef string + type PackOption func(*PackStore) + func WithPackIndexKey(key []byte) PackOption + func WithPackLogger(w io.Writer) PackOption + type PackStore struct + func NewPackStore(inner store.ObjectStore, opts ...PackOption) (*PackStore, error) + func (s *PackStore) CompactCatalog(ctx context.Context) (int, error) + func (s *PackStore) Delete(ctx context.Context, key string) error + func (s *PackStore) Exists(ctx context.Context, key string) (bool, error) + func (s *PackStore) Flush(ctx context.Context) error + func (s *PackStore) Get(ctx context.Context, key string) ([]byte, error) + func (s *PackStore) List(ctx context.Context, prefix string) ([]string, error) + func (s *PackStore) Put(ctx context.Context, key string, data []byte) error + func (s *PackStore) RebuildCatalog(ctx context.Context) (recovered int, footerless int, err error) + func (s *PackStore) Repack(ctx context.Context, maxWastedRatio float64) (int64, int, error) + func (s *PackStore) Size(ctx context.Context, key string) (int64, error) + func (s *PackStore) TotalSize(ctx context.Context) (int64, error)