purge

package
v0.0.0-...-0b3dc3b Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 15 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