provider

package
v1.4.0-prerelease.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() tfprovider.Provider

New creates the provider.

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

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 (*Provider) Resources added in v1.4.0

func (p *Provider) Resources(ctx context.Context) []func() resource.Resource

Resources returns the resources supported by the provider.

func (*Provider) Schema added in v1.4.0

Provider creates the schema for the provider.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL