Documentation ¶
Index ¶
- type Agent
- type Command
- func (_m *Command) PrintableCommandArgs() string
- func (_m *Command) Run() error
- func (_m *Command) RunAndReturnExitCode() (int, error)
- func (_m *Command) RunAndReturnTrimmedCombinedOutput() (string, error)
- func (_m *Command) RunAndReturnTrimmedOutput() (string, error)
- func (_m *Command) Start() error
- func (_m *Command) Wait() error
- type Factory
- type FileManager
- func (_m *FileManager) Open(path string) (*os.File, error)
- func (_m *FileManager) OpenReaderIfExists(path string) (io.Reader, error)
- func (_m *FileManager) ReadDirEntryNames(path string) ([]string, error)
- func (_m *FileManager) Remove(path string) error
- func (_m *FileManager) RemoveAll(path string) error
- func (_m *FileManager) Write(path string, value string, perm fs.FileMode) error
- func (_m *FileManager) WriteBytes(path string, value []byte) error
- type Logger
- func (_m *Logger) Debugf(format string, v ...interface{})
- func (_m *Logger) Donef(format string, v ...interface{})
- func (_m *Logger) EnableDebugLog(enable bool)
- func (_m *Logger) Errorf(format string, v ...interface{})
- func (_m *Logger) Infof(format string, v ...interface{})
- func (_m *Logger) Printf(format string, v ...interface{})
- func (_m *Logger) Println()
- func (_m *Logger) TDebugf(format string, v ...interface{})
- func (_m *Logger) TDonef(format string, v ...interface{})
- func (_m *Logger) TErrorf(format string, v ...interface{})
- func (_m *Logger) TInfof(format string, v ...interface{})
- func (_m *Logger) TPrintf(format string, v ...interface{})
- func (_m *Logger) TWarnf(format string, v ...interface{})
- func (_m *Logger) Warnf(format string, v ...interface{})
- type PathProvider
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
Agent is an autogenerated mock type for the Agent type
func (*Agent) DeleteKeys ¶
DeleteKeys provides a mock function with given fields:
type Command ¶
Command is an autogenerated mock type for the Command type
func NewCommand ¶
NewCommand creates a new instance of Command. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Command) PrintableCommandArgs ¶
PrintableCommandArgs provides a mock function with given fields:
func (*Command) RunAndReturnExitCode ¶
RunAndReturnExitCode provides a mock function with given fields:
func (*Command) RunAndReturnTrimmedCombinedOutput ¶
RunAndReturnTrimmedCombinedOutput provides a mock function with given fields:
func (*Command) RunAndReturnTrimmedOutput ¶
RunAndReturnTrimmedOutput provides a mock function with given fields:
type FileManager ¶
FileManager is an autogenerated mock type for the FileManager type
func NewFileManager ¶
func NewFileManager(t interface { mock.TestingT Cleanup(func()) }) *FileManager
NewFileManager creates a new instance of FileManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*FileManager) Open ¶
func (_m *FileManager) Open(path string) (*os.File, error)
Open provides a mock function with given fields: path
func (*FileManager) OpenReaderIfExists ¶
func (_m *FileManager) OpenReaderIfExists(path string) (io.Reader, error)
OpenReaderIfExists provides a mock function with given fields: path
func (*FileManager) ReadDirEntryNames ¶
func (_m *FileManager) ReadDirEntryNames(path string) ([]string, error)
ReadDirEntryNames provides a mock function with given fields: path
func (*FileManager) Remove ¶
func (_m *FileManager) Remove(path string) error
Remove provides a mock function with given fields: path
func (*FileManager) RemoveAll ¶
func (_m *FileManager) RemoveAll(path string) error
RemoveAll provides a mock function with given fields: path
func (*FileManager) WriteBytes ¶
func (_m *FileManager) WriteBytes(path string, value []byte) error
WriteBytes provides a mock function with given fields: path, value
type Logger ¶
Logger is an autogenerated mock type for the Logger type
func (*Logger) EnableDebugLog ¶
EnableDebugLog provides a mock function with given fields: enable
func (*Logger) Println ¶
func (_m *Logger) Println()
Println provides a mock function with given fields:
type PathProvider ¶
PathProvider is an autogenerated mock type for the PathProvider type
func NewPathProvider ¶
func NewPathProvider(t mockConstructorTestingTNewPathProvider) *PathProvider
NewPathProvider creates a new instance of PathProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*PathProvider) CreateTempDir ¶
func (_m *PathProvider) CreateTempDir(prefix string) (string, error)
CreateTempDir provides a mock function with given fields: prefix
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func (*Repository) Get ¶
func (_m *Repository) Get(key string) string
Get provides a mock function with given fields: key
func (*Repository) List ¶
func (_m *Repository) List() []string
List provides a mock function with given fields:
func (*Repository) Set ¶
func (_m *Repository) Set(key string, value string) error
Set provides a mock function with given fields: key, value
func (*Repository) Unset ¶
func (_m *Repository) Unset(key string) error
Unset provides a mock function with given fields: key