Documentation ¶
Index ¶
- func NewProvider() providers.Interface
- type Provider
- func (p *Provider) ApplyResourceChange(req providers.ApplyResourceChangeRequest) providers.ApplyResourceChangeResponse
- func (p *Provider) CallFunction(r providers.CallFunctionRequest) providers.CallFunctionResponse
- func (p *Provider) Close() error
- func (p *Provider) ConfigureProvider(providers.ConfigureProviderRequest) providers.ConfigureProviderResponse
- func (p *Provider) GetFunctions() providers.GetFunctionsResponse
- func (p *Provider) GetProviderSchema() providers.GetProviderSchemaResponse
- func (p *Provider) ImportResourceState(req providers.ImportResourceStateRequest) providers.ImportResourceStateResponse
- func (p *Provider) PlanResourceChange(req providers.PlanResourceChangeRequest) providers.PlanResourceChangeResponse
- func (p *Provider) ReadDataSource(req providers.ReadDataSourceRequest) providers.ReadDataSourceResponse
- func (p *Provider) ReadDataSourceEncrypted(req providers.ReadDataSourceRequest, path addrs.AbsResourceInstance, ...) providers.ReadDataSourceResponse
- func (p *Provider) ReadResource(req providers.ReadResourceRequest) providers.ReadResourceResponse
- func (p *Provider) Stop() error
- func (p *Provider) UpgradeResourceState(req providers.UpgradeResourceStateRequest) providers.UpgradeResourceStateResponse
- func (p *Provider) ValidateDataResourceConfig(req providers.ValidateDataResourceConfigRequest) providers.ValidateDataResourceConfigResponse
- func (p *Provider) ValidateProviderConfig(req providers.ValidateProviderConfigRequest) providers.ValidateProviderConfigResponse
- func (p *Provider) ValidateResourceConfig(req providers.ValidateResourceConfigRequest) providers.ValidateResourceConfigResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provider ¶
type Provider struct{}
Provider is an implementation of providers.Interface
func (*Provider) ApplyResourceChange ¶
func (p *Provider) ApplyResourceChange(req providers.ApplyResourceChangeRequest) providers.ApplyResourceChangeResponse
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 ¶
func (p *Provider) CallFunction(r providers.CallFunctionRequest) providers.CallFunctionResponse
func (*Provider) ConfigureProvider ¶
func (p *Provider) ConfigureProvider(providers.ConfigureProviderRequest) providers.ConfigureProviderResponse
Configure configures and initializes the provider.
func (*Provider) GetFunctions ¶
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 ¶
func (p *Provider) ImportResourceState(req providers.ImportResourceStateRequest) providers.ImportResourceStateResponse
ImportResourceState requests that the given resource be imported.
func (*Provider) PlanResourceChange ¶
func (p *Provider) PlanResourceChange(req providers.PlanResourceChangeRequest) providers.PlanResourceChangeResponse
PlanResourceChange takes the current state and proposed state of a resource, and returns the planned final state.
func (*Provider) ReadDataSource ¶
func (p *Provider) ReadDataSource(req providers.ReadDataSourceRequest) providers.ReadDataSourceResponse
ReadDataSource returns the data source's current state.
func (*Provider) ReadDataSourceEncrypted ¶
func (p *Provider) ReadDataSourceEncrypted(req providers.ReadDataSourceRequest, path addrs.AbsResourceInstance, enc encryption.Encryption) providers.ReadDataSourceResponse
func (*Provider) ReadResource ¶
func (p *Provider) ReadResource(req providers.ReadResourceRequest) providers.ReadResourceResponse
ReadResource refreshes a resource and returns its current state.
func (*Provider) UpgradeResourceState ¶
func (p *Provider) UpgradeResourceState(req providers.UpgradeResourceStateRequest) providers.UpgradeResourceStateResponse
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 ¶
func (p *Provider) ValidateDataResourceConfig(req providers.ValidateDataResourceConfigRequest) providers.ValidateDataResourceConfigResponse
ValidateDataResourceConfig is used to validate the data source configuration values.
func (*Provider) ValidateProviderConfig ¶
func (p *Provider) ValidateProviderConfig(req providers.ValidateProviderConfigRequest) providers.ValidateProviderConfigResponse
ValidateProviderConfig is used to validate the configuration values.
func (*Provider) ValidateResourceConfig ¶
func (p *Provider) ValidateResourceConfig(req providers.ValidateResourceConfigRequest) providers.ValidateResourceConfigResponse
ValidateResourceConfig is used to to validate the resource configuration values.