diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-10-14 18:53:02 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-10-14 18:53:02 +0200 |
commit | c58c6ea8cd054a8606a91fe48cd4d1b3f6052403 (patch) | |
tree | 872e6d4e5d6e131c863a3a3530aff85a1a015106 /src/config | |
parent | 6eae5a48378f150ee8325d8ce22561874178c957 (diff) |
Add more configuration for docker endpoints
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/mod.rs | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs index 3c48023..4bccc8e 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -44,8 +44,34 @@ impl Deref for Configuration { } -#[derive(Debug, Getters, Deserialize)] +#[derive(Debug, Getters, CopyGetters, Deserialize)] pub struct DockerConfig { + /// The required docker version + /// + /// If not set, it will not be checked, which might result in weird things? + /// + /// # Note + /// + /// Because the docker API returns strings, not a version object, each compatible version must + /// be listed. + #[getset(get = "pub")] + docker_versions: Option<Vec<String>>, + + /// The required docker api version + /// + /// If not set, it will not be checked, which might result in weird things? + /// + /// # Note + /// + /// Because the docker API returns strings, not a version object, each compatible version must + /// be listed. + #[getset(get = "pub")] + docker_api_versions: Option<Vec<String>>, + + /// Whether the program should verify that the required images are present. + /// You want this to be true normally. + #[getset(get_copy = "pub")] + verify_images_present: bool, #[getset(get = "pub")] images: Vec<ImageName>, |