Documentation ¶
Index ¶
- Variables
- func Log(reg string, r resources.Resource, c color.Color, msg string)
- func LogErrorf(err error)
- func LogWarn(s string, i ...interface{})
- func NewRootCommand() *cobra.Command
- func NewVersionCommand() *cobra.Command
- func Prompt(expect string) error
- func Scan(sess *session.Session) <-chan *Item
- type Item
- type ItemState
- type Nuke
- func (n *Nuke) Filter(item *Item)
- func (n *Nuke) HandleQueue()
- func (n *Nuke) HandleRemove(item *Item)
- func (n *Nuke) HandleWait(item *Item, cache map[string][]resources.Resource)
- func (n *Nuke) Run() error
- func (n *Nuke) Scan() error
- func (n *Nuke) StartSession() error
- func (n *Nuke) ValidateAccount() error
- type NukeConfig
- type NukeConfigAccount
- type NukeParameters
- type Queue
Constants ¶
This section is empty.
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) ColorID = *color.New(color.Bold) Warning = *color.New(color.FgYellow) )
View Source
var ( BuildVersion = "unknown" BuildDate = "unknown" BuildHash = "unknown" BuildEnvironment = "unknown" )
Functions ¶
func NewRootCommand ¶
func NewVersionCommand ¶
Types ¶
type Item ¶
type Nuke ¶
type Nuke struct { Parameters NukeParameters Config *NukeConfig ForceSleep time.Duration // contains filtered or unexported fields }
func NewNuke ¶
func NewNuke(params NukeParameters) *Nuke
func (*Nuke) HandleQueue ¶
func (n *Nuke) HandleQueue()
func (*Nuke) HandleRemove ¶
func (*Nuke) HandleWait ¶
func (*Nuke) StartSession ¶
func (*Nuke) ValidateAccount ¶
type NukeConfig ¶
type NukeConfig struct { AccountBlacklist []string `yaml:"account-blacklist"` Regions []string `yaml:"regions"` Accounts map[string]NukeConfigAccount `yaml:"accounts"` }
func LoadConfig ¶
func LoadConfig(path string) (*NukeConfig, error)
func (*NukeConfig) HasBlacklist ¶
func (c *NukeConfig) HasBlacklist() bool
func (*NukeConfig) InBlacklist ¶
func (c *NukeConfig) InBlacklist(searchID string) bool
type NukeConfigAccount ¶
type NukeParameters ¶
type NukeParameters struct { ConfigPath string Profile string AccessKeyID string SecretAccessKey string Targets []string NoDryRun bool Force bool }
func (*NukeParameters) Validate ¶
func (p *NukeParameters) Validate() error
func (*NukeParameters) WantsTarget ¶
func (p *NukeParameters) WantsTarget(name string) bool
Click to show internal directories.
Click to hide internal directories.