storage

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2023 License: Apache-2.0, BSD-3-Clause, MPL-2.0 Imports: 7 Imported by: 0

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

func (*Storage) PutObject

func (s *Storage) PutObject(manifest *pb.ObjectManifest) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL