package
0.2.0-alpha
Repository: https://github.com/vmware/dispatch.git
Documentation: pkg.go.dev

# Functions

Backoff runs a function with a random backoff timeout.
CamelCaseToLowerSeparated converts a camel cased string to a multi-word string delimited by the specified separator.
Close provides a safe Close facility.
CreateTracer Returns a configured instance of opentracing.Tracer, a closer to close the tracer, and an error, if any.
ErrorMsgAlreadyExists creates an error message for resource that already exists.
ErrorMsgBadRequest creates an error message for bad request error.
ErrorMsgInternalError creates an error message for internal error.
ErrorMsgNotFound creates an error message for resource that was not found.
IsDir determines if path is a directory.
ParseTags parses tags pass from dispatch client, a tag is key-value pair string, separate by an equal symbol the only valid format of a tag is "<key>=<value>".
RandomResourceName produces a random name consisting of two words and an integer suffix.
SeparatedToCamelCase converts a multi-word string delimited by a separator to camel cased string.
Tar writes the tar stream of the source to w.
TarGzBytes produces a tar.gz of source path and returns its byte content.
Untar the tar stream r into the dst dir stripping prefix from file paths.

# Constants

APIKind a constant representing the kind of the API model.
ApplicationKind a constant to represent the kind of the Application model.
BaseImageKind a constant representing the kind of the Base Image model.
DriverKind a constant representing the kind of the Driver API model.
DriverTypeKind a constant representing the kind of the DriverType API model.
FunctionKind a constant representing the kind of the Function model.
ImageKind a constant representing the kind of the Image model.
OrganizationKind a constant representing the kind of the Organization Model.
PolicyKind a constant representing the kind of the Policy model.
SecretKind a constant representing the kind of the Secret model.
ServiceAccountKind a constant representing the kind of the ServiceAccount Model.
ServiceBindingKind a constant representing the kind of the Service Binding model.
ServiceClassKind a constant representing the kind of the Service Class model.
ServiceInstanceKind a constant representing the kind of the Service Instance model.
ServicePlanKind a constant representing the kind of the Service Plan model.
SubscriptionKind a constant representing the kind of the Subscription API model.

# Type aliases

TracingOption contols the behavior of the Middleware.