Documentation ¶
Index ¶
- type ObjectServer
- func (objSrv *ObjectServer) AddObject(reader io.Reader, length uint64, expectedHash *hash.Hash) (hash.Hash, bool, error)
- func (objSrv *ObjectServer) CheckObjects(hashes []hash.Hash) ([]uint64, error)
- func (objSrv *ObjectServer) GetObject(hashVal hash.Hash) (uint64, io.ReadCloser, error)
- func (objSrv *ObjectServer) GetObjects(hashes []hash.Hash) (objectserver.ObjectsReader, error)
- func (objSrv *ObjectServer) ListObjectSizes() map[hash.Hash]uint64
- func (objSrv *ObjectServer) ListObjects() []hash.Hash
- func (objSrv *ObjectServer) NumObjects() uint64
- type ObjectsReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObjectServer ¶
type ObjectServer struct {
// contains filtered or unexported fields
}
func NewObjectServer ¶
func NewObjectServer() *ObjectServer
func (*ObjectServer) CheckObjects ¶
func (objSrv *ObjectServer) CheckObjects(hashes []hash.Hash) ([]uint64, error)
func (*ObjectServer) GetObject ¶
func (objSrv *ObjectServer) GetObject(hashVal hash.Hash) ( uint64, io.ReadCloser, error)
func (*ObjectServer) GetObjects ¶
func (objSrv *ObjectServer) GetObjects(hashes []hash.Hash) ( objectserver.ObjectsReader, error)
func (*ObjectServer) ListObjectSizes ¶
func (objSrv *ObjectServer) ListObjectSizes() map[hash.Hash]uint64
func (*ObjectServer) ListObjects ¶
func (objSrv *ObjectServer) ListObjects() []hash.Hash
func (*ObjectServer) NumObjects ¶
func (objSrv *ObjectServer) NumObjects() uint64
type ObjectsReader ¶
type ObjectsReader struct {
// contains filtered or unexported fields
}
func (*ObjectsReader) Close ¶
func (or *ObjectsReader) Close() error
func (*ObjectsReader) NextObject ¶
func (or *ObjectsReader) NextObject() (uint64, io.ReadCloser, error)
func (*ObjectsReader) ObjectSizes ¶
func (or *ObjectsReader) ObjectSizes() []uint64
Click to show internal directories.
Click to hide internal directories.