parser

package
v0.15.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRawConfig

func CreateRawConfig(contents []byte) (*config.RawConfig, error)

Createconfig.RawConfig unmarshals contents to config and creates config based on version

func Interpolate

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

Interpolate replaces variables in a map entry

func InterpolateRawServiceMap

func InterpolateRawServiceMap(baseRawServices *config.RawServiceMap, vars map[string]string) error

func IsValidRemote

func IsValidRemote(remote string) bool

IsValidRemote checks if the specified string is a valid remote (for builds)

func Merge

func Merge(existingServices map[string]*config.ServiceConfig, vars map[string]string, resourceLookup lookup.ResourceLookup, templateVersion *catalog.TemplateVersion, file string, contents []byte) (*config.Config, error)

Merge merges a compose file into an existing set of service configs

func MergeServicesV1

func MergeServicesV1(vars map[string]string, resourceLookup lookup.ResourceLookup, file string, datas config.RawServiceMap) (map[string]*config.ServiceConfigV1, error)

MergeServicesV1 merges a v1 compose file into an existing set of service configs

func MergeServicesV2

func MergeServicesV2(vars map[string]string, resourceLookup lookup.ResourceLookup, file string, datas config.RawServiceMap) (map[string]*config.ServiceConfig, error)

MergeServicesV2 merges a v2 compose file into an existing set of service configs

func TryConvertStringsToInts

func TryConvertStringsToInts(serviceMap config.RawServiceMap, fields map[string]bool) (config.RawServiceMap, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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