Documentation ¶
Index ¶
- Constants
- func New(version string) func() tfsdk.Provider
- type APIErrorMessage
- type AllowlistEntry
- type ApiCloudProvider
- type ClusterConfig
- type ClusterState
- type CockroachCluster
- type CockroachClusterData
- type CreateClusterSpecification
- type DedicatedClusterCreateSpecification
- type DedicatedClusterUpdateSpecification
- type DedicatedHardwareConfig
- type DedicatedHardwareCreateSpecification
- type DedicatedHardwareUpdateSpecification
- type DedicatedMachineTypeSpecification
- type Region
- type SQLUser
- type SQLUserSpecification
- type ServerlessClusterConfig
- type ServerlessClusterCreateSpecification
- type ServerlessClusterSpec
- type ServerlessClusterUpdateSpecification
- type UpdateClusterSpecification
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIErrorMessage ¶
func (*APIErrorMessage) String ¶
func (e *APIErrorMessage) String() string
type AllowlistEntry ¶
type AllowlistEntry struct { Id types.String `tfsdk:"id"` CidrIp types.String `tfsdk:"cidr_ip"` CidrMask types.Int64 `tfsdk:"cidr_mask"` Ui types.Bool `tfsdk:"ui"` Sql types.Bool `tfsdk:"sql"` Name types.String `tfsdk:"name"` }
AllowlistEntry struct for AllowlistEntry.
type ApiCloudProvider ¶
type ApiCloudProvider string
ApiCloudProvider - GCP: The Google Cloud Platform cloud provider. - AWS: The Amazon Web Services cloud provider.
type ClusterConfig ¶
type ClusterConfig struct { Dedicated *DedicatedHardwareConfig `tfsdk:"dedicated"` Serverless *ServerlessClusterConfig `tfsdk:"serverless"` }
ClusterConfig struct for ClusterConfig.
type ClusterState ¶
type CockroachCluster ¶
type CockroachCluster struct { ID types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` CloudProvider ApiCloudProvider `tfsdk:"cloud_provider"` AccountId types.String `tfsdk:"account_id"` CreateSpec *CreateClusterSpecification `tfsdk:"create_spec"` UpdateSpec *UpdateClusterSpecification `tfsdk:"update_spec"` Config *ClusterConfig `tfsdk:"config"` Regions []Region `tfsdk:"regions"` CockroachVersion types.String `tfsdk:"cockroach_version"` Plan types.String `tfsdk:"plan"` State types.String `tfsdk:"state"` CreatorId types.String `tfsdk:"creator_id"` OperationStatus types.String `tfsdk:"operation_status"` WaitForClusterReady types.Bool `tfsdk:"wait_for_cluster_ready"` }
type CockroachClusterData ¶
type CockroachClusterData struct { ID types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` CloudProvider ApiCloudProvider `tfsdk:"cloud_provider"` AccountId types.String `tfsdk:"account_id"` CockroachVersion types.String `tfsdk:"cockroach_version"` Plan types.String `tfsdk:"plan"` State types.String `tfsdk:"state"` CreatorId types.String `tfsdk:"creator_id"` OperationStatus types.String `tfsdk:"operation_status"` Config *ClusterConfig `tfsdk:"config"` Regions []Region `tfsdk:"regions"` }
type CreateClusterSpecification ¶
type CreateClusterSpecification struct { Dedicated *DedicatedClusterCreateSpecification `tfsdk:"dedicated"` Serverless *ServerlessClusterCreateSpecification `tfsdk:"serverless"` }
CreateClusterSpecification struct for CreateClusterSpecification.
type DedicatedClusterCreateSpecification ¶
type DedicatedClusterCreateSpecification struct { // Region keys should match the cloud provider's zone code. For example, for Oregon, set region_name to \"us-west2\" for GCP and \"us-west-2\" for AWS. Values represent the node count. RegionNodes *map[string]int32 `tfsdk:"region_nodes"` Hardware *DedicatedHardwareCreateSpecification `tfsdk:"hardware"` // The CockroachDB version for the cluster. The current version is used if omitted. CockroachVersion types.String `tfsdk:"cockroach_version"` }
DedicatedClusterCreateSpecification struct for DedicatedClusterCreateSpecification.
type DedicatedClusterUpdateSpecification ¶
type DedicatedClusterUpdateSpecification struct { // Region keys should match the cloud provider's zone code. For example, for Oregon, set region_name to \"us-west2\" for GCP and \"us-west-2\" for AWS. Values represent the node count. RegionNodes *map[string]int32 `tfsdk:"region_nodes"` Hardware *DedicatedHardwareUpdateSpecification `tfsdk:"hardware"` }
DedicatedClusterUpdateSpecification struct for DedicatedClusterUpdateSpecification.
type DedicatedHardwareConfig ¶
type DedicatedHardwareCreateSpecification ¶
type DedicatedHardwareCreateSpecification struct { MachineSpec *DedicatedMachineTypeSpecification `tfsdk:"machine_spec"` // StorageGiB is the number of storage GiB per node in the cluster. Zero indicates default to the lowest storage GiB available given machine specs. StorageGib types.Int64 `tfsdk:"storage_gib"` // DiskIOPs is the number of disk I/O operations per second that are permitted on each node in the cluster. Zero indicates the cloud provider-specific default. Only available for AWS clusters. DiskIops types.Int64 `tfsdk:"disk_iops"` }
DedicatedHardwareCreateSpecification struct for DedicatedHardwareCreateSpecification.
type DedicatedHardwareUpdateSpecification ¶
type DedicatedHardwareUpdateSpecification struct { MachineSpec *DedicatedMachineTypeSpecification `tfsdk:"machine_spec"` // StorageGiB is the number of storage GiB per node in the cluster. StorageGib types.Int64 `tfsdk:"storage_gib"` // DiskIOPs is the number of disk I/O operations per second that are permitted on each node in the cluster. Zero indicates the cloud provider-specific default. Only available for AWS clusters. DiskIops types.Int64 `tfsdk:"disk_iops"` }
DedicatedHardwareUpdateSpecification struct for DedicatedHardwareUpdateSpecification.
type DedicatedMachineTypeSpecification ¶
type DedicatedMachineTypeSpecification struct { // MachineType is the machine type identifier within the given cloud provider, ex. m5.xlarge, n2-standard-4. MachineType types.String `tfsdk:"machine_type"` // NumVirtualCPUs may be used to automatically select a machine type according to the desired number of vCPUs. NumVirtualCpus types.Int64 `tfsdk:"num_virtual_cpus"` }
DedicatedMachineTypeSpecification struct for DedicatedMachineTypeSpecification.
type SQLUserSpecification ¶
type SQLUserSpecification struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Password types.String `tfsdk:"password"` }
SQLUserSpecification struct for SQLUserSpecification.
type ServerlessClusterConfig ¶
type ServerlessClusterCreateSpecification ¶
type ServerlessClusterCreateSpecification struct { // Region values should match the cloud provider's zone code. For example, for Oregon, set region_name to \"us-west2\" for GCP and \"us-west-2\" for AWS. Regions []types.String `tfsdk:"regions"` SpendLimit types.Int64 `tfsdk:"spend_limit"` }
ServerlessClusterCreateSpecification struct for ServerlessClusterCreateSpecification.
type ServerlessClusterSpec ¶
type ServerlessClusterUpdateSpecification ¶
ServerlessClusterUpdateSpecification struct for ServerlessClusterUpdateSpecification.
type UpdateClusterSpecification ¶
type UpdateClusterSpecification struct { Dedicated *DedicatedClusterUpdateSpecification `tfsdk:"dedicated"` Serverless *ServerlessClusterUpdateSpecification `tfsdk:"serverless"` }
UpdateClusterSpecification struct for UpdateClusterSpecification.