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
- func Sorted(m map[string]string) string
- type Item
- type ItemState
- type Nuke
- type NukeParameters
- type Queue
- type Region
- type ResourceTypeResolver
- type SessionFactory
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 ¶
func NewRootCommand ¶
func NewVersionCommand ¶
func ResolveResourceTypes ¶
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 Quiet bool MaxWaitRetries int }
func (*NukeParameters) Validate ¶
func (p *NukeParameters) Validate() error
type Region ¶
type Region struct { Name string NewSession SessionFactory ResTypeResolver ResourceTypeResolver // contains filtered or unexported fields }
func NewRegion ¶
func NewRegion(name string, typeResolver ResourceTypeResolver, sessionFactory SessionFactory) *Region
type ResourceTypeResolver ¶
ResourceTypeResolver returns the service type from the resourceType
Click to show internal directories.
Click to hide internal directories.