|
|
@ -123,8 +123,7 @@ const ( |
|
|
|
|
|
|
|
|
|
|
|
// WithRole enable a specific tag on the RoleDescriptor.
|
|
|
|
// WithRole enable a specific tag on the RoleDescriptor.
|
|
|
|
func (rd RoleDescriptor) WithRole(role RoleDescriptor) RoleDescriptor { |
|
|
|
func (rd RoleDescriptor) WithRole(role RoleDescriptor) RoleDescriptor { |
|
|
|
rd |= (1 << role) |
|
|
|
return rd | (1 << role) |
|
|
|
return rd |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func stringToRoleDescriptor(role string) RoleDescriptor { |
|
|
|
func stringToRoleDescriptor(role string) RoleDescriptor { |
|
|
|