Documentation ¶
Index ¶
- func New() tfprovider.Provider
- type Config
- type Provider
- func (p *Provider) Configure(ctx context.Context, req tfprovider.ConfigureRequest, ...)
- func (p *Provider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *Provider) Metadata(ctx context.Context, req tfprovider.MetadataRequest, ...)
- func (p *Provider) Resources(ctx context.Context) []func() resource.Resource
- func (p *Provider) Schema(ctx context.Context, req tfprovider.SchemaRequest, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { URL types.String `tfsdk:"url"` TokenURL types.String `tfsdk:"token_url"` User types.String `tfsdk:"user"` Password types.String `tfsdk:"password"` Token types.String `tfsdk:"token"` ClientID types.String `tfsdk:"client_id"` ClientSecret types.String `tfsdk:"client_secret"` TrustedCAs types.String `tfsdk:"trusted_cas"` Insecure types.Bool `tfsdk:"insecure"` }
Config contains the configuration of the provider.
type Provider ¶
type Provider struct{}
Provider is the implementation of the Provider.
func (*Provider) Configure ¶
func (p *Provider) Configure(ctx context.Context, req tfprovider.ConfigureRequest, resp *tfprovider.ConfigureResponse)
configure is the configuration function of the provider. It is responsible for checking the connection parameters and creating the connection that will be used by the resources.
func (*Provider) DataSources ¶ added in v1.4.0
func (p *Provider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*Provider) Metadata ¶ added in v1.4.0
func (p *Provider) Metadata(ctx context.Context, req tfprovider.MetadataRequest, resp *tfprovider.MetadataResponse)
func (*Provider) Resources ¶ added in v1.4.0
Resources returns the resources supported by the provider.
func (*Provider) Schema ¶ added in v1.4.0
func (p *Provider) Schema(ctx context.Context, req tfprovider.SchemaRequest, resp *tfprovider.SchemaResponse)
Provider creates the schema for the provider.
Click to show internal directories.
Click to hide internal directories.