client

package
v0.0.0-...-d8f7d12 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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) Add

func (objQ *ObjectAdderQueue) Add(reader io.Reader, length uint64) (
	hash.Hash, 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) AddObject

func (objClient *ObjectClient) AddObject(reader io.Reader, length uint64,
	expectedHash *hash.Hash) (hash.Hash, bool, error)

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

Jump to

Keyboard shortcuts

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