Enum compose_yml::errors::ErrorKind []

pub enum ErrorKind {
    Msg(String),
    Yaml(Error),
    ConvertMountedPathToWindows(String),
    DoesNotConformToSchema(ValidationState),
    InterpolateInvalidSyntax(String),
    InterpolateUndefinedVariable(String),
    InterpolationDisabled(String),
    InvalidValue(StringString),
    ParseEnv(String),
    ParseGitUrl(String),
    ReadFile(PathBuf),
    UnsupportedVersion(String),
    ValidationFailed,
    WriteFile(PathBuf),
}

Variants

We could not convert a path mounted inside a Docker container to a Windows path on the host.

A value did not conform to a JSON schema.

The interpolation syntax in the specified string was invalid.

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.

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.

A string value in a docker-compose.yml file could not be parsed.

An .env file could not be parsed.

A Git URL was either invalid or not compatible with docker-compose.

An error occurred reading a file.

We don't support the specified version of docker-compose.yml.

We were unable to validate a docker-compose.yml file.

An error occurred writing a file.

Methods

impl ErrorKind

Trait Implementations

impl Debug for ErrorKind

Formats the value using the given formatter.

impl Display for ErrorKind

Formats the value using the given formatter. Read more

impl<'a> From<&'a str> for ErrorKind

Performs the conversion.

impl From<String> for ErrorKind

Performs the conversion.