Documentation ¶
Overview ¶
Package iamregistry provides data structures for resolving IAM roles and permissions.
Index ¶
- type Roles
- func (r *Roles) Count() int
- func (r *Roles) FindRoleByName(name string) (*adminpb.Role, bool)
- func (r *Roles) RangeRoles(fn func(*adminpb.Role) bool)
- func (r *Roles) RangeRolesByPermission(permission string, fn func(*adminpb.Role) bool)
- func (r *Roles) RoleHasPermission(name, permission string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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.