ioutils

package
v0.0.0-...-50e9b76 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTempPath

func CreateTempPath(prefix string, appFs afero.Afero) (string, error)

CreateTempPath creates a temp path with the prefix using the Afero FS

func IsExisting

func IsExisting(fs afero.Fs, path string) (bool, error)

IsExisting returns bool whether path exists

func NewFilesystem

func NewFilesystem() afero.Afero

NewFilesystem returns a local filesystem based afero FS implementation.

func NewMemoryFilesystem

func NewMemoryFilesystem() afero.Afero

NewMemoryFilesystem returns an in-memory afero FS implementation.

func NewReadOnlyFs

func NewReadOnlyFs() afero.Afero

NewReadOnlyFs returns a read-only file system

func RemoveFolderAndLogError

func RemoveFolderAndLogError(log logr.Logger, fs afero.Fs, path string)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL