Documentation ¶
Index ¶
- func NewProvider() providers.Interface
- type Provider
- func (p *Provider) ApplyResourceChange(providers.ApplyResourceChangeRequest) providers.ApplyResourceChangeResponse
- func (p *Provider) Close() error
- func (p *Provider) Configure(providers.ConfigureRequest) providers.ConfigureResponse
- func (p *Provider) GetSchema() providers.GetSchemaResponse
- func (p *Provider) ImportResourceState(providers.ImportResourceStateRequest) providers.ImportResourceStateResponse
- func (p *Provider) PlanResourceChange(providers.PlanResourceChangeRequest) providers.PlanResourceChangeResponse
- func (p *Provider) PrepareProviderConfig(req providers.PrepareProviderConfigRequest) providers.PrepareProviderConfigResponse
- func (p *Provider) ReadDataSource(req providers.ReadDataSourceRequest) providers.ReadDataSourceResponse
- func (p *Provider) ReadResource(providers.ReadResourceRequest) providers.ReadResourceResponse
- func (p *Provider) Stop() error
- func (p *Provider) UpgradeResourceState(providers.UpgradeResourceStateRequest) providers.UpgradeResourceStateResponse
- func (p *Provider) ValidateDataSourceConfig(req providers.ValidateDataSourceConfigRequest) providers.ValidateDataSourceConfigResponse
- func (p *Provider) ValidateResourceTypeConfig(providers.ValidateResourceTypeConfigRequest) providers.ValidateResourceTypeConfigResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶ added in v0.12.0
NewProvider returns a new terraform provider
Types ¶
type Provider ¶
type Provider struct { // Provider is the schema for the provider itself. Schema providers.Schema // DataSources maps the data source name to that data source's schema. DataSources map[string]providers.Schema }
Provider is an implementation of providers.Interface
func (*Provider) ApplyResourceChange ¶ added in v0.12.0
func (p *Provider) ApplyResourceChange(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) Close ¶ added in v0.12.0
Close is a noop for this provider, since it's run in-process.
func (*Provider) Configure ¶ added in v0.12.0
func (p *Provider) Configure(providers.ConfigureRequest) providers.ConfigureResponse
Configure configures and initializes the provider.
func (*Provider) GetSchema ¶ added in v0.12.0
func (p *Provider) GetSchema() providers.GetSchemaResponse
GetSchema returns the complete schema for the provider.
func (*Provider) ImportResourceState ¶ added in v0.12.0
func (p *Provider) ImportResourceState(providers.ImportResourceStateRequest) providers.ImportResourceStateResponse
ImportResourceState requests that the given resource be imported.
func (*Provider) PlanResourceChange ¶ added in v0.12.0
func (p *Provider) PlanResourceChange(providers.PlanResourceChangeRequest) providers.PlanResourceChangeResponse
PlanResourceChange takes the current state and proposed state of a resource, and returns the planned final state.
func (*Provider) PrepareProviderConfig ¶ added in v0.12.0
func (p *Provider) PrepareProviderConfig(req providers.PrepareProviderConfigRequest) providers.PrepareProviderConfigResponse
ValidateProviderConfig is used to validate the configuration values.
func (*Provider) ReadDataSource ¶ added in v0.12.0
func (p *Provider) ReadDataSource(req providers.ReadDataSourceRequest) providers.ReadDataSourceResponse
ReadDataSource returns the data source's current state.
func (*Provider) ReadResource ¶ added in v0.12.0
func (p *Provider) ReadResource(providers.ReadResourceRequest) providers.ReadResourceResponse
ReadResource refreshes a resource and returns its current state.
func (*Provider) Stop ¶ added in v0.12.0
Stop is called when the provider should halt any in-flight actions.
func (*Provider) UpgradeResourceState ¶ added in v0.12.0
func (p *Provider) UpgradeResourceState(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) ValidateDataSourceConfig ¶ added in v0.12.0
func (p *Provider) ValidateDataSourceConfig(req providers.ValidateDataSourceConfigRequest) providers.ValidateDataSourceConfigResponse
ValidateDataSourceConfig is used to validate the data source configuration values.
func (*Provider) ValidateResourceTypeConfig ¶ added in v0.12.0
func (p *Provider) ValidateResourceTypeConfig(providers.ValidateResourceTypeConfigRequest) providers.ValidateResourceTypeConfigResponse
ValidateResourceTypeConfig is used to to validate the resource configuration values.