pub struct ExpectedContainer {
pub id: String,
pub name: String,
pub image_id: String,
pub labels: BTreeMap<String, String>,
pub port: Option<FixedPort>,
pub image_exposed_ports: BTreeSet<String>,
}Fields§
§id: String§name: String§image_id: StringNative RootfsImageID, full lowercase hex without Docker sha256: prefix.
labels: BTreeMap<String, String>Exact full merged label map, including any inherited image labels.
port: Option<FixedPort>Fixed single TCP loopback mapping, or no published ports.
image_exposed_ports: BTreeSet<String>Exact image-declared ports; not host publishing authority.
Implementations§
Source§impl ExpectedContainer
impl ExpectedContainer
pub fn validate(&self) -> Result<(), &'static str>
Sourcepub fn match_inspect(
&self,
method: &str,
route: &str,
status: u16,
body: &[u8],
) -> Result<State, &'static str>
pub fn match_inspect( &self, method: &str, route: &str, status: u16, body: &[u8], ) -> Result<State, &'static str>
Present only: never convert a missing container into an owned object. Uses the same response bytes for state and ownership checks. It does not validate mounts, namespaces, env or all other create-plan fields.
Trait Implementations§
Source§impl Clone for ExpectedContainer
impl Clone for ExpectedContainer
Auto Trait Implementations§
impl Freeze for ExpectedContainer
impl RefUnwindSafe for ExpectedContainer
impl Send for ExpectedContainer
impl Sync for ExpectedContainer
impl Unpin for ExpectedContainer
impl UnsafeUnpin for ExpectedContainer
impl UnwindSafe for ExpectedContainer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more