Documentation ¶
Index ¶
- Constants
- Variables
- func HookGlobal[T any](ptr *T, val T) func()
- func New(version string) func() tf_provider.Provider
- func NewAllowlistResource() resource.Resource
- func NewCMEKResource() resource.Resource
- func NewClientCACertResource() resource.Resource
- func NewClusterCertDataSource() datasource.DataSource
- func NewClusterDataSource() datasource.DataSource
- func NewClusterResource() resource.Resource
- func NewConnectionStringDataSource() datasource.DataSource
- func NewDatabaseResource() resource.Resource
- func NewFinalizeVersionUpgradeResource() resource.Resource
- func NewLogExportConfigResource() resource.Resource
- func NewMetricExportCloudWatchConfigResource() resource.Resource
- func NewMetricExportDatadogConfigResource() resource.Resource
- func NewOrganizationDataSource() datasource.DataSource
- func NewPersonUserDataSource() datasource.DataSource
- func NewPrivateEndpointConnectionResource() resource.Resource
- func NewPrivateEndpointServicesResource() resource.Resource
- func NewRoleResource() resource.Resource
- func NewSQLUserResource() resource.Resource
- type APIErrorMessage
- type AllowlistEntry
- type CMEKKey
- type CMEKRegion
- type ClientCACertResourceModel
- type ClusterCMEK
- type ClusterCert
- type ClusterCloudWatchMetricExportConfig
- type ClusterDatadogMetricExportConfig
- type ClusterLogExport
- type CockroachCluster
- type ConnectionString
- type Database
- type DedicatedClusterConfig
- type FinalizeVersionUpgrade
- type LogExportGroup
- type Organization
- type PersonUser
- type PrivateEndpointConnection
- type PrivateEndpointService
- type PrivateEndpointServices
- type PrivateLinkServiceAWSDetail
- type Region
- type Role
- type RoleGrant
- type SQLUser
- type ServerlessClusterConfig
Constants ¶
View Source
const ( CockroachAPIKey string = "COCKROACH_API_KEY" APIServerURLKey string = "COCKROACH_SERVER" UserAgent string = "terraform-provider-cockroach" )
Variables ¶
View Source
var NewService = client.NewService
NewService overrides the client method for testing.
Functions ¶
func HookGlobal ¶ added in v0.3.0
func HookGlobal[T any](ptr *T, val T) func()
HookGlobal sets `*ptr = val` and returns a closure for restoring `*ptr` to its original value. A runtime panic will occur if `val` is not assignable to `*ptr`.
func New ¶
func New(version string) func() tf_provider.Provider
func NewAllowlistResource ¶ added in v0.4.0
func NewCMEKResource ¶ added in v0.4.0
func NewClientCACertResource ¶ added in v0.4.5
func NewClusterCertDataSource ¶ added in v0.4.1
func NewClusterCertDataSource() datasource.DataSource
func NewClusterDataSource ¶ added in v0.4.0
func NewClusterDataSource() datasource.DataSource
func NewClusterResource ¶ added in v0.4.0
func NewConnectionStringDataSource ¶ added in v0.4.1
func NewConnectionStringDataSource() datasource.DataSource
func NewDatabaseResource ¶ added in v0.4.3
func NewFinalizeVersionUpgradeResource ¶ added in v0.4.3
func NewLogExportConfigResource ¶ added in v0.4.4
func NewMetricExportCloudWatchConfigResource ¶ added in v0.4.5
func NewMetricExportDatadogConfigResource ¶ added in v0.4.5
func NewOrganizationDataSource ¶ added in v0.4.4
func NewOrganizationDataSource() datasource.DataSource
func NewPersonUserDataSource ¶ added in v0.4.6
func NewPersonUserDataSource() datasource.DataSource
func NewPrivateEndpointConnectionResource ¶ added in v0.4.0
func NewPrivateEndpointServicesResource ¶ added in v0.4.0
func NewRoleResource ¶ added in v0.4.6
func NewSQLUserResource ¶ added in v0.4.0
Types ¶
type APIErrorMessage ¶
func (*APIErrorMessage) String ¶
func (e *APIErrorMessage) String() string
type AllowlistEntry ¶
type CMEKKey ¶ added in v0.4.0
type CMEKKey struct { Status types.String `tfsdk:"status"` UserMessage types.String `tfsdk:"user_message"` Type types.String `tfsdk:"type"` URI types.String `tfsdk:"uri"` AuthPrincipal types.String `tfsdk:"auth_principal"` CreatedAt types.String `tfsdk:"created_at"` UpdatedAt types.String `tfsdk:"updated_at"` }
type CMEKRegion ¶ added in v0.4.0
type ClientCACertResourceModel ¶ added in v0.4.5
type ClusterCMEK ¶ added in v0.4.0
type ClusterCert ¶ added in v0.4.1
type ClusterCloudWatchMetricExportConfig ¶ added in v0.4.5
type ClusterCloudWatchMetricExportConfig struct { ID types.String `tfsdk:"id"` TargetRegion types.String `tfsdk:"target_region"` LogGroupName types.String `tfsdk:"log_group_name"` RoleArn types.String `tfsdk:"role_arn"` UserMessage types.String `tfsdk:"user_message"` Status types.String `tfsdk:"status"` }
type ClusterDatadogMetricExportConfig ¶ added in v0.4.5
type ClusterLogExport ¶ added in v0.4.4
type ClusterLogExport struct { ID types.String `tfsdk:"id"` AuthPrincipal types.String `tfsdk:"auth_principal"` LogName types.String `tfsdk:"log_name"` Type types.String `tfsdk:"type"` Redact types.Bool `tfsdk:"redact"` Region types.String `tfsdk:"region"` Groups *[]LogExportGroup `tfsdk:"groups"` Status types.String `tfsdk:"status"` UserMessage types.String `tfsdk:"user_message"` CreatedAt types.String `tfsdk:"created_at"` UpdatedAt types.String `tfsdk:"updated_at"` }
type CockroachCluster ¶
type CockroachCluster struct { ID types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` CloudProvider types.String `tfsdk:"cloud_provider"` AccountId types.String `tfsdk:"account_id"` DedicatedConfig *DedicatedClusterConfig `tfsdk:"dedicated"` ServerlessConfig *ServerlessClusterConfig `tfsdk:"serverless"` 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"` UpgradeStatus types.String `tfsdk:"upgrade_status"` }
CockroachCluster is used by the cluster resource and the cluster data source. Changes to this model should be supported by both.
type ConnectionString ¶ added in v0.4.1
type ConnectionString struct { ID types.String `tfsdk:"id"` OS types.String `tfsdk:"os"` Database types.String `tfsdk:"database"` SqlUser types.String `tfsdk:"sql_user"` Password types.String `tfsdk:"password"` ConnectionString types.String `tfsdk:"connection_string"` ConnectionParams types.Map `tfsdk:"connection_params"` }
type DedicatedClusterConfig ¶ added in v0.2.0
type DedicatedClusterConfig struct { MachineType types.String `tfsdk:"machine_type"` NumVirtualCpus types.Int64 `tfsdk:"num_virtual_cpus"` StorageGib types.Int64 `tfsdk:"storage_gib"` MemoryGib types.Float64 `tfsdk:"memory_gib"` DiskIops types.Int64 `tfsdk:"disk_iops"` PrivateNetworkVisibility types.Bool `tfsdk:"private_network_visibility"` }
type FinalizeVersionUpgrade ¶ added in v0.4.3
type LogExportGroup ¶ added in v0.4.4
type Organization ¶ added in v0.4.4
type PersonUser ¶ added in v0.4.6
type PrivateEndpointConnection ¶ added in v0.3.0
type PrivateEndpointConnection struct { ID types.String `tfsdk:"id"` RegionName types.String `tfsdk:"region_name"` CloudProvider types.String `tfsdk:"cloud_provider"` EndpointID types.String `tfsdk:"endpoint_id"` ServiceID types.String `tfsdk:"service_id"` ClusterID types.String `tfsdk:"cluster_id"` }
type PrivateEndpointService ¶ added in v0.3.0
type PrivateEndpointServices ¶ added in v0.3.0
type PrivateEndpointServices struct { ClusterID types.String `tfsdk:"cluster_id"` Services []PrivateEndpointService `tfsdk:"services"` ID types.String `tfsdk:"id"` }
type PrivateLinkServiceAWSDetail ¶ added in v0.3.0
Source Files ¶
- client_ca_cert_resource.go
- cluster_cert_data_source.go
- cluster_resource.go
- cmek_resource.go
- cockroach_cluster_data_source.go
- connection_string_data_source.go
- database_resource.go
- finalize_version_upgrade_resource.go
- log_export_config_resource.go
- metric_export_cloudwatch_config_resource.go
- metric_export_datadog_config_resource.go
- models.go
- networking_resource.go
- organization_data_source.go
- person_user_data_source.go
- private_endpoint_connection_resource.go
- private_endpoint_services_resource.go
- provider.go
- role_resource.go
- sql_user_resource.go
- utils.go
Click to show internal directories.
Click to hide internal directories.