Documentation ¶
Index ¶
- func New(version string, httpClient *http.Client, ...) provider.Provider
- func NewFuncProvider(version string, httpClient *http.Client, ...) func() provider.Provider
- type Model
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(version string, httpClient *http.Client, fnResources []func() resource.Resource, fnDataSources []func() datasource.DataSource) provider.Provider
func NewFuncProvider ¶ added in v0.1.2
func NewFuncProvider(version string, httpClient *http.Client, fnResources []func() resource.Resource, fnDataSources []func() datasource.DataSource) func() provider.Provider
Types ¶
type Model ¶
type Model struct { Hostname types.String `tfsdk:"hostname"` Username types.String `tfsdk:"username"` Password types.String `tfsdk:"password"` VerifySSL types.Bool `tfsdk:"verify_ssl"` }
Model describes the provider data model.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider defines the provider implementation.
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 ¶ added in v0.1.2
func (p *Provider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
Click to show internal directories.
Click to hide internal directories.