etcd: Pass through the namespace

This is a bit tricky, and we should nuke and redo some of this API. The
sneaky bit has to do with whether we've already added the namespace
magic into our etcd client or not.
This commit is contained in:
James Shubin
2025-08-19 18:52:48 -04:00
parent 0031acbcbc
commit bed7e6be79
3 changed files with 16 additions and 2 deletions

View File

@@ -66,6 +66,8 @@ type WatcherInfo struct {
// EmbdEtcd.MakeClient and client.Simple implement this.
type Client interface {
GetClient() *etcd.Client
GetNamespace() string
Set(ctx context.Context, key, value string, opts ...etcd.OpOption) error
Get(ctx context.Context, path string, opts ...etcd.OpOption) (map[string]string, error)
Del(ctx context.Context, path string, opts ...etcd.OpOption) (int64, error)