# Functions
AreWeDoneYet checks an operation's state until one of completion, failure or timeout is reached.
CloudProviderToString returns the cloud provider string based on the controlplanev1beta2's CloudProvider code.
ClusterTypeToString returns the cloud cluster type string based on the controlplanev1beta2's Cluster_Type code.
ConnectionTypeToString returns the cloud cluster connection type string based on the controlplanev1beta2's Cluster_ConnectionType code.
DeserializeGrpcError err.Error() if it is a standard error.
FindTopicByName searches for a topic by name using the provided client.
FindUserByName searches for a user by name using the provided client.
GenerateProtobufDiffAndUpdateMask takes two proto.Message objects and calculates the diff in toplevel fields between them.
Int32ToNumber converts an int32 to a types.Number.
IsNotFound checks if the passed error is a NotFoundError or a GRPC NotFound error.
MapToCreateTopicConfiguration converts a cfg map to a slice of dataplanev1alpha2.CreateTopicRequest_Topic_Config.
MapToSetTopicConfiguration converts a cfg map to a slice of dataplanev1alpha2.SetTopicConfigurationsRequest_SetConfiguration.
NewByocClient creates a new ByocClient.
NonRetryableError is a helper to create a RetryError that's _not_ retryable.
NumberToInt32 converts a types.Number to an *int32.
Retry will retry a function with a delay between each invocation until it no longer returns an error, the timeout is reached, or the context is cancelled.
RetryableError is a helper to create a RetryError that's retryable.
RetryGetCluster will retry a function, passing in the latest state of the given cluster id, until it either no longer returns an error or times out.
SplitSchemeDefPort splits the schema from the url and return url+port.
StringSliceToTypeList safely converts a string slice into a Terraform types.List.
StringToCloudProvider returns the controlplanev1beta2's CloudProvider code based on the input string.
StringToClusterType returns the controlplanev1beta2's Cluster_Type code based on the input string.
StringToConnectionType returns the controlplanev1beta2's Cluster_ConnectionType code based on the input string.
StringToStringPointer converts a string to a pointer to a string.
StringToUserMechanism converts a string to a dataplanev1alpha2.SASLMechanism.
TopicConfigurationToMap converts a slice of dataplanev1alpha2.Topic_Configuration to a slice of models.TopicConfiguration.
TrimmedStringValue returns the string value of a types.String with the quotes removed.
TypeListToStringSlice converts a types.List to a []string, stripping surrounding quotes for each element.
TypeMapToStringMap converts a types.Map to a map[string]string.
UserMechanismToString converts a dataplanev1alpha2.SASLMechanism to a string.
# Constants
CloudProviderStringAws is the string representation of the CLOUD_PROVIDER_AWS enum.
CloudProviderStringAzure is the string representation of the CLOUD_PROVIDER_AZURE enum.
CloudProviderStringGcp is the string representation of the CLOUD_PROVIDER_GCP enum.
# Structs
ByocClient holds the information and clients needed to download and interact with the rpk byoc plugin.
ByocClientConfig represents the options that must be passed to NewByocClient.
DefaultBoolValue follows the TF framework bool type.
NotFoundError represents a resource that couldn't be found.
RetryError is the required return type of functions passed to Retry.
TimeoutError is returned when Retry times out.