Help us shape the future of Go! Take the 2026 Go Developer Survey

compose

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ExtrapolationPattern is the variable regexp pattern used to interpolate or extract variables when rendering
	ExtrapolationPattern = regexp.MustCompile(patternString)
)

Functions

func ExtractVariables

func ExtractVariables(data []byte, pattern *regexp.Regexp) (map[string]string, error)

ExtractVariables extracts the variables from the specified compose data This is a small helper to docker/cli template.ExtractVariables function

func Load

func Load(composes [][]byte, apply func(string) (string, error)) ([]composetypes.ConfigFile, map[string]string, error)

Load applies the specified function when loading a slice of compose data

Types

This section is empty.

Jump to

Keyboard shortcuts

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