Documentation ¶
Index ¶
- Variables
- func GetMuxedProvider(ctx context.Context) (func() tfprotov6.ProviderServer, error)
- func NewPluginProvider() provider.Provider
- func Provider() *schema.Provider
- type PluginProvider
- func (p *PluginProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *PluginProvider) DataSources(_ context.Context) []func() datasource.DataSource
- func (p *PluginProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
- func (p *PluginProvider) Resources(_ context.Context) []func() resource.Resource
- func (p *PluginProvider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
- type PluginProviderModel
Constants ¶
This section is empty.
Variables ¶
var ( Version = "not build yet" Commit = "not build yet" )
Build coordinates..
Functions ¶
func GetMuxedProvider ¶ added in v1.45.0
func GetMuxedProvider(ctx context.Context) (func() tfprotov6.ProviderServer, error)
func NewPluginProvider ¶ added in v1.44.0
Types ¶
type PluginProvider ¶ added in v1.44.0
type PluginProvider struct{}
func (*PluginProvider) Configure ¶ added in v1.44.0
func (p *PluginProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
Configure is called at the beginning of the provider lifecycle, when Terraform sends to the provider the values the user specified in the provider configuration block. These are supplied in the ConfigureProviderRequest argument. Values from provider configuration are often used to initialize an API client, which should be stored on the struct to initialize an Provider interface.
func (*PluginProvider) DataSources ¶ added in v1.44.0
func (p *PluginProvider) DataSources(_ context.Context) []func() datasource.DataSource
DataSources returns a slice of functions to instantiate each DataSource implementation.
The data source type name is determined by the DataSource implementing the Metadata method. All data sources must have unique names.
func (*PluginProvider) Metadata ¶ added in v1.44.0
func (p *PluginProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
Metadata should return the metadata for the provider, such as a type name and version data.
Implementing the MetadataResponse.TypeName will populate the datasource.MetadataRequest.ProviderTypeName and resource.MetadataRequest.ProviderTypeName fields automatically.
func (*PluginProvider) Resources ¶ added in v1.44.0
func (p *PluginProvider) Resources(_ context.Context) []func() resource.Resource
Resources returns a slice of functions to instantiate each Resource implementation.
The resource type name is determined by the Resource implementing the Metadata method. All resources must have unique names.
func (*PluginProvider) Schema ¶ added in v1.44.0
func (p *PluginProvider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
Schema should return the schema for this provider.
type PluginProviderModel ¶ added in v1.44.0
type PluginProviderModel struct { Token types.String `tfsdk:"token"` Endpoint types.String `tfsdk:"endpoint"` PollInterval types.String `tfsdk:"poll_interval"` PollFunction types.String `tfsdk:"poll_function"` }
PluginProviderModel describes the provider data model.