Documentation ¶
Index ¶
- Constants
- func Backoff(timeout time.Duration, f func() error) error
- func Close(i interface{})
- func CreateTracer(serviceName string, hostPort string, opts ...TracingOption) (opentracing.Tracer, io.Closer, error)
- func IsDir(path string) (bool, error)
- func ParseTags(filter es.Filter, tags []string) (es.Filter, error)
- func RandomResourceName() string
- func Tar(source string, w io.Writer) error
- func TarGzBytes(source string) ([]byte, error)
- func Untar(dst, prefix string, r io.Reader) error
- type TracingOption
Constants ¶
const APIKind = "API"
APIKind a constant representing the kind of the API model
const ApplicationKind = "Application"
ApplicationKind a constant to represent the kind of the Application model
const BaseImageKind = "BaseImage"
BaseImageKind a constant representing the kind of the Base Image model
const DriverKind = "Driver"
DriverKind a constant representing the kind of the Driver API model
const DriverTypeKind = "DriverType"
DriverTypeKind a constant representing the kind of the DriverType API model
const FunctionKind = "Function"
FunctionKind a constant representing the kind of the Function model
const ImageKind = "Image"
ImageKind a constant representing the kind of the Image model
const PolicyKind = "Policy"
PolicyKind a constant representing the kind of the Policy model
const SecretKind = "Secret"
SecretKind a constant representing the kind of the Secret model
const ServiceAccountKind = "ServiceAccount"
ServiceAccountKind a constant representing the kind of the ServiceAccount Model
const ServiceBindingKind = "ServiceBinding"
ServiceBindingKind a constant representing the kind of the Service Binding model
const ServiceClassKind = "ServiceClass"
ServiceClassKind a constant representing the kind of the Service Class model
const ServiceInstanceKind = "ServiceInstance"
ServiceInstanceKind a constant representing the kind of the Service Instance model
const ServicePlanKind = "ServicePlan"
ServicePlanKind a constant representing the kind of the Service Plan model
const SubscriptionKind = "Subscription"
SubscriptionKind a constant representing the kind of the Subscription API model
Variables ¶
This section is empty.
Functions ¶
func CreateTracer ¶
func CreateTracer(serviceName string, hostPort string, opts ...TracingOption) (opentracing.Tracer, io.Closer, error)
CreateTracer Returns a configured instance of opentracing.Tracer, a closer to close the tracer, and an error, if any.
func ParseTags ¶
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>"
func RandomResourceName ¶
func RandomResourceName() string
RandomResourceName produces a random name consisting of two words and an integer suffix. suffix will always be a 6 digits integer. Example: wiggly-yellowtail-123456
func TarGzBytes ¶ added in v0.1.15
TarGzBytes produces a tar.gz of source path and returns its byte content
Types ¶
type TracingOption ¶
type TracingOption func(*tracingOptions)
TracingOption contols the behavior of the Middleware.