delete

package
v2.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllAutomations

func AllAutomations(ctx context.Context, c automationClient) []error

AllAutomations deletes all Automation objects it can find from the Dynatrace environment the given client connects to

func AllConfigs

func AllConfigs(ctx context.Context, client dtclient.ConfigClient, apis api.APIs) (errors []error)

AllConfigs deletes ALL classic Config API objects it can find from the Dynatrace environment the given client connects to

func AllSettingsObjects

func AllSettingsObjects(ctx context.Context, c dtclient.SettingsClient) []error

AllSettingsObjects deletes all settings objects it can find from the Dynatrace environment the given client connects to

func Configs

func Configs(ctx context.Context, clients ClientSet, apis api.APIs, automationResources map[string]config.AutomationResource, entriesToDelete map[string][]DeletePointer) []error

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

func LoadEntriesToDelete

func LoadEntriesToDelete(fs afero.Fs, knownApis []string, deleteFile string) (map[string][]DeletePointer, []error)

Types

type ClientSet

type ClientSet struct {
	Classic    dtclient.Client
	Settings   dtclient.Client
	Automation automationClient
}

type DeleteEntryParserError

type DeleteEntryParserError struct {
	Value  string `json:"value"`
	Index  int    `json:"index"`
	Reason string `json:"reason"`
}

func (DeleteEntryParserError) Error

func (e DeleteEntryParserError) Error() string

type DeletePointer

type DeletePointer struct {
	Project string
	Type    string

	//Identifier will either be the Name of a classic Config API object, or a configID for newer types like Settings
	Identifier string
}

DeletePointer contains all data needed to identify an object to be deleted from a Dynatrace environment. DeletePointer is similar but not fully equivalent to config.Coordinate as it may contain an Identifier that is either a Name or a ConfigID - only in case of a ConfigID is it actually equivalent to a Coordinate

func (DeletePointer) String added in v2.7.1

func (d DeletePointer) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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