tf

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider() providers.Interface

NewProvider returns a new tofu provider

Types

type Provider

type Provider struct{}

Provider is an implementation of providers.Interface

func (*Provider) ApplyResourceChange

ApplyResourceChange takes the planned state for a resource, which may yet contain unknown computed values, and applies the changes returning the final state.

func (*Provider) CallFunction added in v1.7.0

func (*Provider) Close

func (p *Provider) Close() error

Close is a noop for this provider, since it's run in-process.

func (*Provider) ConfigureProvider

Configure configures and initializes the provider.

func (*Provider) GetFunctions added in v1.7.0

func (p *Provider) GetFunctions() providers.GetFunctionsResponse

func (*Provider) GetProviderSchema

func (p *Provider) GetProviderSchema() providers.GetProviderSchemaResponse

GetSchema returns the complete schema for the provider.

func (*Provider) ImportResourceState

ImportResourceState requests that the given resource be imported.

func (*Provider) PlanResourceChange

PlanResourceChange takes the current state and proposed state of a resource, and returns the planned final state.

func (*Provider) ReadDataSource

ReadDataSource returns the data source's current state.

func (*Provider) ReadDataSourceEncrypted added in v1.7.0

func (*Provider) ReadResource

ReadResource refreshes a resource and returns its current state.

func (*Provider) Stop

func (p *Provider) Stop() error

Stop is called when the provider should halt any in-flight actions.

func (*Provider) UpgradeResourceState

UpgradeResourceState is called when the state loader encounters an instance state whose schema version is less than the one reported by the currently-used version of the corresponding provider, and the upgraded result is used for any further processing.

func (*Provider) ValidateDataResourceConfig

ValidateDataResourceConfig is used to validate the data source configuration values.

func (*Provider) ValidateProviderConfig

ValidateProviderConfig is used to validate the configuration values.

func (*Provider) ValidateResourceConfig

ValidateResourceConfig is used to to validate the resource configuration values.

Jump to

Keyboard shortcuts

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