Documentation
¶
Index ¶
- type Hash
- type Store
- func (s *Store) Chunks(h Hash) ([]Hash, error)
- func (s *Store) Get(h Hash) (io.ReadCloser, error)
- func (s *Store) GetChunk(h Hash) (io.ReadCloser, error)
- func (s *Store) Has(h Hash) bool
- func (s *Store) Put(r io.Reader) (Hash, error)
- func (s *Store) PutBytes(b []byte) (Hash, error)
- func (s *Store) PutChunk(h Hash, data []byte) error
- func (s *Store) PutChunked(h Hash, chunks []Hash) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func OpenReadOnly ¶
OpenReadOnly never creates source state. Missing referenced objects fail on lookup; an empty history need not have an objects directory yet.
func (*Store) Chunks ¶
Chunks returns the chunk hashes referenced by a stored blob. Legacy blobs contain zstd data and have no child objects.
func (*Store) GetChunk ¶
func (s *Store) GetChunk(h Hash) (io.ReadCloser, error)
GetChunk exposes a verified, bounded chunk for the sync protocol.