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

Function GetObjectInfoShowDeleted

jetstream/object_options.go:27–32  ·  view source on GitHub ↗

GetObjectInfoShowDeleted makes [ObjectStore.GetInfo] return object info event if it was marked as deleted.

()

Source from the content-addressed store, hash-verified

25// GetObjectInfoShowDeleted makes [ObjectStore.GetInfo] return object info event
26// if it was marked as deleted.
27func GetObjectInfoShowDeleted() GetObjectInfoOpt {
28 return func(opts *getObjectInfoOpts) error {
29 opts.showDeleted = true
30 return nil
31 }
32}
33
34// ListObjectsShowDeleted makes [ObjectStore.ListObjects] also return deleted
35// objects.

Callers 9

TestObjectDeleteMarkersFunction · 0.92
TestObjectWatchFunction · 0.92
TestObjectLinksFunction · 0.92
PutMethod · 0.70
GetMethod · 0.70
DeleteMethod · 0.70
AddLinkMethod · 0.70
AddBucketLinkMethod · 0.70
UpdateMetaMethod · 0.70

Calls

no outgoing calls

Tested by 3

TestObjectDeleteMarkersFunction · 0.74
TestObjectWatchFunction · 0.74
TestObjectLinksFunction · 0.74