Add ability to copy files to and delete files from runner

This commit is contained in:
Jan-Eric Hellenberg
2021-05-31 16:31:15 +02:00
parent 242d0175a2
commit 02b3f52a11
23 changed files with 757 additions and 240 deletions

View File

@ -1,4 +1,4 @@
// Code generated by mockery v0.0.0-dev. DO NOT EDIT.
// Code generated by mockery v2.8.0. DO NOT EDIT.
package runner
@ -21,18 +21,8 @@ func (_m *RunnerMock) Add(id ExecutionId, executionRequest *dto.ExecutionRequest
_m.Called(id, executionRequest)
}
// Copy provides a mock function with given fields: _a0
func (_m *RunnerMock) Copy(_a0 dto.FileCreation) {
_m.Called(_a0)
}
// Delete provides a mock function with given fields: id
func (_m *RunnerMock) Delete(id ExecutionId) {
_m.Called(id)
}
// Execute provides a mock function with given fields: request, stdin, stdout, stderr
func (_m *RunnerMock) Execute(request *dto.ExecutionRequest, stdin io.Reader, stdout io.Writer, stderr io.Writer) (<-chan ExitInfo, context.CancelFunc) {
// ExecuteInteractively provides a mock function with given fields: request, stdin, stdout, stderr
func (_m *RunnerMock) ExecuteInteractively(request *dto.ExecutionRequest, stdin io.Reader, stdout io.Writer, stderr io.Writer) (<-chan ExitInfo, context.CancelFunc) {
ret := _m.Called(request, stdin, stdout, stderr)
var r0 <-chan ExitInfo
@ -56,8 +46,22 @@ func (_m *RunnerMock) Execute(request *dto.ExecutionRequest, stdin io.Reader, st
return r0, r1
}
// Get provides a mock function with given fields: id
func (_m *RunnerMock) Get(id ExecutionId) (*dto.ExecutionRequest, bool) {
// Id provides a mock function with given fields:
func (_m *RunnerMock) Id() string {
ret := _m.Called()
var r0 string
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(string)
}
return r0
}
// Pop provides a mock function with given fields: id
func (_m *RunnerMock) Pop(id ExecutionId) (*dto.ExecutionRequest, bool) {
ret := _m.Called(id)
var r0 *dto.ExecutionRequest
@ -79,15 +83,15 @@ func (_m *RunnerMock) Get(id ExecutionId) (*dto.ExecutionRequest, bool) {
return r0, r1
}
// Id provides a mock function with given fields:
func (_m *RunnerMock) Id() string {
ret := _m.Called()
// UpdateFileSystem provides a mock function with given fields: request
func (_m *RunnerMock) UpdateFileSystem(request *dto.UpdateFileSystemRequest) error {
ret := _m.Called(request)
var r0 string
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
var r0 error
if rf, ok := ret.Get(0).(func(*dto.UpdateFileSystemRequest) error); ok {
r0 = rf(request)
} else {
r0 = ret.Get(0).(string)
r0 = ret.Error(0)
}
return r0