provider

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: MPL-2.0 Imports: 22 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 NewCloneResource

func NewCloneResource() resource.Resource

func NewSnapshotsDataSource

func NewSnapshotsDataSource() datasource.DataSource

Types

type CloneResource

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

CloneResource defines the resource implementation.

func (*CloneResource) Configure

func (*CloneResource) Create

func (*CloneResource) Delete

func (*CloneResource) ImportState

func (*CloneResource) Metadata

func (*CloneResource) Read

func (*CloneResource) Schema

func (*CloneResource) Update

type CloneResourceModel

type CloneResourceModel struct {
	Id               types.String `tfsdk:"id"`
	SnapshotId       types.String `tfsdk:"snapshot_id"`
	Protected        types.Bool   `tfsdk:"protected"`
	DatabaseUsername types.String `tfsdk:"database_username"`
	DatabasePassword types.String `tfsdk:"database_password"`

	Port         types.String `tfsdk:"port"`
	DatabaseName types.String `tfsdk:"database_name"`
}

CloneResourceModel describes the resource data model.

type DBLabProvider

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

DBLabProvider defines the provider implementation.

func (*DBLabProvider) Configure

func (*DBLabProvider) DataSources

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

func (*DBLabProvider) Metadata

func (*DBLabProvider) Resources

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

func (*DBLabProvider) Schema

type DBLabProviderModel

type DBLabProviderModel struct {
	Endpoint          types.String `tfsdk:"endpoint"`
	VerificationToken types.String `tfsdk:"verification_token"`
}

DBLabProviderModel describes the provider data model.

type DBLabSnapshot

type DBLabSnapshot struct {
	Id   types.String `tfsdk:"id"`
	Pool types.String `tfsdk:"pool"`
}

type SnapshotsDataSource

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

SnapshotsDataSource defines the data source implementation.

func (*SnapshotsDataSource) Configure

func (*SnapshotsDataSource) Metadata

func (*SnapshotsDataSource) Read

func (*SnapshotsDataSource) Schema

type SnapshotsDataSourceModel

type SnapshotsDataSourceModel struct {
	Snapshots []DBLabSnapshot `tfsdk:"snapshots"`
}

SnapshotsDataSourceModel describes the data source data model.

Jump to

Keyboard shortcuts

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