Documentation ¶
Index ¶
- func CreateTempPath(prefix string, appFs afero.Afero) (string, error)
- func IsExisting(fs afero.Fs, path string) (bool, error)
- func NewFilesystem() afero.Afero
- func NewMemoryFilesystem() afero.Afero
- func NewReadOnlyFs() afero.Afero
- func RemoveFolderAndLogError(log logr.Logger, fs afero.Fs, path string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTempPath ¶
CreateTempPath creates a temp path with the prefix using the Afero FS
func IsExisting ¶
IsExisting returns bool whether path exists
func NewFilesystem ¶
NewFilesystem returns a local filesystem based afero FS implementation.
func NewMemoryFilesystem ¶
NewMemoryFilesystem returns an in-memory afero FS implementation.
func RemoveFolderAndLogError ¶
RemoveFolderAndLogError removes the specified folder. If the delete fails, no error is returned, but an error is logged Used in cases where we're cleaning up after encountering an error, but want to return the original error instead.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.