Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- type Provider
- func (p *Provider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *Provider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *Provider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *Provider) Resources(ctx context.Context) []func() resource.Resource
- func (p *Provider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type ProviderModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
provider satisfies the tfsdk.Provider interface and usually is included with all Resource and DataSource implementations.
func (*Provider) Configure ¶
func (p *Provider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*Provider) DataSources ¶
func (p *Provider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*Provider) Metadata ¶
func (p *Provider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*Provider) Schema ¶
func (p *Provider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type ProviderModel ¶
type ProviderModel struct { SailBaseUrl types.String `tfsdk:"sail_base_url"` SailClientId types.String `tfsdk:"sail_client_id"` SailClientSecret types.String `tfsdk:"sail_client_secret"` HttpRetryMax types.Int64 `tfsdk:"http_retry_max"` }
ProviderModel can be used to store data from the Terraform configuration.
Click to show internal directories.
Click to hide internal directories.