Documentation ¶
Index ¶
- Constants
- func BackupRetentionPeriodValidator() validator.String
- func NewAnalyticsClusterDataSource() datasource.DataSource
- func NewAnalyticsClusterResource() resource.Resource
- func NewCSPTagDataSource() datasource.DataSource
- func NewCSPTagResource() resource.Resource
- func NewClusterDataSource() datasource.DataSource
- func NewClusterResource() resource.Resource
- func NewFAReplicaDataSource() datasource.DataSource
- func NewFAReplicaResource() resource.Resource
- func NewFrameworkProvider(version string) func() provider.Provider
- func NewPgdDataSource() datasource.DataSource
- func NewPgdResource() resource.Resource
- func NewProjectResource() resource.Resource
- func NewProjectsDataSource() datasource.DataSource
- func NewRegionResource() resource.Resource
- func NewRegionsDataSource() datasource.DataSource
- func NewSDKProvider(version string) func() *sdkschema.Provider
- func NewTagDataSource() datasource.DataSource
- func NewTagResource() resource.Resource
- func PgdSchema(ctx context.Context) schema.Schema
- func ProjectIdValidator() validator.String
- func StringSliceToList(items []string) types.List
- func StringSliceToSet(items *[]string) types.Set
- func TdeActionInfo(provider string) string
- type AWSConnectionData
- type AWSConnectionResource
- func (a *AWSConnectionResource) Create(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics
- func (a *AWSConnectionResource) Delete(ctx context.Context, data *schema.ResourceData, i interface{}) diag.Diagnostics
- func (a *AWSConnectionResource) Read(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics
- func (a *AWSConnectionResource) Schema() *schema.Resource
- func (a *AWSConnectionResource) Update(ctx context.Context, data *schema.ResourceData, meta any) diag.Diagnostics
- type AllowedIpRangesResourceModel
- type AzureConnectionResource
- func (a *AzureConnectionResource) Create(ctx context.Context, data *schema.ResourceData, meta any) diag.Diagnostics
- func (a *AzureConnectionResource) Delete(ctx context.Context, data *schema.ResourceData, i interface{}) diag.Diagnostics
- func (a *AzureConnectionResource) Read(ctx context.Context, data *schema.ResourceData, i interface{}) diag.Diagnostics
- func (a *AzureConnectionResource) Schema() *schema.Resource
- func (a *AzureConnectionResource) Update(ctx context.Context, data *schema.ResourceData, i interface{}) diag.Diagnostics
- type CSPTag
- type CSPTagResourceModel
- type ClusterArchitectureResourceModel
- type ClusterResourceModel
- type FAReplicaData
- func (c *FAReplicaData) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (c *FAReplicaData) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (c *FAReplicaData) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (c *FAReplicaData) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type FAReplicaDataModel
- type FAReplicaResource
- func (r *FAReplicaResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *FAReplicaResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *FAReplicaResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r FAReplicaResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *FAReplicaResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *FAReplicaResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *FAReplicaResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *FAReplicaResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type FAReplicaResourceModel
- type PGD
- type PGDDataSourceData
- type PgBouncerModel
- type PgBouncerSettingsModel
- type PgConfigResourceModel
- type Project
- type Region
- type StorageResourceModel
- type TagResourceModel
- type TransparentDataEncryptionModel
Constants ¶
View Source
const DefaultAPIURL = "https://portal.biganimal.com/api/v3"
Variables ¶
This section is empty.
Functions ¶
func BackupRetentionPeriodValidator ¶ added in v0.6.1
Backup Retention Period should be a value between one of the * 1d and 180d * 1w and 25w * 1m and 6m
func NewAnalyticsClusterDataSource ¶ added in v0.11.0
func NewAnalyticsClusterDataSource() datasource.DataSource
func NewAnalyticsClusterResource ¶ added in v0.11.0
func NewCSPTagDataSource ¶ added in v1.1.0
func NewCSPTagDataSource() datasource.DataSource
func NewCSPTagResource ¶ added in v1.1.0
func NewClusterDataSource ¶ added in v0.6.0
func NewClusterDataSource() datasource.DataSource
func NewClusterResource ¶
func NewFAReplicaDataSource ¶ added in v1.0.0
func NewFAReplicaDataSource() datasource.DataSource
func NewFAReplicaResource ¶ added in v0.4.0
func NewFrameworkProvider ¶ added in v0.5.0
func NewPgdDataSource ¶ added in v0.5.0
func NewPgdDataSource() datasource.DataSource
func NewPgdResource ¶ added in v0.5.0
func NewProjectResource ¶ added in v0.3.0
func NewProjectsDataSource ¶ added in v0.5.0
func NewProjectsDataSource() datasource.DataSource
func NewRegionResource ¶
func NewRegionsDataSource ¶ added in v0.5.0
func NewRegionsDataSource() datasource.DataSource
NewRegionsDataSource is a helper function to simplify the provider implementation.
func NewSDKProvider ¶ added in v0.5.0
func NewTagDataSource ¶ added in v1.1.0
func NewTagDataSource() datasource.DataSource
func NewTagResource ¶ added in v1.1.0
func ProjectIdValidator ¶ added in v0.5.0
Project_id should start with prj_ and then 16 alphanumeric characters.
func StringSliceToList ¶ added in v0.6.0
func StringSliceToSet ¶ added in v0.6.0
func TdeActionInfo ¶ added in v1.0.0
Types ¶
type AWSConnectionData ¶ added in v0.4.0
type AWSConnectionData struct{}
func NewAWSConnectionData ¶ added in v0.4.0
func NewAWSConnectionData() *AWSConnectionData
func (*AWSConnectionData) Read ¶ added in v0.4.0
func (d *AWSConnectionData) Read(ctx context.Context, data *schema.ResourceData, meta interface{}) diag.Diagnostics
func (*AWSConnectionData) Schema ¶ added in v0.4.0
func (d *AWSConnectionData) Schema() *schema.Resource
type AWSConnectionResource ¶ added in v0.4.0
type AWSConnectionResource struct{}
func NewAWSConnectionResource ¶ added in v0.4.0
func NewAWSConnectionResource() *AWSConnectionResource
func (*AWSConnectionResource) Create ¶ added in v0.4.0
func (a *AWSConnectionResource) Create(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics
func (*AWSConnectionResource) Delete ¶ added in v0.4.0
func (a *AWSConnectionResource) Delete(ctx context.Context, data *schema.ResourceData, i interface{}) diag.Diagnostics
func (*AWSConnectionResource) Read ¶ added in v0.4.0
func (a *AWSConnectionResource) Read(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics
func (*AWSConnectionResource) Schema ¶ added in v0.4.0
func (a *AWSConnectionResource) Schema() *schema.Resource
func (*AWSConnectionResource) Update ¶ added in v0.4.0
func (a *AWSConnectionResource) Update(ctx context.Context, data *schema.ResourceData, meta any) diag.Diagnostics
type AllowedIpRangesResourceModel ¶ added in v0.6.0
type AzureConnectionResource ¶ added in v0.4.0
type AzureConnectionResource struct{}
func NewAzureConnectionResource ¶ added in v0.4.0
func NewAzureConnectionResource() *AzureConnectionResource
func (*AzureConnectionResource) Create ¶ added in v0.4.0
func (a *AzureConnectionResource) Create(ctx context.Context, data *schema.ResourceData, meta any) diag.Diagnostics
func (*AzureConnectionResource) Delete ¶ added in v0.4.0
func (a *AzureConnectionResource) Delete(ctx context.Context, data *schema.ResourceData, i interface{}) diag.Diagnostics
func (*AzureConnectionResource) Read ¶ added in v0.4.0
func (a *AzureConnectionResource) Read(ctx context.Context, data *schema.ResourceData, i interface{}) diag.Diagnostics
func (*AzureConnectionResource) Schema ¶ added in v0.4.0
func (a *AzureConnectionResource) Schema() *schema.Resource
func (*AzureConnectionResource) Update ¶ added in v0.4.0
func (a *AzureConnectionResource) Update(ctx context.Context, data *schema.ResourceData, i interface{}) diag.Diagnostics
type CSPTagResourceModel ¶ added in v1.1.0
type CSPTagResourceModel struct { ID types.String `tfsdk:"id"` ProjectID types.String `tfsdk:"project_id"` CloudProviderID types.String `tfsdk:"cloud_provider_id"` AddTags []addTag `tfsdk:"add_tags"` DeleteTags types.List `tfsdk:"delete_tags"` EditTags []CSPTag `tfsdk:"edit_tags"` CSPTags types.List `tfsdk:"csp_tags"` Timeouts timeouts.Value `tfsdk:"timeouts"` }
type ClusterArchitectureResourceModel ¶ added in v0.6.0
type ClusterResourceModel ¶ added in v0.6.0
type ClusterResourceModel struct { ID types.String `tfsdk:"id"` CspAuth types.Bool `tfsdk:"csp_auth"` Region types.String `tfsdk:"region"` InstanceType types.String `tfsdk:"instance_type"` ReadOnlyConnections types.Bool `tfsdk:"read_only_connections"` ResizingPvc types.List `tfsdk:"resizing_pvc"` MetricsUrl *string `tfsdk:"metrics_url"` ClusterId *string `tfsdk:"cluster_id"` Phase types.String `tfsdk:"phase"` ClusterArchitecture *ClusterArchitectureResourceModel `tfsdk:"cluster_architecture"` ConnectionUri types.String `tfsdk:"connection_uri"` ClusterName types.String `tfsdk:"cluster_name"` RoConnectionUri types.String `tfsdk:"ro_connection_uri"` Storage *StorageResourceModel `tfsdk:"storage"` PgConfig []PgConfigResourceModel `tfsdk:"pg_config"` FirstRecoverabilityPointAt types.String `tfsdk:"first_recoverability_point_at"` ProjectId string `tfsdk:"project_id"` LogsUrl *string `tfsdk:"logs_url"` BackupRetentionPeriod types.String `tfsdk:"backup_retention_period"` ClusterType *string `tfsdk:"cluster_type"` CloudProvider types.String `tfsdk:"cloud_provider"` PgType types.String `tfsdk:"pg_type"` Password types.String `tfsdk:"password"` FarawayReplicaIds types.Set `tfsdk:"faraway_replica_ids"` PgVersion types.String `tfsdk:"pg_version"` PrivateNetworking types.Bool `tfsdk:"private_networking"` AllowedIpRanges []AllowedIpRangesResourceModel `tfsdk:"allowed_ip_ranges"` CreatedAt types.String `tfsdk:"created_at"` MaintenanceWindow *commonTerraform.MaintenanceWindow `tfsdk:"maintenance_window"` ServiceAccountIds types.Set `tfsdk:"service_account_ids"` PeAllowedPrincipalIds types.Set `tfsdk:"pe_allowed_principal_ids"` SuperuserAccess types.Bool `tfsdk:"superuser_access"` Pgvector types.Bool `tfsdk:"pgvector"` PostGIS types.Bool `tfsdk:"post_gis"` PgBouncer *PgBouncerModel `tfsdk:"pg_bouncer"` Pause types.Bool `tfsdk:"pause"` TransparentDataEncryption *TransparentDataEncryptionModel `tfsdk:"transparent_data_encryption"` PgIdentity types.String `tfsdk:"pg_identity"` TransparentDataEncryptionAction types.String `tfsdk:"transparent_data_encryption_action"` VolumeSnapshot types.Bool `tfsdk:"volume_snapshot_backup"` Tags []commonTerraform.Tag `tfsdk:"tags"` ServiceName types.String `tfsdk:"service_name"` Timeouts timeouts.Value `tfsdk:"timeouts"` }
type FAReplicaData ¶ added in v0.4.0
type FAReplicaData struct {
// contains filtered or unexported fields
}
func (*FAReplicaData) Configure ¶ added in v1.0.0
func (c *FAReplicaData) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure adds the provider configured client to the data source.
func (*FAReplicaData) Metadata ¶ added in v1.0.0
func (c *FAReplicaData) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*FAReplicaData) Read ¶ added in v0.4.0
func (c *FAReplicaData) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*FAReplicaData) Schema ¶ added in v0.4.0
func (c *FAReplicaData) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type FAReplicaDataModel ¶ added in v1.0.0
type FAReplicaDataModel struct {
FAReplicaResourceModel
}
type FAReplicaResource ¶ added in v0.4.0
type FAReplicaResource struct {
// contains filtered or unexported fields
}
func (*FAReplicaResource) Configure ¶ added in v1.0.0
func (r *FAReplicaResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*FAReplicaResource) Create ¶ added in v0.4.0
func (r *FAReplicaResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*FAReplicaResource) Delete ¶ added in v0.4.0
func (r *FAReplicaResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (FAReplicaResource) ImportState ¶ added in v1.0.0
func (r FAReplicaResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*FAReplicaResource) Metadata ¶ added in v1.0.0
func (r *FAReplicaResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*FAReplicaResource) Read ¶ added in v0.4.0
func (r *FAReplicaResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*FAReplicaResource) Schema ¶ added in v0.4.0
func (r *FAReplicaResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*FAReplicaResource) Update ¶ added in v0.4.0
func (r *FAReplicaResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type FAReplicaResourceModel ¶ added in v1.0.0
type FAReplicaResourceModel struct { ID types.String `tfsdk:"id"` CspAuth types.Bool `tfsdk:"csp_auth"` Region types.String `tfsdk:"region"` InstanceType types.String `tfsdk:"instance_type"` ResizingPvc types.List `tfsdk:"resizing_pvc"` MetricsUrl *string `tfsdk:"metrics_url"` ClusterId *string `tfsdk:"cluster_id"` ReplicaSourceClusterId *string `tfsdk:"source_cluster_id"` Phase types.String `tfsdk:"phase"` ConnectionUri types.String `tfsdk:"connection_uri"` ClusterName types.String `tfsdk:"cluster_name"` Storage *StorageResourceModel `tfsdk:"storage"` PgConfig []PgConfigResourceModel `tfsdk:"pg_config"` ProjectId string `tfsdk:"project_id"` LogsUrl *string `tfsdk:"logs_url"` BackupRetentionPeriod types.String `tfsdk:"backup_retention_period"` PrivateNetworking types.Bool `tfsdk:"private_networking"` AllowedIpRanges []AllowedIpRangesResourceModel `tfsdk:"allowed_ip_ranges"` CreatedAt types.String `tfsdk:"created_at"` ServiceAccountIds types.Set `tfsdk:"service_account_ids"` PeAllowedPrincipalIds types.Set `tfsdk:"pe_allowed_principal_ids"` ClusterArchitecture *ClusterArchitectureResourceModel `tfsdk:"cluster_architecture"` ClusterType *string `tfsdk:"cluster_type"` PgType types.String `tfsdk:"pg_type"` PgVersion types.String `tfsdk:"pg_version"` CloudProvider types.String `tfsdk:"cloud_provider"` TransparentDataEncryption *TransparentDataEncryptionModel `tfsdk:"transparent_data_encryption"` PgIdentity types.String `tfsdk:"pg_identity"` TransparentDataEncryptionAction types.String `tfsdk:"transparent_data_encryption_action"` VolumeSnapshot types.Bool `tfsdk:"volume_snapshot_backup"` Tags []commonTerraform.Tag `tfsdk:"tags"` Timeouts timeouts.Value `tfsdk:"timeouts"` }
type PGD ¶ added in v0.5.0
type PGD struct { ID *string `tfsdk:"id"` ProjectId string `tfsdk:"project_id"` ClusterId *string `tfsdk:"cluster_id"` ClusterName *string `tfsdk:"cluster_name"` MostRecent *bool `tfsdk:"most_recent"` Password *string `tfsdk:"password"` Timeouts timeouts.Value `tfsdk:"timeouts"` Pause types.Bool `tfsdk:"pause"` Tags []commonTerraform.Tag `tfsdk:"tags"` DataGroups []terraform.DataGroup `tfsdk:"data_groups"` WitnessGroups []terraform.WitnessGroup `tfsdk:"witness_groups"` }
type PGDDataSourceData ¶ added in v0.5.0
type PGDDataSourceData struct { ID *string `tfsdk:"id"` ProjectID string `tfsdk:"project_id"` ClusterID *string `tfsdk:"cluster_id"` ClusterName string `tfsdk:"cluster_name"` MostRecent *bool `tfsdk:"most_recent"` DataGroups []terraform.DataGroup `tfsdk:"data_groups"` WitnessGroups []terraform.WitnessGroup `tfsdk:"witness_groups"` }
type PgBouncerModel ¶ added in v0.7.0
type PgBouncerSettingsModel ¶ added in v0.7.0
type PgConfigResourceModel ¶ added in v0.6.0
type Project ¶ added in v0.5.0
type Project struct { ID *string `tfsdk:"id"` ProjectID *string `tfsdk:"project_id"` ProjectName *string `tfsdk:"project_name"` UserCount *int `tfsdk:"user_count"` ClusterCount *int `tfsdk:"cluster_count"` CloudProviders []cloudProvider `tfsdk:"cloud_providers"` Tags []commonTerraform.Tag `tfsdk:"tags"` }
type Region ¶ added in v0.5.0
type Region struct { ProjectID *string `tfsdk:"project_id"` CloudProvider *string `tfsdk:"cloud_provider"` RegionID *string `tfsdk:"region_id"` ID *string `tfsdk:"id"` Name *string `tfsdk:"name"` Continent *string `tfsdk:"continent"` Status *string `tfsdk:"status"` Tags []commonTerraform.Tag `tfsdk:"tags"` Timeouts timeouts.Value `tfsdk:"timeouts"` }
type StorageResourceModel ¶ added in v0.6.0
type TagResourceModel ¶ added in v1.1.0
Source Files ¶
- common.go
- data_source_analytics_cluster.go
- data_source_aws_connection.go
- data_source_cluster.go
- data_source_csp_tag.go
- data_source_fareplica.go
- data_source_pgd.go
- data_source_projects.go
- data_source_region.go
- data_source_tag.go
- helpers.go
- provider.go
- resource_analytics_cluster.go
- resource_aws_connection.go
- resource_azure_connection.go
- resource_cluster.go
- resource_csp_tag.go
- resource_fareplica.go
- resource_pgd.go
- resource_project.go
- resource_region.go
- resource_tag.go
- utils.go
- validators.go
Click to show internal directories.
Click to hide internal directories.