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

Method GetFile

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

GetFile is a convenience function to pull an object from this object store and place it in a file. If the file already exists, it will be overwritten, otherwise it will be created. If the object does not exist, ErrObjectNotFound will be returned. A GetObjectShowDeleted option can be supplied to ret

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

Source from the content-addressed store, hash-verified

168 // A GetObjectShowDeleted option can be supplied to return an object
169 // even if it was marked as deleted.
170 GetFile(ctx context.Context, name, file string, opts ...GetObjectOpt) error
171
172 // GetInfo will retrieve the current information for the object, containing
173 // the object's metadata and instance information.

Callers 2

TestObjectFileBasicsFunction · 0.65
TestObjectFileBasicsFunction · 0.65

Implementers 2

obsobject.go
obsjetstream/object.go

Calls

no outgoing calls

Tested by 2

TestObjectFileBasicsFunction · 0.52
TestObjectFileBasicsFunction · 0.52