Documentation ¶
Index ¶
- func AllAutomations(ctx context.Context, c automationClient) []error
- func AllConfigs(ctx context.Context, client dtclient.ConfigClient, apis api.APIs) (errors []error)
- func AllSettingsObjects(ctx context.Context, c dtclient.SettingsClient) []error
- func Configs(ctx context.Context, clients ClientSet, apis api.APIs, ...) []error
- func LoadEntriesToDelete(fs afero.Fs, knownApis []string, deleteFile string) (map[string][]DeletePointer, []error)
- type ClientSet
- type DeleteEntryParserError
- type DeletePointer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllAutomations ¶
AllAutomations deletes all Automation objects it can find from the Dynatrace environment the given client connects to
func AllConfigs ¶
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 ¶
Types ¶
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