pub struct IdMappingOptions {
pub auto_user_ns: Option<bool>,
pub auto_user_ns_opts: Option<Box<AutoUserNsOptions>>,
pub gid_map: Option<Vec<IdMap>>,
pub host_gid_mapping: Option<bool>,
pub host_uid_mapping: Option<bool>,
pub uid_map: Option<Vec<IdMap>>,
}
Expand description
IdMappingOptions : IDMappingOptions are used for specifying how ID mapping should be set up for a layer or container.
Fields§
§auto_user_ns: Option<bool>
§auto_user_ns_opts: Option<Box<AutoUserNsOptions>>
§gid_map: Option<Vec<IdMap>>
§host_gid_mapping: Option<bool>
§host_uid_mapping: Option<bool>
UIDMap and GIDMap are used for setting up a layer’s root filesystem for use inside of a user namespace where ID mapping is being used. If HostUIDMapping/HostGIDMapping is true, no mapping of the respective type will be used. Otherwise, if UIDMap and/or GIDMap contain at least one mapping, one or both will be used. By default, if neither of those conditions apply, if the layer has a parent layer, the parent layer’s mapping will be used, and if it does not have a parent layer, the mapping which was passed to the Store object when it was initialized will be used.
uid_map: Option<Vec<IdMap>>
Implementations§
Source§impl IdMappingOptions
impl IdMappingOptions
Sourcepub fn new() -> IdMappingOptions
pub fn new() -> IdMappingOptions
IDMappingOptions are used for specifying how ID mapping should be set up for a layer or container.
Trait Implementations§
Source§impl Clone for IdMappingOptions
impl Clone for IdMappingOptions
Source§fn clone(&self) -> IdMappingOptions
fn clone(&self) -> IdMappingOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more