lightshuttle-spec 0.4.0

Manifest to container specification resolution for LightShuttle
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Error type returned while resolving a manifest resource into a
//! container specification.

/// Shorthand alias for `std::result::Result<T, SpecError>`.
pub type Result<T> = std::result::Result<T, SpecError>;

/// Errors raised while building a [`crate::ContainerSpec`] from a
/// manifest resource declaration.
#[derive(Debug, thiserror::Error)]
pub enum SpecError {
    /// The resolved specification is structurally invalid (bad port,
    /// volume, duration or healthcheck declaration).
    #[error("invalid container spec: {0}")]
    InvalidSpec(String),
}