Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnyMatch ¶ added in v0.2.0
type AnyMatch []domain.ConfigFilterer
AnyMatch tries all filters until one returns true.
func (AnyMatch) FilterConfig ¶ added in v0.2.0
func (f AnyMatch) FilterConfig(c domain.ConfigurationItem) bool
FilterConfig calls the underlying filters until one returns true.
type FilterComponent ¶ added in v0.2.0
type FilterComponent struct {
ResourceType *ResourceTypeComponent
}
FilterComponent is the top-level container for all filter types.
func NewFilterComponent ¶ added in v0.2.0
func NewFilterComponent() *FilterComponent
NewFilterComponent generates a FilterComponent.
func (*FilterComponent) New ¶ added in v0.2.0
func (c *FilterComponent) New(ctx context.Context, conf *FilterConfig) (domain.ConfigFilterer, error)
New generates a filter.
func (*FilterComponent) Settings ¶ added in v0.2.0
func (c *FilterComponent) Settings() *FilterConfig
Settings generates the default configuration.
type FilterConfig ¶ added in v0.2.0
type FilterConfig struct { Enabled []string `description:"List of enabled filters."` ResourceType *ResourceTypeConfig }
FilterConfig contains settings for the FilterComponent.
func (*FilterConfig) Name ¶ added in v0.2.0
func (*FilterConfig) Name() string
Name of the configuration root.
type ResourceType ¶ added in v0.2.0
type ResourceType struct {
Allowed []string
}
ResourceType is a filter that only allows a known set of resource types to pass through.
func (*ResourceType) FilterConfig ¶ added in v0.2.0
func (f *ResourceType) FilterConfig(c domain.ConfigurationItem) bool
FilterConfig returns true if a AWS Config item matches one of the allowed resource types defined.
type ResourceTypeComponent ¶ added in v0.2.0
type ResourceTypeComponent struct{}
ResourceTypeComponent satisfies the settings library Component API, and may be used by the settings.NewComponent function.
func NewResourceTypeComponent ¶ added in v0.2.0
func NewResourceTypeComponent() *ResourceTypeComponent
NewResourceTypeComponent constructs a ResourceTypeComponent.
func (*ResourceTypeComponent) New ¶ added in v0.2.0
func (*ResourceTypeComponent) New(_ context.Context, c *ResourceTypeConfig) (*ResourceType, error)
New constructs a ResourceType from a config.
func (*ResourceTypeComponent) Settings ¶ added in v0.2.0
func (*ResourceTypeComponent) Settings() *ResourceTypeConfig
Settings populates a set of default valid resource types for the ResourceType if none are provided via config.
type ResourceTypeConfig ¶ added in v0.2.0
type ResourceTypeConfig struct {
Allowed []string `description:"List of AWS resource types allowed to pass through."`
}
ResourceTypeConfig contains settings for the AWS resource type filter.
func (*ResourceTypeConfig) Name ¶ added in v0.2.0
func (c *ResourceTypeConfig) Name() string
Name is used by the settings library to replace the default naming convention.