# Functions
ErrorReason returns the HTTP status code for the error.
IsAlreadyExist returns true if the error indicates the resource already exist.
IsInternalServerError returns true if the error indicates the resource already exist.
IsNoSuchHostError returns true if operator cannot connect the resource host.
IsNotFound returns true if the error indicates the resource is not found on server.
IsPermissionNotFound returns true if the permission is not set.
No description provided by the author
NewDummyPulsarAdmin is a dummy initialization function.
NewPulsarAdmin initialize a pulsar admin client with configuration.
# Constants
ReasonAlreadyExist means a resource already exist in Pulsar.
ReasonForbidden means don't have admin permission for the operation.
ReasonInternalServerError means Pulsar server fail to handle the request Status code 500.
ReasonInvalidParameter means a resource already exist in Pulsar Status code 412.
ReasonNotFound means a resource is not found in Pulsar.
ReasonUnauthorized means need to authenticate to perform the operation.
ReasonUnknown means error reason is not clear.
TopicDomainNonPersistent is the prefix for non persistent topic.
TopicDomainPersistent is the prefix for persistent topic.
TopicDomainSeparator is the separator to separate the topic name.
# Structs
ClusterParams indicate the parameters for creating a cluster.
DummyPulsarAdmin is a dummy struct of PulsarAdmin.
NamespaceParams indicates the parameters for creating a namespace.
NamespacePermission is the parameters to grant permission for a namespace.
PulsarAdminClient define the client to call pulsar.
PulsarAdminConfig indicates the configurations which are needed to initialize the pulsar admin.
SchemaParams indicates the parameters for uploading a schema.
TenantParams indicates the parameters for creating a tenant.
TopicParams indicates the parameters for creating a topic.
TopicPermission is the parameters to grant permission for a topic.
# Interfaces
Permissioner implements the functions to grant and revoke permission for namespace and topic.
PulsarAdmin is the interface that defines the functions to call pulsar admin.
# Type aliases
PulsarAdminCreator is the function type to create a PulsarAdmin with config.
Reason indicates the status code.