Documentation ¶
Index ¶
- Constants
- Variables
- func New(clientFactory ClientFactory, version string) func() provider.Provider
- type ClientFactory
- type Configuration
- 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 ¶
View Source
const (
// DefinednetApiEndpoint declares the default Defined.net HTTP API endpoint.
DefinednetAPIEndpoint = "https://api.defined.net/"
)
Variables ¶
View Source
var Schema = schema.Schema{ Description: "Interact with Defined.net's managed Nebula control plane.", MarkdownDescription: providerDescription, Attributes: map[string]schema.Attribute{ "token": schema.StringAttribute{ Description: "Defined.net HTTP API token", Required: true, Sensitive: true, }, }, }
Schema is the provider's configuration schema.
Functions ¶
Types ¶
type ClientFactory ¶
type ClientFactory func(endpointURI string, token string) (definednet.Client, error)
ClientFactory creates Defined.net clients.
type Configuration ¶
Configuration declares the provider's configuration options.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider is the Defined.net Terraform provider.
func (*Provider) Configure ¶
func (p *Provider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
Configure configures the provider with user passed options.
func (*Provider) DataSources ¶
func (p *Provider) DataSources(ctx context.Context) []func() datasource.DataSource
DataSources returns a slice of data sources available on the provider.
func (*Provider) Metadata ¶
func (p *Provider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
Metadata returns the provider's metadata.
func (*Provider) Schema ¶
func (p *Provider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
Schema returns the provider's configuration schema.
Click to show internal directories.
Click to hide internal directories.