utils

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 License: Apache-2.0 Imports: 19 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 OrganizationKind = "Organization"

OrganizationKind a constant representing the kind of the Organization 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 IsDir added in v0.1.15

func IsDir(path string) (bool, error)

IsDir determines if path is a directory

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

func Tar added in v0.1.15

func Tar(source string, w io.Writer) error

Tar writes the tar stream of the source to w.

func TarGzBytes added in v0.1.15

func TarGzBytes(source string) ([]byte, error)

TarGzBytes produces a tar.gz of source path and returns its byte content

func Untar added in v0.1.15

func Untar(dst, prefix string, r io.Reader) error

Untar the tar stream r into the dst dir stripping prefix from file paths

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