risingwave_pb/sim/
secret.rs#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecretMetaBackend {
#[prost(bytes = "vec", tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecretHashicropValutBackend {
#[prost(string, tag = "1")]
pub host: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub vault_token: ::prost::alloc::string::String,
}
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Secret {
#[prost(oneof = "secret::SecretBackend", tags = "1, 2")]
pub secret_backend: ::core::option::Option<secret::SecretBackend>,
}
pub mod secret {
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum SecretBackend {
#[prost(message, tag = "1")]
Meta(super::SecretMetaBackend),
#[prost(message, tag = "2")]
HashicorpVault(super::SecretHashicropValutBackend),
}
}
#[derive(prost_helpers::AnyPB)]
#[derive(Eq, Hash)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SecretRef {
#[prost(uint32, tag = "1")]
pub secret_id: u32,
#[prost(enumeration = "secret_ref::RefAsType", tag = "2")]
pub ref_as: i32,
}
pub mod secret_ref {
#[derive(prost_helpers::AnyPB)]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum RefAsType {
Unspecified = 0,
Text = 1,
File = 2,
}
impl RefAsType {
pub fn as_str_name(&self) -> &'static str {
match self {
RefAsType::Unspecified => "UNSPECIFIED",
RefAsType::Text => "TEXT",
RefAsType::File => "FILE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNSPECIFIED" => Some(Self::Unspecified),
"TEXT" => Some(Self::Text),
"FILE" => Some(Self::File),
_ => None,
}
}
}
}