Trait 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§

Source

fn new(name: impl ToString) -> Self

Source

fn immutable(self, yes: bool) -> Self

Source

fn type(self, type: impl ToString) -> Self

Source

fn data( self, data: impl IntoIterator<Item = (impl ToString, ByteString)>, ) -> Self

Source

fn string_data( self, data: impl IntoIterator<Item = (impl ToString, impl ToString)>, ) -> Self

Provided Methods§

Source

fn image_pull_secret( name: impl ToString, registry: impl ToString, username: impl ToString, password: impl ToString, ) -> Self

Creates new image pull secret object

Source

fn basic_auth( name: impl ToString, username: impl ToString, password: impl ToString, ) -> Self

Creates new basic authentication secret object

Source

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.

Implementors§