Documentation
¶
Index ¶
- type Store
- func (s *Store) Delete(_ context.Context, key string) error
- func (s *Store) Exists(_ context.Context, key string) (bool, error)
- func (s *Store) Flush(ctx context.Context) error
- func (s *Store) Get(_ context.Context, key string) ([]byte, error)
- func (s *Store) GetRange(_ context.Context, key string, offset, length int64) ([]byte, error)
- func (s *Store) List(_ context.Context, prefix string) ([]string, error)
- func (s *Store) Put(_ context.Context, key string, data []byte) error
- func (s *Store) Size(_ context.Context, key string) (int64, error)
- func (s *Store) TotalSize(_ context.Context) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
BasePath string
// contains filtered or unexported fields
}
Store implements store.ObjectStore for the local filesystem.
func (*Store) GetRange ¶
GetRange implements RangeGetter, letting callers read a packfile footer without loading the whole object.
Click to show internal directories.
Click to hide internal directories.