Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert ¶
func Convert(src, target interface{}) error
Convert converts a struct (src) to another one (target) using yaml marshalling/unmarshalling. If the structure are not compatible, this will throw an error as the unmarshalling will fail.
func VersionBetween ¶
func VersionGreaterThan ¶
func VersionSatisfiesRange ¶
Types ¶
type Config ¶
type Config struct { Version string `yaml:"version,omitempty"` Services RawServiceMap `yaml:"services,omitempty"` Volumes map[string]interface{} `yaml:"volumes,omitempty"` Networks map[string]interface{} `yaml:"networks,omitempty"` }
Config holds libcompose top level configuration
func CreateConfig ¶
CreateConfig unmarshals bytes to config and creates config based on version
type RawService ¶
type RawService map[string]interface{}
RawService is represent a Service in map form unparsed
type RawServiceMap ¶
type RawServiceMap map[string]RawService
RawServiceMap is a collection of RawServices
Click to show internal directories.
Click to hide internal directories.