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

Implementors§