Help us shape the future of Go! Take the 2026 Go Developer Survey

utils

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const APIKind = "API"

APIKind a constant representing the kind of the API model

View Source
const ApplicationKind = "Application"

ApplicationKind a constant to represent the kind of the Application model

View Source
const BaseImageKind = "BaseImage"

BaseImageKind a constant representing the kind of the Base Image model

View Source
const DriverKind = "Driver"

DriverKind a constant representing the kind of the Driver API model

View Source
const DriverTypeKind = "DriverType"

DriverTypeKind a constant representing the kind of the DriverType API model

View Source
const FunctionKind = "Function"

FunctionKind a constant representing the kind of the Function model

View Source
const ImageKind = "Image"

ImageKind a constant representing the kind of the Image model

View Source
const PolicyKind = "Policy"

PolicyKind a constant representing the kind of the Policy model

View Source
const SecretKind = "Secret"

SecretKind a constant representing the kind of the Secret model

View Source
const ServiceAccountKind = "ServiceAccount"

ServiceAccountKind a constant representing the kind of the ServiceAccount Model

View Source
const ServiceBindingKind = "ServiceBinding"

ServiceBindingKind a constant representing the kind of the Service Binding model

View Source
const ServiceClassKind = "ServiceClass"

ServiceClassKind a constant representing the kind of the Service Class model

View Source
const ServiceInstanceKind = "ServiceInstance"

ServiceInstanceKind a constant representing the kind of the Service Instance model

View Source
const ServicePlanKind = "ServicePlan"

ServicePlanKind a constant representing the kind of the Service Plan model

View Source
const SubscriptionKind = "Subscription"

SubscriptionKind a constant representing the kind of the Subscription API model

Variables

This section is empty.

Functions

func Backoff

func Backoff(timeout time.Duration, f func() error) error

Backoff runs a function with a random backoff timeout

func Close

func Close(i interface{})

Close provides a safe Close facility

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

func ParseTags(filter es.Filter, tags []string) (es.Filter, error)

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

Types

type TracingOption

type TracingOption func(*tracingOptions)

TracingOption contols the behavior of the Middleware.

Jump to

Keyboard shortcuts

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