{"modulePath":"github.com/werf/3p-docker-cli","version":"v0.0.0-20241022120545-c34b80bc65ca","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package loader\n\n## Functions\n\n```go\nfunc GetDeprecatedProperties(configDicts ...map[string]any) map[string]string\n```\nGetDeprecatedProperties returns the list of any deprecated properties that are used in the compose files.\n\n```go\nfunc GetUnsupportedProperties(configDicts ...map[string]any) []string\n```\nGetUnsupportedProperties returns the list of any unsupported properties that are used in the Compose files.\n\n```go\nfunc Load(configDetails types.ConfigDetails, opt ...func(*Options)) (*types.Config, error)\n```\nLoad reads a ConfigDetails and returns a fully loaded configuration\n\n```go\nfunc LoadConfigObjs(source map[string]any, details types.ConfigDetails) (map[string]types.ConfigObjConfig, error)\n```\nLoadConfigObjs produces a ConfigObjConfig map from a compose file Dict the source Dict is not validated if directly used. Use Load() to enable validation\n\n```go\nfunc LoadNetworks(source map[string]any, version string) (map[string]types.NetworkConfig, error)\n```\nLoadNetworks produces a NetworkConfig map from a compose file Dict the source Dict is not validated if directly used. Use Load() to enable validation\n\n```go\nfunc LoadSecrets(source map[string]any, details types.ConfigDetails) (map[string]types.SecretConfig, error)\n```\nLoadSecrets produces a SecretConfig map from a compose file Dict the source Dict is not validated if directly used. Use Load() to enable validation\n\n```go\nfunc LoadService(name string, serviceDict map[string]any, workingDir string, lookupEnv template.Mapping) (*types.ServiceConfig, error)\n```\nLoadService produces a single ServiceConfig from a compose file Dict the serviceDict is not validated if directly used. Use Load() to enable validation\n\n```go\nfunc LoadServices(servicesDict map[string]any, workingDir string, lookupEnv template.Mapping) ([]types.ServiceConfig, error)\n```\nLoadServices produces a ServiceConfig map from a compose file Dict the servicesDict is not validated if directly used. Use Load() to enable validation\n\n```go\nfunc LoadVolumes(source map[string]any, version string) (map[string]types.VolumeConfig, error)\n```\nLoadVolumes produces a VolumeConfig map from a compose file Dict the source Dict is not validated if directly used. Use Load() to enable validation\n\n```go\nfunc ParseVolume(spec string) (types.ServiceVolumeConfig, error)\n```\nParseVolume parses a volume spec without any knowledge of the target platform\n\n```go\nfunc ParseYAML(source []byte) (map[string]any, error)\n```\nParseYAML reads the bytes from a file, parses the bytes into a mapping structure, and returns it.\n\n```go\nfunc Transform(source any, target any, additionalTransformers ...Transformer) error\n```\nTransform converts the source into the target struct with compose types transformer and the specified transformers if any.\n\n```go\nfunc WithDiscardEnvFiles(options *Options)\n```\nWithDiscardEnvFiles sets the Options to discard the \\`env\\_file\\` section after resolving to the \\`environment\\` section\n\n## Types\n\n```go\ntype ForbiddenPropertiesError struct {\n\tProperties map[string]string\n}\n```\nForbiddenPropertiesError is returned when there are properties in the Compose file that are forbidden.\n\n```go\nfunc (e *ForbiddenPropertiesError) Error() string\n```\n\n```go\ntype Options struct {\n\t// Skip schema validation\n\tSkipValidation bool\n\t// Skip interpolation\n\tSkipInterpolation bool\n\t// Interpolation options\n\tInterpolate *interp.Options\n\t// contains filtered or unexported fields\n}\n```\nOptions supported by Load\n\n```go\ntype Transformer struct {\n\tTypeOf reflect.Type\n\tFunc   TransformerFunc\n}\n```\nTransformer defines a map to type transformer\n\n```go\ntype TransformerFunc func(any) (any, error)\n```\nTransformerFunc defines a function to perform the actual transformation\n\n","path":"github.com/werf/3p-docker-cli/cli/compose/loader","name":"loader","synopsis":"","isRedistributable":true}
