Documentation ¶
Index ¶
- func GetDeprecatedProperties(configDicts ...map[string]interface{}) map[string]string
- func GetUnsupportedProperties(configDicts ...map[string]interface{}) []string
- func LoadService(name string, serviceDict map[string]interface{}, workingDir string, ...) (*templatetypes.ServiceConfig, error)
- func LoadServices(servicesDict map[string]interface{}, workingDir string, ...) ([]templatetypes.ServiceConfig, error)
- func LoadTemplate(configDict map[string]interface{}) (*templatetypes.Config, error)
- func ParseVolume(spec string) (templatetypes.ServiceVolumeConfig, error)
- type ForbiddenPropertiesError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDeprecatedProperties ¶
GetDeprecatedProperties returns the list of any deprecated properties that are used in the compose files.
func GetUnsupportedProperties ¶
GetUnsupportedProperties returns the list of any unsupported properties that are used in the Compose files.
func LoadService ¶
func LoadService(name string, serviceDict map[string]interface{}, workingDir string, lookupEnv template.Mapping) (*templatetypes.ServiceConfig, error)
LoadService produces a single ServiceConfig from a compose file Dict the serviceDict is not validated if directly used. Use Load() to enable validation
func LoadServices ¶
func LoadServices(servicesDict map[string]interface{}, workingDir string, lookupEnv template.Mapping) ([]templatetypes.ServiceConfig, error)
LoadServices produces a ServiceConfig map from a compose file Dict the servicesDict is not validated if directly used. Use Load() to enable validation
func LoadTemplate ¶
func LoadTemplate(configDict map[string]interface{}) (*templatetypes.Config, error)
LoadTemplate loads a config without resolving the variables
func ParseVolume ¶
func ParseVolume(spec string) (templatetypes.ServiceVolumeConfig, error)
ParseVolume parses a volume spec without any knowledge of the target platform
Types ¶
type ForbiddenPropertiesError ¶
ForbiddenPropertiesError is returned when there are properties in the Compose file that are forbidden.
func (*ForbiddenPropertiesError) Error ¶
func (e *ForbiddenPropertiesError) Error() string