provider

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) func() provider.Provider

func NewDatabaseDataSource

func NewDatabaseDataSource() datasource.DataSource

func NewDatabaseResource

func NewDatabaseResource() resource.Resource

func NewDatabaseTokenResource

func NewDatabaseTokenResource() resource.Resource

Types

type AuthenticationRoundTripper

type AuthenticationRoundTripper struct {
	Token   string
	Proxied http.RoundTripper
	Diag    diag.Diagnostics
}

func (AuthenticationRoundTripper) RoundTrip

func (lrt AuthenticationRoundTripper) RoundTrip(req *http.Request) (res *http.Response, e error)

type DatabaseDataSource

type DatabaseDataSource struct {
	// contains filtered or unexported fields
}

DatabaseDataSource defines the data source implementation.

func (*DatabaseDataSource) Configure

func (*DatabaseDataSource) Metadata

func (*DatabaseDataSource) Read

func (*DatabaseDataSource) Schema

type DatabaseDataSourceModel

type DatabaseDataSourceModel struct {
	OrganizationName types.String `tfsdk:"organization_name"`
	Name             types.String `tfsdk:"name"`
	Group            types.String `tfsdk:"group"`
	SizeLimit        types.String `tfsdk:"size_limit"`
	IsSchema         types.Bool   `tfsdk:"is_schema"`
	Schema           types.String `tfsdk:"schema"`

	// Computed
	DbId     types.String `tfsdk:"db_id"`
	Hostname types.String `tfsdk:"hostname"`
}

DatabaseDataSourceModel describes the data source data model.

type DatabaseResource

type DatabaseResource struct {
	// contains filtered or unexported fields
}

func (*DatabaseResource) Configure

func (*DatabaseResource) Create

func (*DatabaseResource) Delete

func (*DatabaseResource) ImportState

func (*DatabaseResource) Metadata

func (*DatabaseResource) Read

func (*DatabaseResource) Schema

func (*DatabaseResource) Update

type DatabaseResourceModel

type DatabaseResourceModel struct {
	OrganizationName types.String `tfsdk:"organization_name"`
	Name             types.String `tfsdk:"name"`
	Group            types.String `tfsdk:"group"`
	SizeLimit        types.String `tfsdk:"size_limit"`
	IsSchema         types.Bool   `tfsdk:"is_schema"`
	Schema           types.String `tfsdk:"schema"`

	// Computed
	DbId     types.String `tfsdk:"db_id"`
	Hostname types.String `tfsdk:"hostname"`
}

type DatabaseTokenResource

type DatabaseTokenResource struct {
	// contains filtered or unexported fields
}

func (*DatabaseTokenResource) Configure

func (*DatabaseTokenResource) Create

func (*DatabaseTokenResource) Delete

func (*DatabaseTokenResource) ImportState

func (*DatabaseTokenResource) Metadata

func (*DatabaseTokenResource) Read

func (*DatabaseTokenResource) Schema

func (*DatabaseTokenResource) Update

type DatabaseTokenResourceModel

type DatabaseTokenResourceModel struct {
	OrganizationName types.String `tfsdk:"organization_name"`
	DatabaseName     types.String `tfsdk:"database_name"`
	Expiration       types.String `tfsdk:"expiration"`
	Authorization    types.String `tfsdk:"authorization"`

	JWT types.String `tfsdk:"jwt"`
}

type TursoProvider

type TursoProvider struct {
	// contains filtered or unexported fields
}

TursoProvider defines the provider implementation.

func (*TursoProvider) Configure

func (*TursoProvider) DataSources

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

func (*TursoProvider) Functions

func (p *TursoProvider) Functions(ctx context.Context) []func() function.Function

func (*TursoProvider) Metadata

func (*TursoProvider) Resources

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

func (*TursoProvider) Schema

type TursoProviderModel

type TursoProviderModel struct {
	ApiToken types.String `tfsdk:"api_token"`
}

TursoProviderModel describes the provider data model.

Jump to

Keyboard shortcuts

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