dockercompose

package
v0.0.0-...-60f4931 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPaths

func GetPaths(composePaths []string) (string, []string, error)

func Load

func Load(composePath string, overridePaths, services []string) (types.Project, error)

Load loads and merges the given compose files. If `services` is non-empty, the return config only includes the services specified in `services`.

func Marshal

func Marshal(cfg types.Project) ([]byte, error)

Marshal serializes a parsed compose spec so that it can be loaded by the Unmarshal function. Note that `Marshal` and `Unmarshal` used to use `types.Config` types, but switching to `types.Project` is fully backwards compatible, since `types.Project` and `types.Config` both have the same field names and types for `Services`, `Networks`, and `Volumes`.

func ParseNamedBindVolume

func ParseNamedBindVolume(vol types.VolumeConfig) (source string, ok bool)

func Unmarshal

func Unmarshal(b []byte) (parsed types.Project, err error)

Unmarshal loads the parsed compose spec that was serialized by the Marshal function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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