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

Method PutBytes

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

PutBytes is convenience function to put a byte slice into this object store under the given name. ObjectInfo will be returned, containing the object's metadata, digest and instance information.

(ctx context.Context, name string, data []byte)

Source from the content-addressed store, hash-verified

116 // ObjectInfo will be returned, containing the object's metadata, digest
117 // and instance information.
118 PutBytes(ctx context.Context, name string, data []byte) (*ObjectInfo, error)
119
120 // PutString is convenience function to put a string into this object
121 // store under the given name.

Callers 15

TestObjectBasicsFunction · 0.65
TestDefaultObjectStatusFunction · 0.65
TestObjectDeleteMarkersFunction · 0.65
TestObjectHistoryFunction · 0.65
TestObjectBasicsFunction · 0.65
TestDefaultObjectStatusFunction · 0.65
TestObjectDeleteMarkersFunction · 0.65

Implementers 2

obsobject.go
obsjetstream/object.go

Calls

no outgoing calls

Tested by 15

TestObjectBasicsFunction · 0.52
TestDefaultObjectStatusFunction · 0.52
TestObjectDeleteMarkersFunction · 0.52
TestObjectHistoryFunction · 0.52
TestObjectBasicsFunction · 0.52
TestDefaultObjectStatusFunction · 0.52
TestObjectDeleteMarkersFunction · 0.52