provider

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

func New

func New(clientFactory ClientFactory, version string) func() provider.Provider

New creates a Defined.net Terraform provider.

Types

type ClientFactory

type ClientFactory func(endpointURI string, token string) (definednet.Client, error)

ClientFactory creates Defined.net clients.

type Configuration

type Configuration struct {
	Token types.String `tfsdk:"token"`
}

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

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

Metadata returns the provider's metadata.

func (*Provider) Resources

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

Resources returns a slice of resources available on the provider.

func (*Provider) Schema

Schema returns the provider's configuration schema.

Jump to

Keyboard shortcuts

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