Documentation ¶
Index ¶
Constants ¶
View Source
const ( Write = iota Read Delete )
Object operation type
Variables ¶
This section is empty.
Functions ¶
func FakeObjReadSeeker ¶
func FakeObjReadSeeker(size int64) io.ReadSeeker
FakeObjReadSeeker implement a io.ReadSeeker interface to expose an arbitary size buffer
Types ¶
type ObjectSpec ¶
type ObjectSpec struct { ObjectBucket string ObjectKey string ObjectSize int64 ObjectData io.ReadSeeker // contains filtered or unexported fields }
ObjectSpec prepare an object for certain operations
func (*ObjectSpec) GetObject ¶
func (o *ObjectSpec) GetObject(operation int) error
GetObject will initialize an object for certain operation
func (*ObjectSpec) ReleaseObject ¶
func (o *ObjectSpec) ReleaseObject(err error)
ReleaseObject will perform post processing
Click to show internal directories.
Click to hide internal directories.