Documentation ¶
Index ¶
- func CreateRawConfig(contents []byte) (*config.RawConfig, error)
- func Interpolate(key string, data *interface{}, env map[string]string) error
- func InterpolateRawServiceMap(baseRawServices *config.RawServiceMap, vars map[string]string) error
- func IsValidRemote(remote string) bool
- func Merge(existingServices map[string]*config.ServiceConfig, vars map[string]string, ...) (*config.Config, error)
- func MergeServicesV1(vars map[string]string, resourceLookup lookup.ResourceLookup, file string, ...) (map[string]*config.ServiceConfigV1, error)
- func MergeServicesV2(vars map[string]string, resourceLookup lookup.ResourceLookup, file string, ...) (map[string]*config.ServiceConfig, error)
- func TryConvertStringsToInts(serviceMap config.RawServiceMap, fields map[string]bool) (config.RawServiceMap, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRawConfig ¶
Createconfig.RawConfig unmarshals contents to config and creates config based on version
func Interpolate ¶
Interpolate replaces variables in a map entry
func InterpolateRawServiceMap ¶
func InterpolateRawServiceMap(baseRawServices *config.RawServiceMap, vars map[string]string) error
func IsValidRemote ¶
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.
Click to show internal directories.
Click to hide internal directories.