pub struct DiskFileSystem;Expand description
The real on-disk FileSystem: Go’s zero-argument NewClient
defaults to filesys.MakeFsOnDisk(), and production callers of this
port’s Client::new need the equivalent – every FileSystem
implementor elsewhere in the workspace is test-only (an in-memory
map), since nothing needed a real-disk one until a production caller
(the deployer::kustomize manager) had an on-disk kustomization
directory, built by builtin::materialize_builtin_overlay, to build.
Trait Implementations§
Source§impl Clone for DiskFileSystem
impl Clone for DiskFileSystem
Source§fn clone(&self) -> DiskFileSystem
fn clone(&self) -> DiskFileSystem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DiskFileSystem
Source§impl Debug for DiskFileSystem
impl Debug for DiskFileSystem
Source§impl Default for DiskFileSystem
impl Default for DiskFileSystem
Source§fn default() -> DiskFileSystem
fn default() -> DiskFileSystem
Returns the “default value” for a type. Read more
Source§impl FileSystem for DiskFileSystem
impl FileSystem for DiskFileSystem
fn write_file(&self, path: &str, content: &[u8]) -> Result<()>
fn read_file(&self, path: &str) -> Result<Vec<u8>>
Source§fn walk(&self, dir: &str) -> Result<Vec<String>>
fn walk(&self, dir: &str) -> Result<Vec<String>>
Returns every file path under
dir, recursively. The default
implementation reports “unsupported”: a FileSystem without a
real walk cannot be staged onto disk, so any Client::build
call against it fails with KustomizeError::BuildFailed
rather than silently building an empty directory.Auto Trait Implementations§
impl Freeze for DiskFileSystem
impl RefUnwindSafe for DiskFileSystem
impl Send for DiskFileSystem
impl Sync for DiskFileSystem
impl Unpin for DiskFileSystem
impl UnsafeUnpin for DiskFileSystem
impl UnwindSafe for DiskFileSystem
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more