Documentation
¶
Index ¶
- Variables
- func ImportVariablesTf(mode ImporterMode, outputPath string) error
- func New(version, userAgent string) func() *schema.Provider
- func ResponseHasExpectedStatusCode(response *http.Response, expectedStatusCode int) bool
- func ResponseHasStatusForbiddenDueToInvalidAPIKey(response *http.Response) bool
- func SetSchemaDiff(ctx context.Context, diff *schema.ResourceDiff, meta interface{}) error
- func SleepIfNotTestMode(d time.Duration, isAcceptanceTestMode bool)
- type Acl
- type Client
- type ClusterLinkMetadata
- type FlinkRestClient
- type FlinkRestClientFactory
- type GenericOpenAPIError
- type Importer
- type ImporterMode
- type InstanceId
- type InstanceIdsToNameMap
- type InstanceName
- type KafkaRestClient
- type KafkaRestClientFactory
- type LoadInstanceIdsFunc
- type RetryableClientFactory
- type RetryableClientFactoryOption
- type SchemaRegistryRestClient
- type SchemaRegistryRestClientFactory
- func (f SchemaRegistryRestClientFactory) CreateDataCatalogClient(restEndpoint, clusterId, clusterApiKey, clusterApiSecret string, ...) *SchemaRegistryRestClient
- func (f SchemaRegistryRestClientFactory) CreateSchemaRegistryRestClient(restEndpoint, clusterId, clusterApiKey, clusterApiSecret string, ...) *SchemaRegistryRestClient
- type WiremockContainer
Constants ¶
This section is empty.
Variables ¶
var ImportableResources = []string{
"confluent_service_account",
"confluent_kafka_cluster",
"confluent_environment",
"confluent_connector",
"confluent_kafka_topic",
"confluent_kafka_acl",
"confluent_schema",
}
Functions ¶
func ImportVariablesTf ¶ added in v1.39.0
func ImportVariablesTf(mode ImporterMode, outputPath string) error
func ResponseHasStatusForbiddenDueToInvalidAPIKey ¶
Reports whether the response has http.StatusForbidden status due to an invalid Cloud API Key vs other reasons which is useful to distinguish from scenarios where http.StatusForbidden represents http.StatusNotFound for security purposes.
func SetSchemaDiff ¶ added in v1.29.0
func SetSchemaDiff(ctx context.Context, diff *schema.ResourceDiff, meta interface{}) error
func SleepIfNotTestMode ¶ added in v1.82.0
Types ¶
type Acl ¶
type Acl struct { ResourceType kafkarestv3.AclResourceType ResourceName string PatternType string Principal string Host string Operation string Permission string }
type ClusterLinkMetadata ¶ added in v1.50.0
type ClusterLinkMetadata struct {
// contains filtered or unexported fields
}
type FlinkRestClient ¶ added in v1.56.0
type FlinkRestClient struct {
// contains filtered or unexported fields
}
type FlinkRestClientFactory ¶ added in v1.56.0
type FlinkRestClientFactory struct {
// contains filtered or unexported fields
}
func (FlinkRestClientFactory) CreateFlinkRestClient ¶ added in v1.56.0
func (f FlinkRestClientFactory) CreateFlinkRestClient(restEndpoint, organizationId, environmentId, computePoolId, principalId, flinkApiKey, flinkApiSecret string, isMetadataSetInProviderBlock bool) *FlinkRestClient
type GenericOpenAPIError ¶
type GenericOpenAPIError interface {
Model() interface{}
}
type Importer ¶ added in v1.39.0
type Importer struct { LoadInstanceIds LoadInstanceIdsFunc // Map of resource id->names. This is set after a call to LoadInstanceIds InstanceIdMap InstanceIdsToNameMap }
Importer is an interface that every Importable resource should implement
func (*Importer) LoadInstances ¶ added in v1.39.0
type ImporterMode ¶ added in v1.39.0
type ImporterMode int
const ( Cloud ImporterMode = iota Kafka SchemaRegistry )
type InstanceId ¶ added in v1.39.0
type InstanceId string
type InstanceIdsToNameMap ¶ added in v1.39.0
type InstanceName ¶ added in v1.39.0
type InstanceName string
type KafkaRestClient ¶
type KafkaRestClient struct {
// contains filtered or unexported fields
}
type KafkaRestClientFactory ¶
type KafkaRestClientFactory struct {
// contains filtered or unexported fields
}
func (KafkaRestClientFactory) CreateKafkaRestClient ¶
func (f KafkaRestClientFactory) CreateKafkaRestClient(restEndpoint, clusterId, clusterApiKey, clusterApiSecret string, isMetadataSetInProviderBlock, isClusterIdSetInProviderBlock bool) *KafkaRestClient
type LoadInstanceIdsFunc ¶ added in v1.39.0
type LoadInstanceIdsFunc func(context.Context, *Client) (InstanceIdsToNameMap, diag.Diagnostics)
LoadInstanceIdsFunc is a method that returns a map of all instances of a specific resource where key is an instance ID and value is an instance name. For example, this method might return { "sa-abc123": "app-manager", "sa-xyz123: "test" } for confluent_service_account resource.
type RetryableClientFactory ¶ added in v1.17.0
type RetryableClientFactory struct {
// contains filtered or unexported fields
}
func NewRetryableClientFactory ¶ added in v1.17.0
func NewRetryableClientFactory(ctx context.Context, opts ...RetryableClientFactoryOption) *RetryableClientFactory
func (RetryableClientFactory) CreateRetryableClient ¶ added in v1.17.0
func (f RetryableClientFactory) CreateRetryableClient() *http.Client
CreateRetryableClient creates retryable HTTP client that performs automatic retries with exponential backoff for 429 and 5** (except 501) errors. Otherwise, the response is returned and left to the caller to interpret.
type RetryableClientFactoryOption ¶ added in v1.17.0
type RetryableClientFactoryOption = func(c *RetryableClientFactory)
func WithMaxRetries ¶ added in v1.17.0
func WithMaxRetries(maxRetries int) RetryableClientFactoryOption
type SchemaRegistryRestClient ¶ added in v1.20.0
type SchemaRegistryRestClient struct {
// contains filtered or unexported fields
}
type SchemaRegistryRestClientFactory ¶ added in v1.20.0
type SchemaRegistryRestClientFactory struct {
// contains filtered or unexported fields
}
func (SchemaRegistryRestClientFactory) CreateDataCatalogClient ¶ added in v1.41.0
func (f SchemaRegistryRestClientFactory) CreateDataCatalogClient(restEndpoint, clusterId, clusterApiKey, clusterApiSecret string, isMetadataSetInProviderBlock bool) *SchemaRegistryRestClient
func (SchemaRegistryRestClientFactory) CreateSchemaRegistryRestClient ¶ added in v1.20.0
func (f SchemaRegistryRestClientFactory) CreateSchemaRegistryRestClient(restEndpoint, clusterId, clusterApiKey, clusterApiSecret string, isMetadataSetInProviderBlock bool) *SchemaRegistryRestClient
type WiremockContainer ¶ added in v1.5.0
type WiremockContainer struct { testcontainers.Container URI string }
Source Files
¶
- data_source_access_point.go
- data_source_business_metadata.go
- data_source_business_metadata_binding.go
- data_source_byok_key.go
- data_source_dns_record.go
- data_source_environment.go
- data_source_environments.go
- data_source_flink_compute_pool.go
- data_source_flink_region.go
- data_source_gateway.go
- data_source_group_mapping.go
- data_source_identity_pool.go
- data_source_identity_provider.go
- data_source_invitation.go
- data_source_ip_addresses.go
- data_source_kafka_client_quota.go
- data_source_kafka_cluster.go
- data_source_kafka_topic.go
- data_source_ksql_cluster.go
- data_source_network.go
- data_source_network_link_endpoint.go
- data_source_network_link_service.go
- data_source_organization.go
- data_source_peering.go
- data_source_private_link_access.go
- data_source_private_link_attachment.go
- data_source_resource_private_link_attachment_connection.go
- data_source_role_binding.go
- data_source_schema.go
- data_source_schema_registry_cluster.go
- data_source_schema_registry_cluster_config.go
- data_source_schema_registry_cluster_mode.go
- data_source_schema_registry_clusters.go
- data_source_schema_registry_dek.go
- data_source_schema_registry_kek.go
- data_source_schemas.go
- data_source_service_account.go
- data_source_subject_config.go
- data_source_subject_mode.go
- data_source_tag.go
- data_source_tag_binding.go
- data_source_transit_gateway_attachment.go
- data_source_user.go
- data_source_users.go
- factory_utils.go
- provider.go
- resource_access_point.go
- resource_api_key.go
- resource_business_metadata.go
- resource_business_metadata_binding.go
- resource_byok_key.go
- resource_catalog_entity_attributes.go
- resource_cluster_link.go
- resource_connector.go
- resource_custom_connector_plugin.go
- resource_dns_forwarder.go
- resource_dns_record.go
- resource_environment.go
- resource_flink_compute_pool.go
- resource_flink_statement.go
- resource_group_mapping.go
- resource_identity_pool.go
- resource_identity_provider.go
- resource_invitation.go
- resource_kafka_acl.go
- resource_kafka_client_quota.go
- resource_kafka_cluster.go
- resource_kafka_cluster_config.go
- resource_kafka_mirror_topic.go
- resource_kafka_topic.go
- resource_ksql_cluster.go
- resource_network.go
- resource_network_link_endpoint.go
- resource_network_link_service.go
- resource_peering.go
- resource_private_link_access.go
- resource_private_link_attachment.go
- resource_private_link_attachment_connection.go
- resource_role_binding.go
- resource_schema.go
- resource_schema_exporter.go
- resource_schema_registry_cluster_config.go
- resource_schema_registry_cluster_mode.go
- resource_schema_registry_dek.go
- resource_schema_registry_kek.go
- resource_service_account.go
- resource_subject_config.go
- resource_subject_mode.go
- resource_tag.go
- resource_tag_binding.go
- resource_tf_importer.go
- resource_transit_gateway_attachment.go
- state_upgraders.go
- utils.go
- utils_wait.go
- wiremockTestUtils.go