Documentation ¶
Index ¶
- type Role
- func (r *Role) Arn(arn string) *Role
- func (r *Role) Assert(t *testing.T, roles ...*iam.Role) *Role
- func (r *Role) Attached() *attached.Attached
- func (r *Role) Document(t *testing.T) *policy.Document
- func (r *Role) Filter(filter shared.Filter) *Role
- func (r *Role) First(t *testing.T, roles ...*iam.Role) *Role
- func (r *Role) ID(id string) *Role
- func (r *Role) Inlined(t *testing.T, doc *policy.Document) *statement.Statement
- func (r *Role) Name(name string) *Role
- func (r *Role) Selected() *iam.Role
- func (r *Role) Statement(t *testing.T) *statement.Statement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Role ¶
type Role struct {
// contains filtered or unexported fields
}
Role contains the necessary properties for testing *iam.Role objects
func (*Role) Arn ¶
Arn adds the Arn filter to the filter list the Arn filter: filters roles by Arn where 'arn' provided is the expected Arn value
func (*Role) Assert ¶
Assert applies all filters that have been called, resets the list of filters, fails the test if there is not exactly one match, and stores the matched role if roles is not provided, *iam.Role objects will be retreived from AWS
func (*Role) Attached ¶
Attached returns a newly instantiated *attached.Attached object used for finding *iam.AttachedPolicy objects
func (*Role) First ¶
First applies all filters that have been called, resets the list of filters, fails the test if there are no matches, and stores the first match if roles is not provided, *iam.Role objects will be retreived from AWS
func (*Role) ID ¶
ID adds the ID filter to the filter list the ID filter: filters roles by ID where 'id' provided is the expected RoleId value
func (*Role) Inlined ¶
Inlined returns a newly instantiated *statement.Statement object used for filtering inlined Role Policies
func (*Role) Name ¶
Name adds the Name filter to the filter list the Name filter: filters roles by Name where 'name' provided is the expected RoleName value