pub struct IdMappingOptions {
    pub auto_user_ns: Option<bool>,
    pub auto_user_ns_opts: Option<AutoUserNsOptions>,
    pub gid_map: Option<Vec<IdMap, Global>>,
    pub host_gid_mapping: Option<bool>,
    pub host_uid_mapping: Option<bool>,
    pub uid_map: Option<Vec<IdMap, Global>>,
}
Expand description

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<AutoUserNsOptions>§gid_map: Option<Vec<IdMap, Global>>§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, Global>>

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more