delete

package
v2.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 21 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 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 ClientSet, apis api.APIs, automationResources map[string]config.AutomationResource, 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 ClientSet

type ClientSet struct {
	Classic    dtclient.Client
	Settings   dtclient.Client
	Automation automation.Client
	Buckets    bucket.Client
}

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 LoadEntriesToDelete

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

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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