Documentation
¶
Index ¶
- func DeleteAthenaResources(athenaSvc AthenaService) error
- func NukeAccount(input *NukeAccountInput) error
- type AthenaReset
- func (athenaReset AthenaReset) DeleteNamedQuery(input *athena.DeleteNamedQueryInput) (*athena.DeleteNamedQueryOutput, error)
- func (athenaReset AthenaReset) DeleteWorkGroup(input *athena.DeleteWorkGroupInput) (*athena.DeleteWorkGroupOutput, error)
- func (athenaReset AthenaReset) ListNamedQueries(input *athena.ListNamedQueriesInput) (*athena.ListNamedQueriesOutput, error)
- func (athenaReset AthenaReset) ListWorkGroups(input *athena.ListWorkGroupsInput) (*athena.ListWorkGroupsOutput, error)
- type AthenaService
- type NukeAccountInput
- type Nuker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteAthenaResources ¶
func DeleteAthenaResources(athenaSvc AthenaService) error
DeleteAthenaResources deletes all aethna resources in the current aws session
func NukeAccount ¶
func NukeAccount(input *NukeAccountInput) error
NukeAccount directly triggers aws-nuke to be called on the configuration file provided, bypassing any manual prompts. Returns an error if there's any, else nil.
Types ¶
type AthenaReset ¶
type AthenaReset struct {
Client athenaiface.AthenaAPI
}
AthenaReset defines a concrete implementation of the above Service interface
func (AthenaReset) DeleteNamedQuery ¶
func (athenaReset AthenaReset) DeleteNamedQuery(input *athena.DeleteNamedQueryInput) (*athena.DeleteNamedQueryOutput, error)
DeleteNamedQuery implemenation
func (AthenaReset) DeleteWorkGroup ¶
func (athenaReset AthenaReset) DeleteWorkGroup(input *athena.DeleteWorkGroupInput) (*athena.DeleteWorkGroupOutput, error)
DeleteWorkGroup implemenation
func (AthenaReset) ListNamedQueries ¶
func (athenaReset AthenaReset) ListNamedQueries(input *athena.ListNamedQueriesInput) (*athena.ListNamedQueriesOutput, error)
ListNamedQueries implemenation
func (AthenaReset) ListWorkGroups ¶
func (athenaReset AthenaReset) ListWorkGroups(input *athena.ListWorkGroupsInput) (*athena.ListWorkGroupsOutput, error)
ListWorkGroups implemenation
type AthenaService ¶
type AthenaService interface { ListWorkGroups(input *athena.ListWorkGroupsInput) (*athena.ListWorkGroupsOutput, error) ListNamedQueries(input *athena.ListNamedQueriesInput) (*athena.ListNamedQueriesOutput, error) DeleteNamedQuery(input *athena.DeleteNamedQueryInput) (*athena.DeleteNamedQueryOutput, error) DeleteWorkGroup(input *athena.DeleteWorkGroupInput) (*athena.DeleteWorkGroupOutput, error) }
AthenaService interface
type NukeAccountInput ¶
type NukeAccountInput struct { ChildAccountID string RoleName string ConfigPath string NoDryRun bool Token common.TokenService }
NukeAccountInput is the container used for the TokenService and the NukeService to execute a Nuke for an AWS Account
type Nuker ¶
type Nuker struct { Nuke *libnuke.Nuke Config *config.Config NukeInput *NukeAccountInput Account *awsutil.Account Creds *awsutil.Credentials ResourceTypes types.Collection Logger *logrus.Logger // contains filtered or unexported fields }
func NewNuker ¶ added in v0.40.0
func NewNuker(parsedConfig *config.Config, nukeInput *NukeAccountInput) (*Nuker, error)
func (*Nuker) ConfigureCreds ¶ added in v0.40.0
func (*Nuker) RegisterResourceTypes ¶ added in v0.40.0
func (nuker *Nuker) RegisterResourceTypes()
func (*Nuker) RegisterScanners ¶ added in v0.40.0
Click to show internal directories.
Click to hide internal directories.