delete

package
v2.15.2-dev.docker-img... Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 22 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, _ 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    client.ConfigClient
	Settings   client.SettingsClient
	Automation client.AutomationClient
	Buckets    client.BucketClient
	Documents  client.DocumentClient
}

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)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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