Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewBranchDataSource() datasource.DataSource
- func NewBranchResource() resource.Resource
- func NewPoolerDataSource() datasource.DataSource
- func NewProjectResource() resource.Resource
- func NewSettingsResource() resource.Resource
- func Ptr[T any](v T) *T
- type BranchDataSource
- func (d *BranchDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *BranchDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *BranchDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *BranchDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type BranchDataSourceModel
- type BranchDatabaseModel
- type BranchResource
- func (r *BranchResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *BranchResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *BranchResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *BranchResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *BranchResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *BranchResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *BranchResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *BranchResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type BranchResourceModel
- type LocalAuthConfig
- type NetworkConfig
- type PoolerDataSource
- func (d *PoolerDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *PoolerDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *PoolerDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *PoolerDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type PoolerDataSourceModel
- type ProjectResource
- func (r *ProjectResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ProjectResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ProjectResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ProjectResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ProjectResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ProjectResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ProjectResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ProjectResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ProjectResourceModel
- type SettingsResource
- func (r *SettingsResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *SettingsResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *SettingsResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *SettingsResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *SettingsResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *SettingsResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *SettingsResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *SettingsResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type SettingsResourceModel
- type SupabaseProvider
- func (p *SupabaseProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *SupabaseProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *SupabaseProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *SupabaseProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *SupabaseProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type SupabaseProviderModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBranchDataSource ¶
func NewBranchDataSource() datasource.DataSource
func NewBranchResource ¶ added in v1.1.0
func NewPoolerDataSource ¶ added in v1.2.0
func NewPoolerDataSource() datasource.DataSource
func NewProjectResource ¶
func NewSettingsResource ¶
Types ¶
type BranchDataSource ¶
type BranchDataSource struct {
// contains filtered or unexported fields
}
BranchDataSource defines the data source implementation.
func (*BranchDataSource) Configure ¶
func (d *BranchDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*BranchDataSource) Metadata ¶
func (d *BranchDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*BranchDataSource) Read ¶
func (d *BranchDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*BranchDataSource) Schema ¶
func (d *BranchDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
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 (r *BranchResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*BranchResource) Create ¶ added in v1.1.0
func (r *BranchResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*BranchResource) Delete ¶ added in v1.1.0
func (r *BranchResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*BranchResource) ImportState ¶ added in v1.1.0
func (r *BranchResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*BranchResource) Metadata ¶ added in v1.1.0
func (r *BranchResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*BranchResource) Read ¶ added in v1.1.0
func (r *BranchResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*BranchResource) Schema ¶ added in v1.1.0
func (r *BranchResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*BranchResource) Update ¶ added in v1.1.0
func (r *BranchResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 (d *PoolerDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*PoolerDataSource) Metadata ¶ added in v1.2.0
func (d *PoolerDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*PoolerDataSource) Read ¶ added in v1.2.0
func (d *PoolerDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*PoolerDataSource) Schema ¶ added in v1.2.0
func (d *PoolerDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
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 (r *ProjectResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ProjectResource) Create ¶
func (r *ProjectResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ProjectResource) Delete ¶
func (r *ProjectResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ProjectResource) ImportState ¶
func (r *ProjectResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*ProjectResource) Metadata ¶
func (r *ProjectResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ProjectResource) Read ¶
func (r *ProjectResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ProjectResource) Schema ¶
func (r *ProjectResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ProjectResource) Update ¶
func (r *ProjectResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 (r *SettingsResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*SettingsResource) Create ¶
func (r *SettingsResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*SettingsResource) Delete ¶
func (r *SettingsResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*SettingsResource) ImportState ¶
func (r *SettingsResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*SettingsResource) Metadata ¶
func (r *SettingsResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*SettingsResource) Read ¶
func (r *SettingsResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*SettingsResource) Schema ¶
func (r *SettingsResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*SettingsResource) Update ¶
func (r *SettingsResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 (p *SupabaseProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*SupabaseProvider) DataSources ¶
func (p *SupabaseProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*SupabaseProvider) Metadata ¶
func (p *SupabaseProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*SupabaseProvider) Resources ¶
func (p *SupabaseProvider) Resources(ctx context.Context) []func() resource.Resource
func (*SupabaseProvider) Schema ¶
func (p *SupabaseProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
Click to show internal directories.
Click to hide internal directories.