#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Layer {
#[prost(enumeration = "layer::Directive", tag = "1")]
pub directive: i32,
#[prost(string, tag = "2")]
pub arguments: ::prost::alloc::string::String,
}
pub mod layer {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Directive {
Unspecified = 0,
Maintainer = 1,
Run = 2,
Cmd = 3,
Label = 4,
Expose = 5,
Env = 6,
Add = 7,
Copy = 8,
Entrypoint = 9,
Volume = 10,
User = 11,
Workdir = 12,
Arg = 13,
Onbuild = 14,
Stopsignal = 15,
Healthcheck = 16,
Shell = 17,
}
impl Directive {
pub fn as_str_name(&self) -> &'static str {
match self {
Directive::Unspecified => "DIRECTIVE_UNSPECIFIED",
Directive::Maintainer => "MAINTAINER",
Directive::Run => "RUN",
Directive::Cmd => "CMD",
Directive::Label => "LABEL",
Directive::Expose => "EXPOSE",
Directive::Env => "ENV",
Directive::Add => "ADD",
Directive::Copy => "COPY",
Directive::Entrypoint => "ENTRYPOINT",
Directive::Volume => "VOLUME",
Directive::User => "USER",
Directive::Workdir => "WORKDIR",
Directive::Arg => "ARG",
Directive::Onbuild => "ONBUILD",
Directive::Stopsignal => "STOPSIGNAL",
Directive::Healthcheck => "HEALTHCHECK",
Directive::Shell => "SHELL",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"DIRECTIVE_UNSPECIFIED" => Some(Self::Unspecified),
"MAINTAINER" => Some(Self::Maintainer),
"RUN" => Some(Self::Run),
"CMD" => Some(Self::Cmd),
"LABEL" => Some(Self::Label),
"EXPOSE" => Some(Self::Expose),
"ENV" => Some(Self::Env),
"ADD" => Some(Self::Add),
"COPY" => Some(Self::Copy),
"ENTRYPOINT" => Some(Self::Entrypoint),
"VOLUME" => Some(Self::Volume),
"USER" => Some(Self::User),
"WORKDIR" => Some(Self::Workdir),
"ARG" => Some(Self::Arg),
"ONBUILD" => Some(Self::Onbuild),
"STOPSIGNAL" => Some(Self::Stopsignal),
"HEALTHCHECK" => Some(Self::Healthcheck),
"SHELL" => Some(Self::Shell),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Fingerprint {
#[prost(string, tag = "1")]
pub v1_name: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "2")]
pub v2_blob: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, tag = "3")]
pub v2_name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Basis {
#[prost(string, tag = "1")]
pub resource_url: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub fingerprint: ::core::option::Option<Fingerprint>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Details {
#[prost(message, optional, tag = "1")]
pub derived_image: ::core::option::Option<Derived>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Derived {
#[prost(message, optional, tag = "1")]
pub fingerprint: ::core::option::Option<Fingerprint>,
#[prost(int32, tag = "2")]
pub distance: i32,
#[prost(message, repeated, tag = "3")]
pub layer_info: ::prost::alloc::vec::Vec<Layer>,
#[prost(string, tag = "4")]
pub base_resource_url: ::prost::alloc::string::String,
}