MCPcopy
hub / github.com/nats-io/nats.go / Get

Method Get

jetstream/object.go:143–143  ·  view source on GitHub ↗

Get will pull the named object from the object store. If the object does not exist, ErrObjectNotFound will be returned. The returned ObjectResult will contain the object's metadata and a reader to read the object's contents. The reader will be closed when all data has been read or an error occurs.

(ctx context.Context, name string, opts ...GetObjectOpt)

Source from the content-addressed store, hash-verified

141 // A GetObjectShowDeleted option can be supplied to return an object
142 // even if it was marked as deleted.
143 Get(ctx context.Context, name string, opts ...GetObjectOpt) (ObjectResult, error)
144
145 // GetBytes is a convenience function to pull an object from this object
146 // store and return it as a byte slice.

Callers 1

GetMethod · 0.65

Implementers 2

obsobject.go
obsjetstream/object.go

Calls

no outgoing calls

Tested by

no test coverage detected