Documentation ¶
Overview ¶
Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0
Index ¶
- func AddTestSweepers(name string, sweeper func(region string) error)
- func IsSweepableTestResource(resourceName string) bool
- func ListParentResourcesInLocation(d *tpgresource.ResourceDataMock, config *transport_tpg.Config, ...) ([]string, error)
- func SharedConfigForRegion(region string) (*transport_tpg.Config, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTestSweepers ¶
func IsSweepableTestResource ¶
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.
Click to show internal directories.
Click to hide internal directories.