report

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetErrors

func GetErrors() map[string]GeneralError

func GetRecords

func GetRecords() map[string]Entry

func Record

func Record(e Entry)

func RecordBatch

func RecordBatch(e BatchEntry)

RecordBatch accepts a BatchEntry that contains a slice of identifiers, loops through them and converts each identifier to a standard Entry. This is useful for supporting batch delete workflows in cloud-nuke (such as cloudwatch_dashboards)

func RecordError

func RecordError(e GeneralError)

func ResetErrors

func ResetErrors()

func ResetRecords

func ResetRecords()

Types

type BatchEntry

type BatchEntry struct {
	Identifiers  []string
	ResourceType string
	Error        error
}

type Entry

type Entry struct {
	Identifier   string
	ResourceType string
	Error        error
}

Custom types

type GeneralError

type GeneralError struct {
	Error        error
	ResourceType string
	Description  string
}

Jump to

Keyboard shortcuts

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