provider

package
v1.73.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 59 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ImportableResources = []string{

	"confluent_service_account",
	"confluent_kafka_cluster",
	"confluent_schema_registry_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 New

func New(version, userAgent string) func() *schema.Provider

func ResponseHasExpectedStatusCode

func ResponseHasExpectedStatusCode(response *http.Response, expectedStatusCode int) bool

func ResponseHasStatusForbiddenDueToInvalidAPIKey

func ResponseHasStatusForbiddenDueToInvalidAPIKey(response *http.Response) bool

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

Types

type Acl

type Acl struct {
	ResourceType kafkarestv3.AclResourceType
	ResourceName string
	PatternType  string
	Principal    string
	Host         string
	Operation    string
	Permission   string
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

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

func (r *Importer) LoadInstances(ctx context.Context, client *Client) diag.Diagnostics

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 InstanceIdsToNameMap map[string]string

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(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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL