MCPcopy
hub / github.com/minio/minio-go / newObject

Function newObject

api-get-object.go:663–671  ·  view source on GitHub ↗

newObject instantiates a new *minio.Object* ObjectInfo will be set by setObjectInfo

(ctx context.Context, cancel context.CancelFunc, reqCh chan<- getRequest, resCh <-chan getResponse)

Source from the content-addressed store, hash-verified

661// newObject instantiates a new *minio.Object*
662// ObjectInfo will be set by setObjectInfo
663func newObject(ctx context.Context, cancel context.CancelFunc, reqCh chan<- getRequest, resCh <-chan getResponse) *Object {
664 return &Object{
665 ctx: ctx,
666 cancel: cancel,
667 mutex: &sync.Mutex{},
668 reqCh: reqCh,
669 resCh: resCh,
670 }
671}
672
673// getObject - retrieve object from Object Storage.
674//

Callers 1

GetObjectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected