modifiers

package
v0.99.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModifyPlanForDefaultProjectChange

func ModifyPlanForDefaultProjectChange(ctx context.Context, providerDefaultProject string, state tfsdk.State, configAttributes, planAttributes AttrGettable, resp *resource.ModifyPlanResponse)

ModifyPlanForDefaultProjectChange modifies a resource plan if the provider's default project has changed and differs from the resource's project when it doesn't set the project_id itself. Modifying the resource plan makes the resource sensitive to the provider's default configuration updates keeping the resource in sync with the configuration inherited from the provider.

Types

type AttrGettable

type AttrGettable interface {
	GetAttribute(ctx context.Context, path path.Path, target interface{}) diag.Diagnostics
}

AttrGettable is a small enabler for helper functions that need to read one attribute of a Configuration, Plan, or State.

Jump to

Keyboard shortcuts

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