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

Method GetString

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

GetString is a convenience function to pull an object from this object store and return it as a string. If the object does not exist, ErrObjectNotFound will be returned. A GetObjectShowDeleted option can be supplied to return an object even if it was marked as deleted.

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

Source from the content-addressed store, hash-verified

159 // A GetObjectShowDeleted option can be supplied to return an object
160 // even if it was marked as deleted.
161 GetString(ctx context.Context, name string, opts ...GetObjectOpt) (string, error)
162
163 // GetFile is a convenience function to pull an object from this object
164 // store and place it in a file. If the file already exists, it will be

Callers 4

TestObjectLinksFunction · 0.65
TestObjectStoreMirrorFunction · 0.65
TestObjectLinksFunction · 0.65
TestObjectStoreMirrorFunction · 0.65

Implementers 2

obsobject.go
obsjetstream/object.go

Calls

no outgoing calls

Tested by 4

TestObjectLinksFunction · 0.52
TestObjectStoreMirrorFunction · 0.52
TestObjectLinksFunction · 0.52
TestObjectStoreMirrorFunction · 0.52