Documentation ¶
Index ¶
- type Statement
- func (s *Statement) Action(action ...string) *Statement
- func (s *Statement) Assert(t *testing.T) *Statement
- func (s *Statement) Condition(operator string, property string, value ...string) *Statement
- func (s *Statement) Effect(effect string) *Statement
- func (s *Statement) Filter(filter shared.Filter) *Statement
- func (s *Statement) First(t *testing.T) *Statement
- func (s *Statement) Principal(typ string, values ...string) *Statement
- func (s *Statement) Resource(resource ...string) *Statement
- func (s *Statement) Selected() *policy.Statement
- func (s *Statement) Sid(sid string) *Statement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Statement ¶
type Statement struct {
// contains filtered or unexported fields
}
Statement stores necessary objects for filtering *PolicyStatement objects
func (*Statement) Action ¶
Action adds the Action filter to the filter list the Action filter: filters *Statement objects by 'Action' where 'arn' provided is the expected Action value
func (*Statement) Assert ¶
Assert executes the filter list against all *policy.Statement objects inside the doc provided to New(), next it will reset the filter list, fail the test if there is not exactly one match and store the match
func (*Statement) Condition ¶
Condition adds the Condition filter to the filter list the Condition filter: filters *Statement objects by 'Condition' where 'operator, property, and value' provided are the expected Condition property values
func (*Statement) Effect ¶
Effect adds the Effect filter to the filter list the Effect filter: filters *Statement objects by 'Effect' where 'effect' provided is the expected Effect value
func (*Statement) First ¶
First executes the filter list against all *policy.Statement objects inside the doc provided to New(), it will reset the filter list, fail the test if there no match, and store the first match
func (*Statement) Principal ¶
Principal adds the Principal filter to the filter list the Principal filter: filters *Statement objects by 'Principal' where 'typ, and values' provided are the expected Principal property values
func (*Statement) Resource ¶
Resource adds the Resource filter to the filter list the Resource filter: filters *Statement objects by 'Resource' where 'resource' provided is the expected Resource value