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

Function bucketValid

jetstream/kv.go:901–906  ·  view source on GitHub ↗
(bucket string)

Source from the content-addressed store, hash-verified

899}
900
901func bucketValid(bucket string) bool {
902 if len(bucket) == 0 {
903 return false
904 }
905 return validBucketRe.MatchString(bucket)
906}
907
908func keyValid(key string) bool {
909 if len(key) == 0 || key[0] == '.' || key[len(key)-1] == '.' {

Callers 4

KeyValueMethod · 0.70
prepareKeyValueConfigMethod · 0.70
DeleteKeyValueMethod · 0.70
TestKV_bucketValidFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestKV_bucketValidFunction · 0.56