Describes a blob
type BlobDescription struct {
// contains filtered or unexported fields
}
func NewBlobDescription(name string, offset int64, length int64) BlobDescription
func (d *BlobDescription) Length() int64
func (d *BlobDescription) Name() string
func (d *BlobDescription) Offset() int64
type GetObject struct {
Name string
Ranges []models.Range
ChannelBuilder WriteChannelBuilder
}
type PutObject struct {
PutObject models.Ds3PutObject
ChannelBuilder ReadChannelBuilder
Metadata map[string]string
}
func (putObject *PutObject) WithMetaData(key string, values ...string) interface{}
type ReadChannelBuilder interface {
IsChannelAvailable(offset int64) bool
GetChannel(offset int64) (io.ReadCloser, error)
OnDone(reader io.ReadCloser) // Determines what a given blob does when it finishes transferring
}
type WriteChannelBuilder interface {
IsChannelAvailable(offset int64) bool
GetChannel(offset int64) (io.WriteCloser, error)
OnDone(writer io.WriteCloser) // Determines what a given blob does when it finishes transferring
}