Trait k8s_openapi_ext::SecretExt
source · 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