pub struct K3sCmd { /* private fields */ }Available on crate feature
k3s only.Expand description
Configuration for K3s server command-line arguments.
This struct allows you to customize the K3s server startup configuration by setting various options like the container snapshotter.
Implementations§
Source§impl K3sCmd
impl K3sCmd
Sourcepub fn with_snapshotter(self, snapshotter: impl Into<String>) -> Self
pub fn with_snapshotter(self, snapshotter: impl Into<String>) -> Self
Sets the container snapshotter for the K3s server.
The snapshotter is responsible for managing container filesystem snapshots. Common values include “overlayfs”, “fuse-overlayfs”, or “native”.
§Example
use testcontainers_modules::k3s::K3sCmd;
let cmd = K3sCmd::default().with_snapshotter("overlayfs");Trait Implementations§
Source§impl IntoIterator for &K3sCmd
impl IntoIterator for &K3sCmd
Auto Trait Implementations§
impl Freeze for K3sCmd
impl RefUnwindSafe for K3sCmd
impl Send for K3sCmd
impl Sync for K3sCmd
impl Unpin for K3sCmd
impl UnwindSafe for K3sCmd
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request