Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type Authorizer interface { // FilterManagedClustersForUser receives a map of leaf-hub -> set(managed clusters) and returns a map of // unauthorized entries. FilterManagedClustersForUser(ctx context.Context, user string, groups []string, hubToManagedClustersMap map[string]set.Set) (map[string]set.Set, error) }
Authorizer abstracts the functionality required to authorize DB ops through RBAC.
type HubOfHubsAuthorizer ¶
type HubOfHubsAuthorizer struct {
// contains filtered or unexported fields
}
HubOfHubsAuthorizer handles authorization through Hub of Hubs RBAC.
func NewHubOfHubsAuthorizer ¶
func NewHubOfHubsAuthorizer(statusDB db.StatusDB) (*HubOfHubsAuthorizer, error)
NewHubOfHubsAuthorizer returns a new instance of HubOfHubsAuthorizer.
func (*HubOfHubsAuthorizer) FilterManagedClustersForUser ¶
func (auth *HubOfHubsAuthorizer) FilterManagedClustersForUser(ctx context.Context, user string, groups []string, hubToManagedClustersMap map[string]set.Set, ) (map[string]set.Set, error)
FilterManagedClustersForUser receives a map of leaf-hub -> set(managed clusters) and returns a map of unauthorized entries.
Click to show internal directories.
Click to hide internal directories.