package
0.0.0-20241009102611-39055d018f10
Repository: https://github.com/carbynestack/ephemeral.git
Documentation: pkg.go.dev
# Functions
NewCommander returns a new commander.
ReadFile reads file content for a given file location.
# Variables
Fio is a pointer to the shared FileIO implementation.
# Structs
Commander is a wrapper around os/exec.Command().
FileErrorPair is a tuple of File and error as returned by some MockedFileIO methods.
MockedBrokenRoundTripper mocks http.RoundTripper for testing which will always result in an error.
MockedFileIO implements fileIO as a mock for testing.
MockedRoundTripper mocks http.RoundTripper for testing which always returns successful.
OSFileIO implements fileIO backed by default os methods.
ReadLineResponse is a tuple of a string and an error as returned by MockedFileIO.ReadLine.
SimpleFileMock mocks os.File i/o for testing.
# Type aliases
CreatePathResponse is used to define the default response returned by MockedFileIO.CreatePath calls.
CreatePipeResponse is used to define the default response returned by MockedFileIO.CreatePipe calls.
DeleteResponse is used to define the default response returned by MockedFileIO.Delete calls.
OpenReadResponse is used to define the default response returned by MockedFileIO.OpenRead calls.
OpenWriteOrCreateResponse is used to define the default response returned by MockedFileIO.OpenWriteOrCreate calls.
OpenWritePipeResponse is used to define the default response returned by MockedFileIO.OpenWritePipe calls.