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

Method Status

object.go:1250–1262  ·  view source on GitHub ↗

Status retrieves run-time status about a bucket

()

Source from the content-addressed store, hash-verified

1248
1249// Status retrieves run-time status about a bucket
1250func (obs *obs) Status() (ObjectStoreStatus, error) {
1251 nfo, err := obs.js.StreamInfo(obs.stream)
1252 if err != nil {
1253 return nil, err
1254 }
1255
1256 status := &ObjectBucketStatus{
1257 nfo: nfo,
1258 bucket: obs.name,
1259 }
1260
1261 return status, nil
1262}
1263
1264// Read impl.
1265func (o *objResult) Read(p []byte) (n int, err error) {

Callers

nothing calls this directly

Calls 1

StreamInfoMethod · 0.65

Tested by

no test coverage detected