Documentation
¶
Index ¶
- Constants
- Variables
- func IsTrue(s string) bool
- func Log(region Region, resourceType string, r resources.Resource, c color.Color, ...)
- func NewResourceTypesCommand() *cobra.Command
- func NewRootCommand() *cobra.Command
- func NewVersionCommand() *cobra.Command
- func Prompt(expect string) error
- func ResolveResourceTypes(base types.Collection, include, exclude []types.Collection) types.Collection
- func Scan(region Region, resourceTypes []string) <-chan *Item
- type Item
- type ItemState
- type Nuke
- type NukeParameters
- type Queue
- type Region
Constants ¶
View Source
const ScannerParallelQueries = 16
Variables ¶
View Source
var ( ReasonSkip = *color.New(color.FgYellow) ReasonError = *color.New(color.FgRed) ReasonRemoveTriggered = *color.New(color.FgGreen) ReasonWaitPending = *color.New(color.FgBlue) ReasonSuccess = *color.New(color.FgGreen) )
View Source
var ( ColorRegion = *color.New(color.Bold) ColorResourceType = *color.New() ColorResourceID = *color.New(color.Bold) ColorResourceProperties = *color.New(color.Italic) )
View Source
var ( BuildVersion = "unknown" BuildDate = "unknown" BuildHash = "unknown" BuildEnvironment = "unknown" )
Functions ¶
func NewResourceTypesCommand ¶ added in v1.4.0
func NewRootCommand ¶
func NewVersionCommand ¶
func ResolveResourceTypes ¶ added in v1.4.0
func ResolveResourceTypes(base types.Collection, include, exclude []types.Collection) types.Collection
Types ¶
type Item ¶
type Item struct {
Resource resources.Resource
State ItemState
Reason string
Region Region
Type string
}
An Item describes an actual AWS resource entity with the current state and some metadata.
type Nuke ¶
type Nuke struct {
Parameters NukeParameters
Account awsutil.Account
Config *config.Nuke
ResourceTypes types.Collection
// contains filtered or unexported fields
}
func (*Nuke) HandleQueue ¶
func (n *Nuke) HandleQueue()
func (*Nuke) HandleRemove ¶
func (*Nuke) HandleWait ¶
type NukeParameters ¶
type NukeParameters struct {
ConfigPath string
Targets []string
Excludes []string
NoDryRun bool
Force bool
ForceSleep int
MaxWaitRetries int
}
func (*NukeParameters) Validate ¶
func (p *NukeParameters) Validate() error
Click to show internal directories.
Click to hide internal directories.