objfactory

package
v0.0.0-...-63f2130 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

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

Jump to

Keyboard shortcuts

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