Documentation ¶
Index ¶
- Constants
- type AWSConnection
- type AllowedIpRange
- type Architecture
- type AzureConnection
- type CloudProvider
- type Cluster
- type ClusterConnection
- type ClusterExtension
- type Condition
- type InstanceType
- type KeyValue
- type MaintenanceWindow
- type PeAllowedPrincipalIds
- type PgBouncer
- type PgBouncerSettings
- type PgType
- type PgVersion
- type PointInTime
- type Project
- type Provider
- type Region
- type ServiceAccountIds
- type Storage
Constants ¶
View Source
const ( CONDITION_DEPLOYED = "biganimal.com/deployed" PHASE_HEALTHY = "Cluster in healthy state" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSConnection ¶ added in v0.4.0
type AllowedIpRange ¶
type Architecture ¶
type AzureConnection ¶ added in v0.4.0
type CloudProvider ¶ added in v0.3.0
type Cluster ¶
type Cluster struct { ClusterType *string `json:"clusterType,omitempty"` ReplicaSourceClusterId *string `json:"replicaSourceClusterId,omitempty"` AllowedIpRanges *[]AllowedIpRange `json:"allowedIpRanges,omitempty"` BackupRetentionPeriod *string `json:"backupRetentionPeriod,omitempty"` ClusterArchitecture *Architecture `json:"clusterArchitecture,omitempty" mapstructure:"cluster_architecture"` ClusterId *string `json:"clusterId,omitempty"` ClusterName *string `json:"clusterName,omitempty"` Conditions []Condition `json:"conditions,omitempty"` CreatedAt *PointInTime `json:"createdAt,omitempty"` CSPAuth *bool `json:"cspAuth,omitempty"` DeletedAt *PointInTime `json:"deletedAt,omitempty"` ExpiredAt *PointInTime `json:"expiredAt,omitempty"` FirstRecoverabilityPointAt *PointInTime `json:"firstRecoverabilityPointAt,omitempty"` InstanceType *InstanceType `json:"instanceType,omitempty"` LogsUrl *string `json:"logsUrl,omitempty"` MetricsUrl *string `json:"metricsUrl,omitempty"` Password *string `json:"password,omitempty"` PgConfig *[]KeyValue `json:"pgConfig,omitempty"` PgType *PgType `json:"pgType,omitempty"` PgVersion *PgVersion `json:"pgVersion,omitempty"` Phase *string `json:"phase,omitempty"` PrivateNetworking *bool `json:"privateNetworking,omitempty"` Provider *Provider `json:"provider,omitempty"` ReadOnlyConnections *bool `json:"readOnlyConnections,omitempty"` Region *Region `json:"region,omitempty"` ResizingPvc []string `json:"resizingPvc,omitempty"` Storage *Storage `json:"storage,omitempty"` FarawayReplicaIds *[]string `json:"farawayReplicaIds,omitempty"` Groups *[]any `json:"groups,omitempty"` MaintenanceWindow *commonApi.MaintenanceWindow `json:"maintenanceWindow,omitempty"` ServiceAccountIds *[]string `json:"serviceAccountIds,omitempty"` PeAllowedPrincipalIds *[]string `json:"peAllowedPrincipalIds,omitempty"` SuperuserAccess *bool `json:"superuserAccess,omitempty"` Extensions *[]ClusterExtension `json:"extensions,omitempty"` PgBouncer *PgBouncer `json:"pgBouncer,omitempty"` }
Cluster struct everything is omitempty, and everything is either nullable, or empty-able
func NewCluster ¶
func NewCluster(d *schema.ResourceData) (*Cluster, error)
func NewClusterForCreate ¶
func NewClusterForCreate(d *schema.ResourceData) (*Cluster, error)
func NewClusterForUpdate ¶
func NewClusterForUpdate(d *schema.ResourceData) (*Cluster, error)
type ClusterConnection ¶
type ClusterConnection struct { DatabaseName string `json:"databaseName"` PgUri string `json:"pgUri"` Port string `json:"port"` ServiceName string `json:"serviceName"` ReadOnlyPgUri string `json:"readOnlyPgUri"` ReadOnlyPort string `json:"readOnlyPort"` ReadOnlyServiceName string `json:"readOnlyServiceName"` Username string `json:"username"` }
type ClusterExtension ¶ added in v0.7.0
type Condition ¶
type Condition struct { ConditionStatus *string `json:"conditionStatus,omitempty"` LastTransitionTime *PointInTime `json:"lastTransitionTime,omitempty"` Message *string `json:"message,omitempty"` Reason *string `json:"reason,omitempty"` Type_ *string `json:"type,omitempty"` }
this is probably just a kube condition, and we might be able to import that struct from the kube libs
type InstanceType ¶
type InstanceType struct { Category string `json:"category,omitempty"` Cpu float64 `json:"cpu,omitempty"` FamilyName string `json:"familyName,omitempty"` InstanceTypeId string `json:"instanceTypeId"` InstanceTypeName string `json:"instanceTypeName,omitempty"` Ram float64 `json:"ram,omitempty"` }
func (InstanceType) String ¶
func (i InstanceType) String() string
type MaintenanceWindow ¶ added in v0.5.0
type PeAllowedPrincipalIds ¶ added in v0.6.1
type PeAllowedPrincipalIds struct {
Data []string `json:"data"`
}
type PgBouncer ¶ added in v0.7.0
type PgBouncer struct { IsEnabled bool `json:"isEnabled"` Settings *[]PgBouncerSettings `json:"settings,omitempty"` }
type PgBouncerSettings ¶ added in v0.7.0
type PgType ¶
type PgVersion ¶
type PointInTime ¶
func (PointInTime) String ¶
func (p PointInTime) String() string
PointInTimeToString transforms an apiv2 PointInTime to it's string representation
type Project ¶ added in v0.3.0
type Project struct { ProjectId string `json:"projectId,omitempty" tfsdk:"project_id"` ProjectName string `json:"projectName,omitempty" tfsdk:"project_name"` UserCount int `json:"userCount,omitempty" tfsdk:"user_count"` ClusterCount int `json:"clusterCount,omitempty" tfsdk:"cluster_count"` CloudProviders []CloudProvider `json:"cloudProviders" tfsdk:"cloud_providers"` }
type Provider ¶
type Region ¶
type ServiceAccountIds ¶ added in v0.6.1
type ServiceAccountIds struct {
Data []string `json:"data"`
}
type Storage ¶
type Storage struct { Iops *string `json:"iops,omitempty" mapstructure:"iops" tfsdk:"iops"` Size *string `json:"size" mapstructure:"size" tfsdk:"size"` Throughput *string `json:"throughput,omitempty" mapstructure:"throughput" tfsdk:"throughput"` VolumePropertiesId *string `json:"volumePropertiesId" mapstructure:"volume_properties" tfsdk:"volume_properties"` VolumeTypeId *string `json:"volumeTypeId" mapstructure:"volume_type" tfsdk:"volume_type"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.