utils

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeWeight

func ComputeWeight(n, t, c float64) float64

func LegalDomain

func LegalDomain(str string) error

func RandomString

func RandomString(n int) string

func StripSpaces

func StripSpaces(str string) string

func YamlServices

func YamlServices(yaml []byte, env map[string]string) (*ctypes.Config, error)

func YamlVariables

func YamlVariables(yaml []byte) []string

YamlVariables provide ability to parse all of shell variables like: $VARIABLE, ${VARIABLE}, ${VARIABLE:-default}, ${VARIABLE-default}

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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