Skip to content

Commit

Permalink
add interface for getting configurations
Browse files Browse the repository at this point in the history
Signed-off-by: nirvanagit <[email protected]>
  • Loading branch information
nirvanagit committed May 17, 2024
1 parent f496b69 commit 6e3b18f
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 {
GetByIdentity(identityAlias string) error
GetByCluster(clusterName string) error
}

0 comments on commit 6e3b18f

Please sign in to comment.