From 49eb6361d0dbaaa13a5e075aa53b41e17576fa2c Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 4 Jan 2021 14:58:15 +0100 Subject: Add PreparedContainer::create_info() getter for getting container id for error reporting Signed-off-by: Matthias Beyer --- src/endpoint/configured.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/endpoint/configured.rs') diff --git a/src/endpoint/configured.rs b/src/endpoint/configured.rs index 8ef961a..61bd79d 100644 --- a/src/endpoint/configured.rs +++ b/src/endpoint/configured.rs @@ -193,9 +193,12 @@ impl Endpoint { } +#[derive(Getters)] pub struct PreparedContainer<'a> { endpoint: &'a Endpoint, script: Script, + + #[getset(get = "pub")] create_info: shiplift::rep::ContainerCreateInfo, } -- cgit v1.2.3