delete

package
v2.26.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All added in v2.8.1

func All(ctx context.Context, clients client.ClientSet, apis api.APIs) error

All collects and deletes ALL configuration objects using the provided ClientSet. To delete specific configurations use Configs instead!

Parameters:

  • ctx (context.Context): The context in which the function operates.
  • clients (ClientSet): A set of API clients used to collect and delete configurations from an environment.

func Configs

func Configs(ctx context.Context, clients client.ClientSet, entriesToDelete DeleteEntries) error

Configs removes all given entriesToDelete from the Dynatrace environment the given client connects to

func GenerateJSONSchema added in v2.10.0

func GenerateJSONSchema() ([]byte, error)

Types

type DeleteEntries added in v2.8.1

type DeleteEntries = map[configurationType][]pointer.DeletePointer

DeleteEntries is a map of configuration type to slice of delete pointers

func LoadEntriesFromFile added in v2.14.0

func LoadEntriesFromFile(fs afero.Fs, deleteFile string) (DeleteEntries, error)

type Deleter added in v2.24.1

type Deleter interface {
	Delete(context.Context, []pointer.DeletePointer) error
}

type Deleters added in v2.25.0

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

func (Deleters) Delete added in v2.25.0

func (d Deleters) Delete(ctx context.Context, configType string, entries []pointer.DeletePointer) error

type Purger added in v2.25.0

type Purger interface {
	DeleteAll(context.Context) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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