provider

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MPL-2.0 Imports: 23 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 NewClusterDataSource

func NewClusterDataSource() datasource.DataSource

func NewClusterResource

func NewClusterResource() resource.Resource

Types

type ClusterDataSource

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

ClusterDataSource defines the data source implementation.

func (*ClusterDataSource) Configure

func (*ClusterDataSource) Metadata

func (*ClusterDataSource) Read

func (*ClusterDataSource) Schema

type ClusterDataSourceModel

type ClusterDataSourceModel struct {
	ClusterId                types.String `tfsdk:"id"`
	AccountId                types.String `tfsdk:"account_id"`
	ClusterName              types.String `tfsdk:"cluster_name"`
	Plan                     types.String `tfsdk:"plan"`
	Image                    types.String `tfsdk:"image"`
	Region                   types.String `tfsdk:"region"`
	ServerResource           types.String `tfsdk:"server_resource"`
	ClusterProvider          types.String `tfsdk:"cluster_provider"`
	Status                   types.String `tfsdk:"status"`
	ConnectEndpoint          types.String `tfsdk:"connect_endpoint"`
	PGDataDiskSize           types.String `tfsdk:"pg_data_disk_size"`
	LastUpdated              types.String `tfsdk:"last_updated"`
	DatabaseName             types.String `tfsdk:"database_name"`
	EnablePooler             types.Bool   `tfsdk:"enable_pooler"`
	EnableRestore            types.Bool   `tfsdk:"enable_restore"`
	TargetClusterID          types.String `tfsdk:"target_cluster_id"`
	BackupID                 types.String `tfsdk:"backup_id"`
	TargetTime               types.String `tfsdk:"target_time"`
	FirstRecoverabilityPoint types.String `tfsdk:"first_recoverability_point"`
	LastArchivedWALTime      types.String `tfsdk:"last_archived_wal_time"`
}

ClusterDataSourceModel describes the cluster data model.

type ClusterResource

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

ClusterResource defines the resource implementation.

func (*ClusterResource) Configure

func (*ClusterResource) Create

func (*ClusterResource) Delete

func (*ClusterResource) ImportState

func (*ClusterResource) Metadata

func (*ClusterResource) Read

func (*ClusterResource) Schema

func (*ClusterResource) Update

type ClusterResourceModel

type ClusterResourceModel struct {
	ClusterId                types.String   `tfsdk:"id"`
	AccountId                types.String   `tfsdk:"account_id"`
	ClusterName              types.String   `tfsdk:"cluster_name"`
	Plan                     types.String   `tfsdk:"plan"`
	Region                   types.String   `tfsdk:"region"`
	ServerResource           types.String   `tfsdk:"server_resource"`
	Image                    types.String   `tfsdk:"image"`
	ClusterProvider          types.String   `tfsdk:"cluster_provider"`
	Status                   types.String   `tfsdk:"status"`
	ConnectEndpoint          types.String   `tfsdk:"connect_endpoint"`
	PGDataDiskSize           types.String   `tfsdk:"pg_data_disk_size"`
	DatabaseName             types.String   `tfsdk:"database_name"`
	LastUpdated              types.String   `tfsdk:"last_updated"`
	Timeouts                 timeouts.Value `tfsdk:"timeouts"`
	EnablePooler             types.Bool     `tfsdk:"enable_pooler"`
	EnableRestore            types.Bool     `tfsdk:"enable_restore"`
	BackupID                 types.String   `tfsdk:"backup_id"`
	TargetClusterID          types.String   `tfsdk:"target_cluster_id"`
	TargetTime               types.String   `tfsdk:"target_time"`
	FirstRecoverabilityPoint types.String   `tfsdk:"first_recoverability_point"`
	LastArchivedWALTime      types.String   `tfsdk:"last_archived_wal_time"`
}

ClusterResourceModel describes the resource data model.

type PGVectorsProvider

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

PGVectorsProvider defines the provider implementation.

func (*PGVectorsProvider) Configure

func (*PGVectorsProvider) DataSources

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

func (*PGVectorsProvider) Metadata

func (*PGVectorsProvider) Resources

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

func (*PGVectorsProvider) Schema

type PGVectorsProviderModel

type PGVectorsProviderModel struct {
	ApiKey types.String `tfsdk:"api_key"`
	ApiURL types.String `tfsdk:"api_url"`
}

PGVectorsProviderModel describes the provider data model.

Jump to

Keyboard shortcuts

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