Documentation ¶
Index ¶
- Constants
- Variables
- func HookGlobal[T any](ptr *T, val T) func()
- func New(version string) func() tfsdk.Provider
- type APIErrorMessage
- type AllowlistEntry
- type CockroachCluster
- type DedicatedClusterConfig
- type PrivateEndpointConnection
- type PrivateEndpointService
- type PrivateEndpointServices
- type PrivateLinkServiceAWSDetail
- type Region
- 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`.
Types ¶
type APIErrorMessage ¶
func (*APIErrorMessage) String ¶
func (e *APIErrorMessage) String() string
type AllowlistEntry ¶
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"` }
type DedicatedClusterConfig ¶ added in v0.2.0
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
Click to show internal directories.
Click to hide internal directories.