Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
Account is an aws account. It should probably be in pkg/aws, but then we end up with a cycle.
type Notification ¶
Notification is a notification
func (*Notification) GetMessage ¶
func (n *Notification) GetMessage(v Violation) (string, error)
GetMessage gets the notification message
type Policy ¶
type Policy struct { Name string // ResourceSelector selects on aws services ResourceSelector labels.Selector // TagSelector selects on aws object tags TagSelector labels.Selector // LabelSelector selects on custom generated object labels LabelSelector labels.Selector // MaxAge how old can this object be and still be selected by this policy MaxAge *time.Duration Notifications []Notification }
Policy is an enforcement policy
func (*Policy) AddLabelSelector ¶
AddLabelSelector adds a label selector
func (*Policy) MatchResource ¶
MatchResource determines if we match an aws resource such as s3 or cloudfront
type Subject ¶
type Subject interface { Delete() error GetCreatedAt() *time.Time GetID() string GetLabels() labels.Set GetName() string GetOwner() string GetTags() labels.Set GetConsoleURL() string GetRegion() string }
Subject is gets evaluated by a policy
Click to show internal directories.
Click to hide internal directories.