diff --git a/internal/kv/etcd/embed_etcd_kv.go b/internal/kv/etcd/embed_etcd_kv.go index 0173223ce28e9d6cb3420279d649a02a90725f46..944db0c997520977cf289cbae9246ebafb2d0cbd 100644 --- a/internal/kv/etcd/embed_etcd_kv.go +++ b/internal/kv/etcd/embed_etcd_kv.go @@ -77,6 +77,7 @@ func (kv *EmbedEtcdKV) GetPath(key string) string { return path.Join(kv.rootPath, key) } +// LoadWithPrefix returns all the keys and values with the given key prefix func (kv *EmbedEtcdKV) LoadWithPrefix(key string) ([]string, []string, error) { key = path.Join(kv.rootPath, key) log.Debug("LoadWithPrefix ", zap.String("prefix", key))