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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
impl_opts_required_builder!(url =>
    /// Adjust how a manifest list is created.
    ManifestCreate,
    ///
    /// Parameters:
    /// * name - Manifest list name.
    name => "name"
);

impl ManifestCreateOptsBuilder {
    impl_url_bool_field!(
        /// Add all contents if given list.
        all => "all"
    );

    impl_url_str_field!(
        /// Name of the image.
        image => "image"
    );
}

impl_opts_builder!(json =>
    /// Adjust how an image is added to a manifest list.
    ManifestImageAdd
);

impl ManifestImageAddOptsBuilder {
    impl_field!(
        all: bool => "all"
    );

    impl_vec_field!(
        annotation => "annotation"
    );

    impl_str_field!(
        arch => "arch"
    );

    impl_vec_field!(
        features => "features"
    );

    impl_vec_field!(
        images => "images"
    );

    impl_str_field!(
        os => "os"
    );

    impl_str_field!(
        os_version => "os_version"
    );

    impl_str_field!(
        variant => "variant"
    );
}

impl_opts_required_builder!(url =>
    /// Adjust how a manifest list is pushed to a registry.
    ManifestPush,
    /// The destination for the manifest
    destination => "destination"
);

impl ManifestPushOptsBuilder {
    impl_url_bool_field!(
        /// Push all images.
        all => "all"
    );
}