nuke

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ScannerParallelQueries = 16

Variables

This section is empty.

Functions

func Scan

func Scan(authorizers azure.Authorizers, tenantId, subscriptionId, resourceGroup string, resourceTypes []string) <-chan *queue.Item

Types

type Nuke

type Nuke struct {
	Parameters     NukeParameters
	TenantId       string
	SubscriptionId string
	Config         *config.Nuke
	Tenant         *azure.Tenant

	ResourceTypes types.Collection
	// contains filtered or unexported fields
}

func New

func New(params NukeParameters, tenant *azure.Tenant) *Nuke

func (*Nuke) Filter

func (n *Nuke) Filter(item *queue.Item) error

func (*Nuke) HandleQueue

func (n *Nuke) HandleQueue()

func (*Nuke) HandleRemove

func (n *Nuke) HandleRemove(item *queue.Item)

func (*Nuke) HandleWait

func (n *Nuke) HandleWait(item *queue.Item, cache map[string]map[string][]resource.Resource)

func (*Nuke) Run

func (n *Nuke) Run() error

func (*Nuke) Scan

func (n *Nuke) Scan() error

type NukeParameters

type NukeParameters struct {
	ConfigPath string

	Targets  []string
	Excludes []string

	NoDryRun   bool
	Force      bool
	ForceSleep int
	Quiet      bool

	MaxWaitRetries int
}

Jump to

Keyboard shortcuts

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