Documentation ¶
Index ¶
- type ObjectAdderQueue
- type ObjectClient
- func (objClient *ObjectClient) AddObject(reader io.Reader, length uint64, expectedHash *hash.Hash) (hash.Hash, bool, error)
- func (objClient *ObjectClient) CheckObjects(hashes []hash.Hash) ([]uint64, error)
- func (objClient *ObjectClient) Close() error
- func (objClient *ObjectClient) GetObject(hashVal hash.Hash) (uint64, io.ReadCloser, error)
- func (objClient *ObjectClient) GetObjects(hashes []hash.Hash) (objectserver.ObjectsReader, error)
- func (objClient *ObjectClient) SetExclusiveGetObjects(exclusive bool)
- type ObjectsReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObjectAdderQueue ¶
type ObjectAdderQueue struct {
// contains filtered or unexported fields
}
func NewObjectAdderQueue ¶
func NewObjectAdderQueue(client *srpc.Client) (*ObjectAdderQueue, error)
func (*ObjectAdderQueue) AddData ¶
func (objQ *ObjectAdderQueue) AddData(data []byte, hashVal hash.Hash) error
func (*ObjectAdderQueue) Close ¶
func (objQ *ObjectAdderQueue) Close() error
type ObjectClient ¶
type ObjectClient struct {
// contains filtered or unexported fields
}
func AttachObjectClient ¶
func AttachObjectClient(client *srpc.Client) *ObjectClient
func NewObjectClient ¶
func NewObjectClient(address string) *ObjectClient
func (*ObjectClient) CheckObjects ¶
func (objClient *ObjectClient) CheckObjects(hashes []hash.Hash) ( []uint64, error)
func (*ObjectClient) Close ¶
func (objClient *ObjectClient) Close() error
func (*ObjectClient) GetObject ¶
func (objClient *ObjectClient) GetObject(hashVal hash.Hash) ( uint64, io.ReadCloser, error)
func (*ObjectClient) GetObjects ¶
func (objClient *ObjectClient) GetObjects(hashes []hash.Hash) ( objectserver.ObjectsReader, error)
func (*ObjectClient) SetExclusiveGetObjects ¶
func (objClient *ObjectClient) SetExclusiveGetObjects(exclusive bool)
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.