types

package
v0.36.1-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestResource

type TestResource interface {
	// Exists should check whether the resource exists within the remote API
	// returning true if the resource exists, false if it doesn't exist and an
	// error if something went wrong when checking for the existence of the resource.
	Exists(ctx context.Context, client any, state *terraform.InstanceState) (*bool, error)
}

TestResource is an interface which should be implemented by all Terraform Resources for testing purposes - this allows a consistent approach to testing Resources.

type TestResourceVerifyingRemoved

type TestResourceVerifyingRemoved interface {
	TestResource

	// Destroy manually destroys this resource
	Destroy(ctx context.Context, client any, state *terraform.InstanceState) (*bool, error)
}

TestResourceVerifyingRemoved is an interface which extends TestResource for resources which also need to verify they can be manually removed (for testing destroy operations)

Jump to

Keyboard shortcuts

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