provider

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MPL-2.0 Imports: 24 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 NewBranchDataSource

func NewBranchDataSource() datasource.DataSource

func NewBranchResource added in v1.1.0

func NewBranchResource() resource.Resource

func NewPoolerDataSource added in v1.2.0

func NewPoolerDataSource() datasource.DataSource

func NewProjectResource

func NewProjectResource() resource.Resource

func NewSettingsResource

func NewSettingsResource() resource.Resource

func Ptr added in v1.4.0

func Ptr[T any](v T) *T

Types

type BranchDataSource

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

BranchDataSource defines the data source implementation.

func (*BranchDataSource) Configure

func (*BranchDataSource) Metadata

func (*BranchDataSource) Read

func (*BranchDataSource) Schema

type BranchDataSourceModel

type BranchDataSourceModel struct {
	ProjectRef types.String `tfsdk:"project_ref"`
	GitBranch  types.String `tfsdk:"git_branch"`
	Id         types.String `tfsdk:"id"`
}

BranchDataSourceModel describes the data source data model.

type BranchDatabaseModel added in v1.1.0

type BranchDatabaseModel struct {
	Host      types.String `tfsdk:"host"`
	Password  types.String `tfsdk:"password"`
	Port      types.Int64  `tfsdk:"port"`
	User      types.String `tfsdk:"user"`
	JwtSecret types.String `tfsdk:"jwt_secret"`
	Version   types.String `tfsdk:"version"`
	Status    types.String `tfsdk:"status"`
	Id        types.String `tfsdk:"id"`
}

func (BranchDatabaseModel) AttributeTypes added in v1.1.0

func (m BranchDatabaseModel) AttributeTypes() map[string]attr.Type

type BranchResource added in v1.1.0

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

BranchResource defines the resource implementation.

func (*BranchResource) Configure added in v1.1.0

func (*BranchResource) Create added in v1.1.0

func (*BranchResource) Delete added in v1.1.0

func (*BranchResource) ImportState added in v1.1.0

func (*BranchResource) Metadata added in v1.1.0

func (*BranchResource) Read added in v1.1.0

func (*BranchResource) Schema added in v1.1.0

func (*BranchResource) Update added in v1.1.0

type BranchResourceModel added in v1.1.0

type BranchResourceModel struct {
	GitBranch        types.String `tfsdk:"git_branch"`
	ParentProjectRef types.String `tfsdk:"parent_project_ref"`
	Region           types.String `tfsdk:"region"`
	Database         types.Object `tfsdk:"database"`
	Id               types.String `tfsdk:"id"`
}

BranchResourceModel describes the resource data model.

type LocalAuthConfig added in v1.4.2

type LocalAuthConfig struct {
	api.UpdateAuthConfigBody
}

type NetworkConfig added in v1.4.0

type NetworkConfig struct {
	Restrictions []string `json:"restrictions,omitempty"`
}

type PoolerDataSource added in v1.2.0

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

PoolerDataSource defines the data source implementation.

func (*PoolerDataSource) Configure added in v1.2.0

func (*PoolerDataSource) Metadata added in v1.2.0

func (*PoolerDataSource) Read added in v1.2.0

func (*PoolerDataSource) Schema added in v1.2.0

type PoolerDataSourceModel added in v1.2.0

type PoolerDataSourceModel struct {
	ProjectRef types.String  `tfsdk:"project_ref"`
	Url        types.MapType `tfsdk:"url"`
}

PoolerDataSourceModel describes the data source data model.

type ProjectResource

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

ProjectResource defines the resource implementation.

func (*ProjectResource) Configure

func (*ProjectResource) Create

func (*ProjectResource) Delete

func (*ProjectResource) ImportState

func (*ProjectResource) Metadata

func (*ProjectResource) Read

func (*ProjectResource) Schema

func (*ProjectResource) Update

type ProjectResourceModel

type ProjectResourceModel struct {
	OrganizationId   types.String `tfsdk:"organization_id"`
	Name             types.String `tfsdk:"name"`
	DatabasePassword types.String `tfsdk:"database_password"`
	Region           types.String `tfsdk:"region"`
	InstanceSize     types.String `tfsdk:"instance_size"`
	Id               types.String `tfsdk:"id"`
}

ProjectResourceModel describes the resource data model.

type SettingsResource

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

SettingsResource defines the resource implementation.

func (*SettingsResource) Configure

func (*SettingsResource) Create

func (*SettingsResource) Delete

func (*SettingsResource) ImportState

func (*SettingsResource) Metadata

func (*SettingsResource) Read

func (*SettingsResource) Schema

func (*SettingsResource) Update

type SettingsResourceModel

type SettingsResourceModel struct {
	ProjectRef types.String         `tfsdk:"project_ref"`
	Database   jsontypes.Normalized `tfsdk:"database"`
	Pooler     jsontypes.Normalized `tfsdk:"pooler"`
	Network    jsontypes.Normalized `tfsdk:"network"`
	Storage    jsontypes.Normalized `tfsdk:"storage"`
	Auth       jsontypes.Normalized `tfsdk:"auth"`
	Api        jsontypes.Normalized `tfsdk:"api"`
	Id         types.String         `tfsdk:"id"`
}

SettingsResourceModel describes the resource data model.

type SupabaseProvider

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

SupabaseProvider defines the provider implementation.

func (*SupabaseProvider) Configure

func (*SupabaseProvider) DataSources

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

func (*SupabaseProvider) Metadata

func (*SupabaseProvider) Resources

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

func (*SupabaseProvider) Schema

type SupabaseProviderModel

type SupabaseProviderModel struct {
	Endpoint    types.String `tfsdk:"endpoint"`
	AccessToken types.String `tfsdk:"access_token"`
}

SupabaseProviderModel describes the provider data model.

Jump to

Keyboard shortcuts

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