Documentation ¶
Index ¶
Constants ¶
View Source
const ( FilterTypeEmpty FilterType = "" FilterTypeExact = "exact" FilterTypeGlob = "glob" FilterTypeRegex = "regex" FilterTypeContains = "contains" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Filters Filters `yaml:"filters"` ResourceTypes ResourceTypes `yaml:"resource-types"` Presets []string `yaml:"presets"` }
type Filter ¶
type Filter struct { Property string Type FilterType Value string Invert string }
func NewExactFilter ¶
func (*Filter) UnmarshalYAML ¶
type FilterType ¶
type FilterType string
type Nuke ¶
type Nuke struct { AccountBlacklist []string `yaml:"account-blacklist"` Regions []string `yaml:"regions"` Accounts map[string]Account `yaml:"accounts"` ResourceTypes ResourceTypes `yaml:"resource-types"` Presets map[string]PresetDefinitions `yaml:"presets"` }
func (*Nuke) HasBlacklist ¶
func (*Nuke) InBlacklist ¶
type PresetDefinitions ¶
type PresetDefinitions struct {
Filters Filters `yaml:"filters"`
}
type ResourceTypes ¶
type ResourceTypes struct { Targets types.Collection `yaml:"targets"` Excludes types.Collection `yaml:"excludes"` }
Click to show internal directories.
Click to hide internal directories.