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

Function bucketValid

kv.go:572–577  ·  view source on GitHub ↗
(bucket string)

Source from the content-addressed store, hash-verified

570func (e *kve) Operation() KeyValueOp { return e.op }
571
572func bucketValid(bucket string) bool {
573 if len(bucket) == 0 {
574 return false
575 }
576 return validBucketRe.MatchString(bucket)
577}
578
579func keyValid(key string) bool {
580 if len(key) == 0 || key[0] == '.' || key[len(key)-1] == '.' {

Callers 3

KeyValueMethod · 0.70
CreateKeyValueMethod · 0.70
DeleteKeyValueMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected