sweeper

package
v1.20.1-0...-368ed82 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTestSweepers

func AddTestSweepers(name string, sweeper func(region string) error)

func IsSweepableTestResource

func IsSweepableTestResource(resourceName string) bool

func ListParentResourcesInLocation

func ListParentResourcesInLocation(d *tpgresource.ResourceDataMock, config *transport_tpg.Config, listTemplate, responseField string) ([]string, error)

ListParentResourcesInLocation calls a provided list endpoint and returns the names of any resources found in the response. This function is intended to be used in sweepers where the resources being swept can only be found with knowledge about existing parental resources.

func SharedConfigForRegion

func SharedConfigForRegion(region string) (*transport_tpg.Config, error)

SharedConfigForRegion returns a common config setup needed for the sweeper functions for a given region

Types

This section is empty.

Jump to

Keyboard shortcuts

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