1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
//
// Copyright (c) 2020-2021 science+computing ag and other contributors
//
// This program and the accompanying materials are made
// available under the terms of the Eclipse Public License 2.0
// which is available at https://www.eclipse.org/legal/epl-2.0/
//
// SPDX-License-Identifier: EPL-2.0
//
use getset::{CopyGetters, Getters};
use serde::Deserialize;
use crate::config::Endpoint;
use crate::util::docker::ImageName;
/// Configuration of the docker daemon interfacing functionality
#[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>,
#[getset(get = "pub")]
endpoints: Vec<Endpoint>,
}
|