Documentation
¶
Overview ¶
Package domain is a container of all of the domain types and interfaces that are used across multiple packages within the service.
This package is also the container for all domain errors leveraged by the service. Each error here should represent a specific condition that needs to be communicated across interface boundaries.
Generally speaking, this package contains no executable code. All elements are expected to be either pure data containers that have no associated methods or interface definitions that have no corresponding implementations in this package. The notable exception to this are the domain error types which are required to define a corresponding Error() method. Because these errors provide executable code they must also have corresponding tests. Only domain error types are allowed to deviate from the "no executable code" rule.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigFilterer ¶
type ConfigFilterer interface {
// FilterConfig returns true if the element should continue along the
// pipeline. False indicates the element should be dropped.
FilterConfig(ConfigurationItem) bool
}
ConfigFilterer is the expected form of filters applied to AWS Config events.
type ConfigurationItem ¶
type ConfigurationItem struct {
ResourceType string `json:"resourceType"`
}
ConfigurationItem contains the meaningful elements from the AWS Config Configuration Item (https://docs.aws.amazon.com/config/latest/developerguide/config-item-table.html) that are required for filtering.
type Decorator ¶ added in v0.3.0
Decorator returns a new Lambda which decorates in the input function
type ErrInvalidInput ¶
type ErrInvalidInput struct {
Reason string
}
ErrInvalidInput indicates that the AWS Config event did not have the expected shape.
func (ErrInvalidInput) Error ¶
func (e ErrInvalidInput) Error() string
type Lambda ¶ added in v0.3.0
Lambda is the function signature of the lambda handler in this project
type Producer ¶ added in v0.2.0
Producer sends events to a stream somewhere. All events must be valid for json.Marshal().