purge

package
v0.0.0-...-823d357 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

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