purge

package
v0.0.0-...-37f2402 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceCleaner

type ResourceCleaner struct {
	// contains filtered or unexported fields
}

ResourceCleaner hold the context required for cleaning

func NewResourceCleaner

func NewResourceCleaner(log *logrus.Entry, env env.Core, shouldDelete checkFn, dryRun bool) (*ResourceCleaner, error)

NewResourceCleaner instantiates the new RC object

func (*ResourceCleaner) CleanResourceGroups

func (rc *ResourceCleaner) CleanResourceGroups(ctx context.Context) error

CleanResourceGroups loop through the resourgroups in the subscription and deleted everything that is not marked for deletion The deletion check is performed by passed function: DeleteCheck

Jump to

Keyboard shortcuts

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