summaryrefslogtreecommitdiffstats
path: root/src/endpoint/configuration.rs
blob: a9b4688039fb36b177530c546a6e7d84439487a8 (plain)
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
//
// 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::Getters;
use typed_builder::TypedBuilder;

use crate::util::docker::ImageName;

#[derive(Getters, TypedBuilder)]
pub struct EndpointConfiguration {
    #[getset(get = "pub")]
    endpoint: crate::config::Endpoint,

    #[getset(get = "pub")]
    #[builder(default)]
    required_images: Vec<ImageName>,

    #[getset(get = "pub")]
    #[builder(default)]
    required_docker_versions: Option<Vec<String>>,

    #[getset(get = "pub")]
    #[builder(default)]
    required_docker_api_versions: Option<Vec<String>>,
}