Status retrieves the status and configuration of a bucket
()
| 1238 | |
| 1239 | // Status retrieves the status and configuration of a bucket |
| 1240 | func (kv *kvs) Status() (KeyValueStatus, error) { |
| 1241 | nfo, err := kv.js.StreamInfo(kv.stream) |
| 1242 | if err != nil { |
| 1243 | return nil, err |
| 1244 | } |
| 1245 | |
| 1246 | return &KeyValueBucketStatus{nfo: nfo, bucket: kv.name}, nil |
| 1247 | } |
| 1248 | |
| 1249 | // KeyValueStoreNames is used to retrieve a list of key value store names |
| 1250 | func (js *js) KeyValueStoreNames() <-chan string { |
nothing calls this directly
no test coverage detected