reset

package
v0.41.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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 *Nuker) ConfigureCreds() error

func (*Nuker) RegisterResourceTypes added in v0.40.0

func (nuker *Nuker) RegisterResourceTypes()

func (*Nuker) RegisterScanners added in v0.40.0

func (nuker *Nuker) RegisterScanners() error

func (*Nuker) Run

func (nuker *Nuker) Run() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL