Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶ added in v0.2.0
func NewStorage(chunkBackend, objectBackend backend.StorageBackend) *Storage
func (*Storage) GetChunk ¶
func (s *Storage) GetChunk(id contenthash.Hash) (io.ReadCloser, error)
func (*Storage) GetObject ¶
func (s *Storage) GetObject(id contenthash.Hash) (*pb.ObjectManifest, error)
func (*Storage) PutChunk ¶
func (s *Storage) PutChunk(id contenthash.Hash, r io.ReadSeeker) error
Click to show internal directories.
Click to hide internal directories.