Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShouldInclude ¶ added in v0.1.26
func ShouldInclude(name string, includeREs []Expression, excludeREs []Expression) bool
ShouldInclude - Checks if a name should be included according to the inclusion and exclusion rules
Types ¶
type Config ¶
type Config struct {
S3 ResourceType `yaml:"s3"`
IAMUsers ResourceType `yaml:"IAMUsers"`
}
Config - the config object we pass around
type Expression ¶ added in v0.1.26
func (*Expression) UnmarshalText ¶ added in v0.1.26
func (expression *Expression) UnmarshalText(data []byte) error
UnmarshalText - Internally used by yaml.Unmarshal to unmarshall an Expression field
type FilterRule ¶
type FilterRule struct {
NamesRegExp []Expression `yaml:"names_regex"`
}
type ResourceType ¶
type ResourceType struct {
IncludeRule FilterRule `yaml:"include"`
ExcludeRule FilterRule `yaml:"exclude"`
}
Click to show internal directories.
Click to hide internal directories.