pub trait ConfigMapExt: ResourceBuilder {
    // Required methods
    fn new(name: impl ToString) -> Self;
    fn immutable(self, yes: bool) -> Self;
    fn binary_data(
        self,
        data: impl IntoIterator<Item = (impl ToString, ByteString)>
    ) -> Self;
    fn data(
        self,
        data: impl IntoIterator<Item = (impl ToString, impl ToString)>
    ) -> Self;
    fn data_mut(&mut self) -> &mut BTreeMap<String, String>;
    fn binary_data_mut(&mut self) -> &mut BTreeMap<String, ByteString>;
}
Expand description

Extension trait for corev1::ConfigMap. Fluent builders and mutable accessors

Required Methods§

source

fn new(name: impl ToString) -> Self

Creates new corev1::ConfigMap object with given name`

source

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

Initializes immutable field

source

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

Initializes binary_data field

source

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

Initializes data field

source

fn data_mut(&mut self) -> &mut BTreeMap<String, String>

Mutable access to data. Initializes data with empty BTreeMap if absent

source

fn binary_data_mut(&mut self) -> &mut BTreeMap<String, ByteString>

Mutable access to binary_data. Initializes binary_data with empty BTreeMap if absent

Implementors§