#[non_exhaustive]pub struct LustreRootSquashConfigurationBuilder { /* private fields */ }Expand description
A builder for LustreRootSquashConfiguration.
Implementations§
source§impl LustreRootSquashConfigurationBuilder
impl LustreRootSquashConfigurationBuilder
sourcepub fn root_squash(self, input: impl Into<String>) -> Self
pub fn root_squash(self, input: impl Into<String>) -> Self
You enable root squash by setting a user ID (UID) and group ID (GID) for the file system in the format UID:GID (for example, 365534:65534). The UID and GID values can range from 0 to 4294967294:
-
A non-zero value for UID and GID enables root squash. The UID and GID values can be different, but each must be a non-zero value.
-
A value of
0(zero) for UID and GID indicates root, and therefore disables root squash.
When root squash is enabled, the user ID and group ID of a root user accessing the file system are re-mapped to the UID and GID you provide.
sourcepub fn set_root_squash(self, input: Option<String>) -> Self
pub fn set_root_squash(self, input: Option<String>) -> Self
You enable root squash by setting a user ID (UID) and group ID (GID) for the file system in the format UID:GID (for example, 365534:65534). The UID and GID values can range from 0 to 4294967294:
-
A non-zero value for UID and GID enables root squash. The UID and GID values can be different, but each must be a non-zero value.
-
A value of
0(zero) for UID and GID indicates root, and therefore disables root squash.
When root squash is enabled, the user ID and group ID of a root user accessing the file system are re-mapped to the UID and GID you provide.
sourcepub fn no_squash_nids(self, input: impl Into<String>) -> Self
pub fn no_squash_nids(self, input: impl Into<String>) -> Self
Appends an item to no_squash_nids.
To override the contents of this collection use set_no_squash_nids.
When root squash is enabled, you can optionally specify an array of NIDs of clients for which root squash does not apply. A client NID is a Lustre Network Identifier used to uniquely identify a client. You can specify the NID as either a single address or a range of addresses:
-
A single address is described in standard Lustre NID format by specifying the client’s IP address followed by the Lustre network ID (for example,
10.0.1.6@tcp). -
An address range is described using a dash to separate the range (for example,
10.0.[2-10].[1-255]@tcp).
sourcepub fn set_no_squash_nids(self, input: Option<Vec<String>>) -> Self
pub fn set_no_squash_nids(self, input: Option<Vec<String>>) -> Self
When root squash is enabled, you can optionally specify an array of NIDs of clients for which root squash does not apply. A client NID is a Lustre Network Identifier used to uniquely identify a client. You can specify the NID as either a single address or a range of addresses:
-
A single address is described in standard Lustre NID format by specifying the client’s IP address followed by the Lustre network ID (for example,
10.0.1.6@tcp). -
An address range is described using a dash to separate the range (for example,
10.0.[2-10].[1-255]@tcp).
sourcepub fn build(self) -> LustreRootSquashConfiguration
pub fn build(self) -> LustreRootSquashConfiguration
Consumes the builder and constructs a LustreRootSquashConfiguration.
Trait Implementations§
source§impl Clone for LustreRootSquashConfigurationBuilder
impl Clone for LustreRootSquashConfigurationBuilder
source§fn clone(&self) -> LustreRootSquashConfigurationBuilder
fn clone(&self) -> LustreRootSquashConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for LustreRootSquashConfigurationBuilder
impl Default for LustreRootSquashConfigurationBuilder
source§fn default() -> LustreRootSquashConfigurationBuilder
fn default() -> LustreRootSquashConfigurationBuilder
source§impl PartialEq<LustreRootSquashConfigurationBuilder> for LustreRootSquashConfigurationBuilder
impl PartialEq<LustreRootSquashConfigurationBuilder> for LustreRootSquashConfigurationBuilder
source§fn eq(&self, other: &LustreRootSquashConfigurationBuilder) -> bool
fn eq(&self, other: &LustreRootSquashConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.