Skip to content

Commit

Permalink
add interface for getting configurations (#295)
Browse files Browse the repository at this point in the history
* add interface for getting configurations

Signed-off-by: nirvanagit <anubhavaeron@gmail.com>

* Update registry.go

---------

Signed-off-by: nirvanagit <anubhavaeron@gmail.com>
  • Loading branch information
nirvanagit committed May 17, 2024
1 parent f496b69 commit 6f1cd09
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions admiral/pkg/registry/registry.go
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 6f1cd09

Please sign in to comment.