Documentation
¶
Index ¶
- func New(version string) func() provider.Provider
- func NewBranchResource() resource.Resource
- func NewDatabaseResource() resource.Resource
- func NewEndpointResource() resource.Resource
- func NewProjectResource() resource.Resource
- func NewRoleResource() resource.Resource
- type Branch
- type BranchCreateInput
- type BranchCreateInputBranch
- type BranchEndpointListOutput
- type BranchListOutput
- type BranchOutput
- 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 BranchResourceEndpointModel
- type BranchResourceModel
- type BranchUpdateInput
- type BranchUpdateInputBranch
- type Database
- type DatabaseCreateInput
- type DatabaseCreateInputDatabase
- type DatabaseOutput
- type DatabaseResource
- func (r *DatabaseResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *DatabaseResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *DatabaseResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *DatabaseResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *DatabaseResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *DatabaseResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *DatabaseResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *DatabaseResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type DatabaseResourceModel
- type DatabaseUpdateInput
- type DatabaseUpdateInputDatabase
- type Endpoint
- type EndpointCreateInput
- type EndpointCreateInputEndpoint
- type EndpointOutput
- type EndpointResource
- func (r *EndpointResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *EndpointResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *EndpointResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *EndpointResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *EndpointResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *EndpointResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *EndpointResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *EndpointResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type EndpointResourceModel
- type EndpointUpdateInput
- type EndpointUpdateInputEndpoint
- type NeonProvider
- func (p *NeonProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *NeonProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *NeonProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *NeonProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *NeonProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type NeonProviderModel
- type Operation
- type OperationListOutput
- type Project
- type ProjectCreateInput
- type ProjectCreateInputProject
- type ProjectCreateInputProjectBranch
- type ProjectCreateInputProjectDefaultEndpointSettings
- type ProjectCreateOutput
- type ProjectOutput
- 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 ProjectResourceBranchEndpointModel
- type ProjectResourceBranchModel
- type ProjectResourceModel
- type ProjectUpdateInput
- type ProjectUpdateInputProject
- type Role
- type RoleCreateInput
- type RoleCreateInputRole
- type RoleOutput
- type RolePasswordOutput
- type RoleResource
- func (r *RoleResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *RoleResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *RoleResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *RoleResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *RoleResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *RoleResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *RoleResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *RoleResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type RoleResourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBranchResource ¶ added in v0.1.3
func NewDatabaseResource ¶
func NewEndpointResource ¶ added in v0.1.3
func NewProjectResource ¶
func NewRoleResource ¶
Types ¶
type BranchCreateInput ¶ added in v0.1.3
type BranchCreateInput struct {
Branch BranchCreateInputBranch `json:"branch"`
}
type BranchCreateInputBranch ¶ added in v0.1.3
type BranchEndpointListOutput ¶ added in v0.1.3
type BranchEndpointListOutput struct {
Endpoints []Endpoint `json:"endpoints"`
}
type BranchListOutput ¶
type BranchListOutput struct {
Branches []Branch `json:"branches"`
}
type BranchOutput ¶
type BranchOutput struct {
Branch Branch `json:"branch"`
}
type BranchResource ¶ added in v0.1.3
type BranchResource struct {
// contains filtered or unexported fields
}
func (*BranchResource) Configure ¶ added in v0.1.3
func (r *BranchResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*BranchResource) Create ¶ added in v0.1.3
func (r *BranchResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*BranchResource) Delete ¶ added in v0.1.3
func (r *BranchResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*BranchResource) ImportState ¶ added in v0.1.3
func (r *BranchResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*BranchResource) Metadata ¶ added in v0.1.3
func (r *BranchResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*BranchResource) Read ¶ added in v0.1.3
func (r *BranchResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*BranchResource) Schema ¶ added in v0.1.3
func (r *BranchResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*BranchResource) Update ¶ added in v0.1.3
func (r *BranchResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type BranchResourceEndpointModel ¶ added in v0.1.3
type BranchResourceModel ¶ added in v0.1.3
type BranchUpdateInput ¶
type BranchUpdateInput struct {
Branch BranchUpdateInputBranch `json:"branch"`
}
type BranchUpdateInputBranch ¶
type BranchUpdateInputBranch struct {
Name string `json:"name"`
}
type DatabaseCreateInput ¶
type DatabaseCreateInput struct {
Database DatabaseCreateInputDatabase `json:"database"`
}
type DatabaseOutput ¶
type DatabaseOutput struct {
Database Database `json:"database"`
}
type DatabaseResource ¶
type DatabaseResource struct {
// contains filtered or unexported fields
}
func (*DatabaseResource) Configure ¶
func (r *DatabaseResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*DatabaseResource) Create ¶
func (r *DatabaseResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*DatabaseResource) Delete ¶
func (r *DatabaseResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*DatabaseResource) ImportState ¶
func (r *DatabaseResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*DatabaseResource) Metadata ¶
func (r *DatabaseResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*DatabaseResource) Read ¶
func (r *DatabaseResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*DatabaseResource) Schema ¶
func (r *DatabaseResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*DatabaseResource) Update ¶
func (r *DatabaseResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type DatabaseResourceModel ¶
type DatabaseUpdateInput ¶
type DatabaseUpdateInput struct {
Database DatabaseUpdateInputDatabase `json:"database"`
}
type Endpoint ¶
type Endpoint struct { Id string `json:"id"` Host string `json:"host"` BranchId string `json:"branch_id"` ProjectId string `json:"project_id"` RegionId string `json:"region_id"` AutoscalingLimitMinCu float64 `json:"autoscaling_limit_min_cu"` AutoscalingLimitMaxCu float64 `json:"autoscaling_limit_max_cu"` ComputeProvisioner string `json:"provisioner"` SuspendTimeoutSeconds int64 `json:"suspend_timeout_seconds"` Type string `json:"type"` CurrentState string `json:"current_state"` }
type EndpointCreateInput ¶ added in v0.1.3
type EndpointCreateInput struct {
Endpoint EndpointCreateInputEndpoint `json:"endpoint"`
}
type EndpointCreateInputEndpoint ¶ added in v0.1.3
type EndpointOutput ¶
type EndpointOutput struct {
Endpoint Endpoint `json:"endpoint"`
}
type EndpointResource ¶ added in v0.1.3
type EndpointResource struct {
// contains filtered or unexported fields
}
func (*EndpointResource) Configure ¶ added in v0.1.3
func (r *EndpointResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*EndpointResource) Create ¶ added in v0.1.3
func (r *EndpointResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*EndpointResource) Delete ¶ added in v0.1.3
func (r *EndpointResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*EndpointResource) ImportState ¶ added in v0.1.3
func (r *EndpointResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*EndpointResource) Metadata ¶ added in v0.1.3
func (r *EndpointResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*EndpointResource) Read ¶ added in v0.1.3
func (r *EndpointResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*EndpointResource) Schema ¶ added in v0.1.3
func (r *EndpointResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*EndpointResource) Update ¶ added in v0.1.3
func (r *EndpointResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type EndpointResourceModel ¶ added in v0.1.3
type EndpointResourceModel struct { Id types.String `tfsdk:"id"` BranchId types.String `tfsdk:"branch_id"` ProjectId types.String `tfsdk:"project_id"` Type types.String `tfsdk:"type"` Host types.String `tfsdk:"host"` MinCu types.Float64 `tfsdk:"min_cu"` MaxCu types.Float64 `tfsdk:"max_cu"` ComputeProvisioner types.String `tfsdk:"compute_provisioner"` SuspendTimeout types.Int64 `tfsdk:"suspend_timeout"` }
type EndpointUpdateInput ¶
type EndpointUpdateInput struct {
Endpoint EndpointUpdateInputEndpoint `json:"endpoint"`
}
type NeonProvider ¶
type NeonProvider struct {
// contains filtered or unexported fields
}
func (*NeonProvider) Configure ¶
func (p *NeonProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*NeonProvider) DataSources ¶
func (p *NeonProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*NeonProvider) Metadata ¶
func (p *NeonProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*NeonProvider) Resources ¶
func (p *NeonProvider) Resources(ctx context.Context) []func() resource.Resource
func (*NeonProvider) Schema ¶
func (p *NeonProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type NeonProviderModel ¶
type OperationListOutput ¶
type OperationListOutput struct {
Operations []Operation `json:"operations"`
}
type ProjectCreateInput ¶
type ProjectCreateInput struct {
Project ProjectCreateInputProject `json:"project"`
}
type ProjectCreateInputProject ¶
type ProjectCreateInputProject struct { Name string `json:"name"` RegionId string `json:"region_id"` OrgId *string `json:"org_id,omitempty"` PgVersion int64 `json:"pg_version"` StorePasswords bool `json:"store_passwords"` Branch ProjectCreateInputProjectBranch `json:"branch"` DefaultEndpointSettings ProjectCreateInputProjectDefaultEndpointSettings `json:"default_endpoint_settings"` }
type ProjectCreateInputProjectBranch ¶
type ProjectCreateInputProjectBranch struct {
Name string `json:"name"`
}
type ProjectCreateInputProjectDefaultEndpointSettings ¶ added in v0.1.3
type ProjectCreateOutput ¶
type ProjectOutput ¶
type ProjectOutput struct {
Project Project `json:"project"`
}
type ProjectResource ¶
type ProjectResource struct {
// contains filtered or unexported fields
}
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 ProjectResourceBranchEndpointModel ¶
type ProjectResourceBranchEndpointModel struct { Id types.String `tfsdk:"id"` Host types.String `tfsdk:"host"` MinCu types.Float64 `tfsdk:"min_cu"` MaxCu types.Float64 `tfsdk:"max_cu"` ComputeProvisioner types.String `tfsdk:"compute_provisioner"` SuspendTimeout types.Int64 `tfsdk:"suspend_timeout"` }
type ProjectResourceModel ¶
type ProjectResourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` PlatformId types.String `tfsdk:"platform_id"` RegionId types.String `tfsdk:"region_id"` OrgId types.String `tfsdk:"org_id"` PgVersion types.Int64 `tfsdk:"pg_version"` Branch types.Object `tfsdk:"branch"` }
type ProjectUpdateInput ¶
type ProjectUpdateInput struct {
Project ProjectUpdateInputProject `json:"project"`
}
type ProjectUpdateInputProject ¶
type ProjectUpdateInputProject struct {
Name string `json:"name"`
}
type RoleCreateInput ¶
type RoleCreateInput struct {
Role RoleCreateInputRole `json:"role"`
}
type RoleCreateInputRole ¶
type RoleCreateInputRole struct {
Name string `json:"name"`
}
type RoleOutput ¶
type RoleOutput struct {
Role Role `json:"role"`
}
type RolePasswordOutput ¶ added in v0.1.4
type RolePasswordOutput struct {
Password string `json:"password"`
}
type RoleResource ¶
type RoleResource struct {
// contains filtered or unexported fields
}
func (*RoleResource) Configure ¶
func (r *RoleResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*RoleResource) Create ¶
func (r *RoleResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*RoleResource) Delete ¶
func (r *RoleResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*RoleResource) ImportState ¶
func (r *RoleResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*RoleResource) Metadata ¶
func (r *RoleResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*RoleResource) Read ¶
func (r *RoleResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*RoleResource) Schema ¶
func (r *RoleResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*RoleResource) Update ¶
func (r *RoleResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Click to show internal directories.
Click to hide internal directories.