utils

package
v0.3.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 License: Apache-2.0 Imports: 12 Imported by: 6

Documentation

Overview

most borrowed from: https://github.com/docker/libcompose/blob/master/config/interpolation.go

Deprecated, Remove Later

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeWeight

func ComputeWeight(n, t, c float64) float64

func Interpolate

func Interpolate(key string, data *interface{}, envMap map[string]string) error

Interpolate replaces variables in a map entry

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