Documentation ¶
Index ¶
Constants ¶
View Source
const ( FilterTypeEmpty FilterType = "" FilterTypeExact = "exact" FilterTypeGlob = "glob" FilterTypeRegex = "regex" FilterTypeContains = "contains" FilterTypeDateOlderThan = "dateOlderThan" )
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 CustomEndpoints ¶
type CustomEndpoints []*CustomRegion
func (CustomEndpoints) GetRegion ¶
func (endpoints CustomEndpoints) GetRegion(region string) *CustomRegion
GetRegion returns the custom region or nil when no such custom endpoints are defined for this region
func (CustomEndpoints) GetURL ¶
func (endpoints CustomEndpoints) GetURL(region, serviceType string) string
type CustomRegion ¶
type CustomRegion struct { Region string `yaml:"region"` Services CustomServices `yaml:"services"` TLSInsecureSkipVerify bool `yaml:"tls_insecure_skip_verify"` }
type CustomService ¶
type CustomServices ¶
type CustomServices []*CustomService
func (CustomServices) GetService ¶
func (services CustomServices) GetService(serviceType string) *CustomService
GetService returns the custom region or nil when no such custom endpoints are defined for this region
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
type Nuke ¶
type Nuke struct { // Deprecated: Use AccountBlocklist instead. AccountBlacklist []string `yaml:"account-blacklist"` AccountBlocklist []string `yaml:"account-blocklist"` Regions []string `yaml:"regions"` Accounts map[string]Account `yaml:"accounts"` ResourceTypes ResourceTypes `yaml:"resource-types"` Presets map[string]PresetDefinitions `yaml:"presets"` FeatureFlags FeatureFlags `yaml:"feature-flags"` CustomEndpoints CustomEndpoints `yaml:"endpoints"` }
func (*Nuke) HasBlocklist ¶
func (*Nuke) InBlocklist ¶
func (*Nuke) ResolveBlocklist ¶
type PresetDefinitions ¶
type PresetDefinitions struct {
Filters Filters `yaml:"filters"`
}
type ResourceTypes ¶
type ResourceTypes struct { Targets types.Collection `yaml:"targets"` Excludes types.Collection `yaml:"excludes"` CloudControl types.Collection `yaml:"cloud-control"` }
Click to show internal directories.
Click to hide internal directories.