provider

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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 (*Provider) DataSources

func (p *Provider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*Provider) Metadata

func (*Provider) Resources

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

func (*Provider) Schema added in v0.1.2

Jump to

Keyboard shortcuts

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