pub trait SecretExt: ResourceBuilder + Sized {
// Required methods
fn new(name: impl ToString) -> Self;
fn immutable(self, yes: bool) -> Self;
fn type(self, type: impl ToString) -> Self;
fn data(
self,
data: impl IntoIterator<Item = (impl ToString, ByteString)>,
) -> Self;
fn string_data(
self,
data: impl IntoIterator<Item = (impl ToString, impl ToString)>,
) -> Self;
// Provided methods
fn image_pull_secret(
name: impl ToString,
registry: impl ToString,
username: impl ToString,
password: impl ToString,
) -> Self { ... }
fn basic_auth(
name: impl ToString,
username: impl ToString,
password: impl ToString,
) -> Self { ... }
fn ssh_auth(name: impl ToString, private_key: impl ToString) -> Self { ... }
}
Required Methods§
fn new(name: impl ToString) -> Self
fn immutable(self, yes: bool) -> Self
fn type(self, type: impl ToString) -> Self
fn data( self, data: impl IntoIterator<Item = (impl ToString, ByteString)>, ) -> Self
fn string_data( self, data: impl IntoIterator<Item = (impl ToString, impl ToString)>, ) -> Self
Provided Methods§
Sourcefn image_pull_secret(
name: impl ToString,
registry: impl ToString,
username: impl ToString,
password: impl ToString,
) -> Self
fn image_pull_secret( name: impl ToString, registry: impl ToString, username: impl ToString, password: impl ToString, ) -> Self
Creates new image pull secret object
Sourcefn basic_auth(
name: impl ToString,
username: impl ToString,
password: impl ToString,
) -> Self
fn basic_auth( name: impl ToString, username: impl ToString, password: impl ToString, ) -> Self
Creates new basic authentication secret object
fn ssh_auth(name: impl ToString, private_key: impl ToString) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.