Documentation ¶
Overview ¶
Package iamregistry provides data structures to register lookup and resolve IAM roles and permissions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateRoles ¶
func ValidateRoles(roles *iamv1.Roles) *errdetails.BadRequest
ValidateRoles validates a set of predefined roles.
Types ¶
type Roles ¶
type Roles struct {
// contains filtered or unexported fields
}
Roles are a set of roles.
func (*Roles) FindRoleByName ¶
FindRoleByName looks up a role by resource name.
func (*Roles) RangeRoles ¶
RangeRoles iterates over all registered roles while f returns true. The iteration order is undefined.
func (*Roles) RangeRolesByPermission ¶
RangeRolesByPermission iterates over all registered roles with the provided permission while f returns true. The iteration order is undefined, and permissions with wildcards are not allowed.
func (*Roles) RoleHasPermission ¶
RoleHasPermission checks whether the role with the provided name has the provided permission.
Click to show internal directories.
Click to hide internal directories.