Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeatureFlags ¶
type FeatureFlags struct { DisableDeletionProtection DisableDeletionProtection `yaml:"disable-deletion-protection"` ForceDeleteLightsailAddOns bool `yaml:"force-delete-lightsail-addons"` }
type Filter ¶
type Filter struct { Property string Type FilterType Value string Invert string }
func NewExactFilter ¶
func (*Filter) UnmarshalYAML ¶
type FilterType ¶
type FilterType string
const ( FilterTypeEmpty FilterType = "" FilterTypeExact FilterType = "exact" FilterTypeGlob FilterType = "glob" FilterTypeRegex FilterType = "regex" FilterTypeContains FilterType = "contains" FilterTypeDateOlderThan FilterType = "dateOlderThan" FilterTypeSuffix FilterType = "suffix" FilterTypePrefix FilterType = "prefix" )
type Nuke ¶
type Nuke struct { Tenants map[string]Tenant `yaml:"tenants"` TenantBlocklist []string `yaml:"tenant-blocklist"` ResourceTypes ResourceTypes `yaml:"resource-types"` FeatureFlags FeatureFlags `yaml:"feature-flags"` Presets map[string]PresetDefinitions `yaml:"presets"` }
func (*Nuke) HasBlocklist ¶
func (*Nuke) InBlocklist ¶
func (*Nuke) ResolveBlocklist ¶
func (*Nuke) ValidateTenant ¶
type PresetDefinitions ¶
type PresetDefinitions struct {
Filters Filters `yaml:"filters"`
}
type ResourceTypes ¶
type ResourceTypes struct { Targets types.Collection `yaml:"targets"` Excludes types.Collection `yaml:"excludes"` }
type Tenant ¶
type Tenant struct { Filters Filters `yaml:"filters"` ResourceTypes ResourceTypes `yaml:"resource-types"` Presets []string `yaml:"presets"` }
Click to show internal directories.
Click to hide internal directories.