Documentation
¶
Index ¶
Constants ¶
View Source
const ( Allow = "Allow" Deny = "Deny" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actions ¶
type Actions struct {
// contains filtered or unexported fields
}
func AllActions ¶
func AllActions() *Actions
func SomeActions ¶
func (*Actions) MarshalJSON ¶
func (*Actions) UnmarshalJSON ¶
type AllPrincipal ¶
type AllPrincipal struct{}
type Conditions ¶
type MultiAction ¶
type MultiAction []string
type MultiPrincipal ¶
type MultiResource ¶
type MultiResource []string
type Principals ¶
type Principals struct {
// contains filtered or unexported fields
}
func AllPrincipals ¶
func AllPrincipals() *Principals
func SomePrincipals ¶
func SomePrincipals(principal string, principalMore ...string) *Principals
func (*Principals) MarshalJSON ¶
func (p *Principals) MarshalJSON() ([]byte, error)
func (*Principals) Principal ¶
func (p *Principals) Principal() Principal
Principal return one of AllPrincipal, MultiPrincipal or nil
func (*Principals) UnmarshalJSON ¶
func (p *Principals) UnmarshalJSON(data []byte) error
type Resources ¶
type Resources struct {
// contains filtered or unexported fields
}
func SomeResource ¶
func (*Resources) MarshalJSON ¶
func (*Resources) UnmarshalJSON ¶
type SingleAction ¶
type SingleAction string
type SingleResource ¶
type SingleResource string
type Statement ¶
type Statement struct { Sid string `json:"Sid,omitempty"` Effect string `json:"Effect,omitempty"` Principals *Principals `json:"Principal,omitempty"` Actions *Actions `json:"Action,omitempty"` Resources *Resources `json:"Resource,omitempty"` Conditions Conditions `json:"Condition,omitempty"` }
Click to show internal directories.
Click to hide internal directories.