Documentation ¶
Index ¶
- type Attached
- func (a *Attached) Arn(arn string) *Attached
- func (a *Attached) Assert(t *testing.T, policies ...*iam.AttachedPolicy) *Attached
- func (a *Attached) Document(t *testing.T, versionID string) *policy.Document
- func (a *Attached) Filter(filter shared.Filter) *Attached
- func (a *Attached) First(t *testing.T, policies ...*iam.AttachedPolicy) *Attached
- func (a *Attached) Name(name string) *Attached
- func (a *Attached) Selected() *iam.AttachedPolicy
- func (a *Attached) Statement(t *testing.T, doc *policy.Document) *statement.Statement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attached ¶
type Attached struct {
// contains filtered or unexported fields
}
Attached contains the necessary properties for testing *iam.AttachedPolicy objects
func New ¶
func New(client client.ConfigProvider, roleName string) *Attached
New returns a new *Attached
func (*Attached) Arn ¶
Arn adds the Arn filter to the filter list the Arn filter: filters policies by Arn where 'arn' provided is the expected Arn value
func (*Attached) 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 policy if policies is not provided, *iam.AttachedPolicy objects will be retreived from AWS
func (*Attached) Document ¶
Document returns the unmarshaled policy document if versionID is empty, will return the default version
func (*Attached) 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 policies is not provided, *iam.AttachedPolicy objects will be retreived from AWS
func (*Attached) Name ¶
Name adds the Name filter to the filter list the Name filter: filters policies by Name where 'name' provided is the expected PolicyName value
func (*Attached) Selected ¶
func (a *Attached) Selected() *iam.AttachedPolicy
Selected returns the currently selected *iam.AttachedPolicy