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

Method CreateObjectStore

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

CreateObjectStore will create a new object store with the given configuration. If the object store with given name already exists, ErrBucketExists will be returned.

(ctx context.Context, cfg ObjectStoreConfig)

Source from the content-addressed store, hash-verified

51 // If the object store with given name already exists, ErrBucketExists
52 // will be returned.
53 CreateObjectStore(ctx context.Context, cfg ObjectStoreConfig) (ObjectStore, error)
54
55 // UpdateObjectStore will update an existing object store with the given
56 // configuration.

Callers 15

TestObjectBasicsFunction · 0.65
TestDefaultObjectStatusFunction · 0.65
TestObjectFileBasicsFunction · 0.65
TestObjectMultiFunction · 0.65
TestObjectDeleteMarkersFunction · 0.65
TestObjectNamesFunction · 0.65

Implementers 1

jetStreamjetstream/jetstream.go

Calls

no outgoing calls

Tested by 15

TestObjectBasicsFunction · 0.52
TestDefaultObjectStatusFunction · 0.52
TestObjectFileBasicsFunction · 0.52
TestObjectMultiFunction · 0.52
TestObjectDeleteMarkersFunction · 0.52
TestObjectNamesFunction · 0.52