Documentation ¶
Index ¶
- func BoolValue(x *bool) bool
- func Int64Value(x *int64) int64
- func StringValue(x *string) string
- type AnyOrList
- type AwsParser
- type AwsPolicy
- type Block
- type BlockProperty
- type BlockStatement
- type BlockString
- type BlockValue
- type Condition
- type ConditionList
- type Elements
- type Item
- type KeyValueList
- type Principal
- type PrincipalList
- type Statement
- type Value
- type ValueList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Int64Value ¶
func StringValue ¶
Types ¶
type AwsParser ¶
type AwsParser struct { Trace bool // contains filtered or unexported fields }
func NewAwsPolicyParser ¶
type Block ¶
type Block struct { Properties []*BlockProperty `@@ (("," @@)*)?` // contains filtered or unexported fields }
func (*Block) GetProperty ¶
func (b *Block) GetProperty(key string) *BlockProperty
type BlockProperty ¶
type BlockProperty struct { Key string `@String ":"` Value BlockValue `@@` }
type BlockStatement ¶
type BlockStatement struct {
Statement []*Statement `"[" "{" @@ "}" ( ( "," "{" @@ "}" )* )? "]"`
}
type BlockString ¶
type BlockString struct {
String string `@String`
}
type BlockValue ¶
type BlockValue interface {
// contains filtered or unexported methods
}
type Condition ¶
type Condition struct {
ConditionList []*ConditionList `"{" @@ ( ( (",") @@ )* )? "}"`
}
type ConditionList ¶
type ConditionList struct { Operation *string `@String ":"` KeyValueList []*KeyValueList `"{" @@ ( ( "," @@)*)? "}"` }
type Elements ¶
type Elements struct { Sid *string `"Sid" ":" @String` Effect *string `| "Effect" ":" @String` Principal *Principal `| "Principal" ":" @@` NotPrincipal *Principal `| "NotPrincipal" ":" @@` Action *AnyOrList `| "Action" ":" @@` NotAction *AnyOrList `| "NotAction" ":" @@` Resource *AnyOrList `| "Resource" ":" @@` NotResource *AnyOrList `| "NotResource" ":" @@` Condition *Condition `| "Condition" ":" @@` }
type KeyValueList ¶
type Principal ¶
type Principal struct { Any bool `@("*")` List []*PrincipalList `| "{" @@ ( ("," @@ )* )? "}"` }
type PrincipalList ¶
Click to show internal directories.
Click to hide internal directories.