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
Click to show internal directories.
Click to hide internal directories.