Enum compose_yml::errors::ErrorKind
[−]
pub enum ErrorKind { Msg(String), Yaml(Error), ConvertMountedPathToWindows(String), DoesNotConformToSchema(ValidationState), InterpolateInvalidSyntax(String), InterpolateUndefinedVariable(String), InterpolationDisabled(String), InvalidValue(String, String), ParseEnv(String), ParseGitUrl(String), ReadFile(PathBuf), UnsupportedVersion(String), ValidationFailed, WriteFile(PathBuf), }
Variants
Msg(String)
Yaml(Error)
ConvertMountedPathToWindows(String)
We could not convert a path mounted inside a Docker container to a Windows path on the host.
DoesNotConformToSchema(ValidationState)
A value did not conform to a JSON schema.
InterpolateInvalidSyntax(String)
The interpolation syntax in the specified string was invalid.
InterpolateUndefinedVariable(String)
The string contains an undefined environment variable. This is not
an error for docker-compose
(which treats undefined variables as
empty), but it is an error for us because we're a
docker-compose.yml
parsing and transforming library, and we
try not to hide errors.
InterpolationDisabled(String)
We tried to parse a string that requires environment variable
interpolation, but in a context where we've been asked not to
access the environment. This is typical when transforming
docker-compose.yml
files that we want to interpolate at a later
time.
InvalidValue(String, String)
A string value in a docker-compose.yml
file could not be
parsed.
ParseEnv(String)
An .env
file could not be parsed.
ParseGitUrl(String)
A Git URL was either invalid or not compatible with
docker-compose
.
ReadFile(PathBuf)
An error occurred reading a file.
UnsupportedVersion(String)
We don't support the specified version of docker-compose.yml
.
ValidationFailed
We were unable to validate a docker-compose.yml
file.
WriteFile(PathBuf)
An error occurred writing a file.