From 6f1cd0975d353f4c7fa63104c54f9dca12423cfd Mon Sep 17 00:00:00 2001 From: Anubhav Date: Fri, 17 May 2024 10:51:20 -0700 Subject: [PATCH] add interface for getting configurations (#295) * add interface for getting configurations Signed-off-by: nirvanagit * Update registry.go --------- Signed-off-by: nirvanagit --- admiral/pkg/registry/registry.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 admiral/pkg/registry/registry.go diff --git a/admiral/pkg/registry/registry.go b/admiral/pkg/registry/registry.go new file mode 100644 index 00000000..9d11bfb3 --- /dev/null +++ b/admiral/pkg/registry/registry.go @@ -0,0 +1,10 @@ +package registry + +// IdentityConfiguration is an interface to fetch configuration from a registry +// backend. The backend can provide an API to give configurations per identity, +// or if given a cluster name, it will provide the configurations for all +// the identities present in that cluster. +type IdentityConfiguration interface { + GetByIdentityByName(identityAlias string) error + GetByClusterName(clusterName string) error +}