qtypes_helper

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2018 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssembleDefaultDimensions added in v0.1.6

func AssembleDefaultDimensions(cnt *types.Container) map[string]string

func AssembleJSONDefaultDimensions added in v0.1.6

func AssembleJSONDefaultDimensions(cnt *types.ContainerJSON) map[string]string

func AssembleJSONServiceSlot added in v0.1.6

func AssembleJSONServiceSlot(cnt *types.ContainerJSON) string

AssembleServiceSlot create {{.Service.Name}}.{{.Task.Slot}}

func AssembleJSONTaskSlot added in v0.1.6

func AssembleJSONTaskSlot(cnt *types.ContainerJSON) string

AssembleServiceSlot create {{.Service.Name}}.{{.Task.Slot}}

func AssembleServiceSlot added in v0.1.6

func AssembleServiceSlot(cnt *types.Container) string

AssembleServiceSlot create {{.Service.Name}}.{{.Task.Slot}}

func AssembleTaskSlot added in v0.1.6

func AssembleTaskSlot(cnt *types.Container) string

AssembleServiceSlot create {{.Service.Name}}.{{.Task.Slot}}

func CompareMap

func CompareMap(exp, got map[string]interface{}) bool

func ContainersOneOf added in v0.1.9

func ContainersOneOf(s string, m []string) bool

func FlattenKV added in v0.1.9

func FlattenKV(kv map[string]string) (res string, err error)

func IsInput added in v0.1.3

func IsInput(list []string, item string) bool

func IsItem added in v0.1.3

func IsItem(list []string, item string) bool

IsInput checks if a list of inputs (e.g. [one, two]) matches the suffix of item (two-one)

func IsLastSource added in v0.1.3

func IsLastSource(list []string, item string) bool

IsLastSource checks if a list of inputs (e.g. [one, two]) matches the last item in SourcesPath of item [two,one]

func LogStrToInt added in v0.1.3

func LogStrToInt(level string) int

func PrefixFlatKV added in v0.1.9

func PrefixFlatKV(kv map[string]string, out map[string]interface{}, prefix string) (res map[string]interface{}, err error)

PrefixFlatKV takes a key/value map and merges each key into an existing map using a prefix.

func PrefixFlatLabels added in v0.1.9

func PrefixFlatLabels(s []string, out map[string]interface{}, prefix string) (res map[string]interface{}, err error)

PrefixFlatLabels takes a key/value slice (separated by =) and merges each key into an existing map using a prefix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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