Documentation ¶
Overview ¶
Package executors is a generated GoMock package.
Index ¶
- Variables
- type Container
- func (c Container) Clean()
- func (c Container) CopyFile(ctx context.Context, dst, src string) error
- func (c Container) Run(ctx context.Context, name string, args ...string) (*RunResult, error)
- func (e *Container) SetEnv(k, v string)
- func (c *Container) SetWorkDir(wd string)
- func (c *Container) Setup(ctx context.Context, _ *Requirements) error
- func (c Container) WithEnv(k, v string) Executor
- func (c Container) WithWorkDir(wd string) Executor
- func (c Container) WorkDir() string
- type Executor
- type Fargate
- func (f Fargate) Clean()
- func (f Fargate) CopyFile(ctx context.Context, dst, src string) error
- func (f Fargate) Run(ctx context.Context, name string, args ...string) (*RunResult, error)
- func (e *Fargate) SetEnv(k, v string)
- func (f *Fargate) SetWorkDir(wd string)
- func (f *Fargate) Setup(ctx context.Context, req *Requirements) error
- func (f Fargate) WithEnv(k, v string) Executor
- func (f Fargate) WithWorkDir(wd string) Executor
- func (f Fargate) WorkDir() string
- type MockExecutor
- func (m *MockExecutor) Clean()
- func (m *MockExecutor) CopyFile(ctx context.Context, dst, src string) error
- func (m *MockExecutor) EXPECT() *MockExecutorMockRecorder
- func (m *MockExecutor) Run(ctx context.Context, name string, args ...string) (*RunResult, error)
- func (m *MockExecutor) SetEnv(k, v string)
- func (m *MockExecutor) Setup(ctx context.Context, req *Requirements) error
- func (m *MockExecutor) WithEnv(k, v string) Executor
- func (m *MockExecutor) WithWorkDir(wd string) Executor
- func (m *MockExecutor) WorkDir() string
- type MockExecutorMockRecorder
- func (mr *MockExecutorMockRecorder) Clean() *gomock.Call
- func (mr *MockExecutorMockRecorder) CopyFile(ctx, dst, src interface{}) *gomock.Call
- func (mr *MockExecutorMockRecorder) Run(ctx, name interface{}, args ...interface{}) *gomock.Call
- func (mr *MockExecutorMockRecorder) SetEnv(k, v interface{}) *gomock.Call
- func (mr *MockExecutorMockRecorder) Setup(ctx, req interface{}) *gomock.Call
- func (mr *MockExecutorMockRecorder) WithEnv(k, v interface{}) *gomock.Call
- func (mr *MockExecutorMockRecorder) WithWorkDir(wd interface{}) *gomock.Call
- func (mr *MockExecutorMockRecorder) WorkDir() *gomock.Call
- type Requirements
- type RunResult
- type TempDirShell
- func (s TempDirShell) Clean()
- func (s TempDirShell) CopyFile(ctx context.Context, dst, src string) error
- func (s TempDirShell) Run(ctx context.Context, name string, args ...string) (*RunResult, error)
- func (s *TempDirShell) SetWorkDir(wd string)
- func (s TempDirShell) Setup(_ context.Context, _ *Requirements) error
- func (s TempDirShell) WithEnv(k, v string) Executor
- func (s TempDirShell) WithWorkDir(wd string) Executor
- func (s TempDirShell) WorkDir() string
Constants ¶
This section is empty.
Variables ¶
var ErrExecutorFail = errors.New("executor failed")
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func (*Container) SetWorkDir ¶
func (Container) WithWorkDir ¶
type Executor ¶
type Executor interface { Setup(ctx context.Context, req *Requirements) error Run(ctx context.Context, name string, args ...string) (*RunResult, error) WithEnv(k, v string) Executor SetEnv(k, v string) WorkDir() string WithWorkDir(wd string) Executor CopyFile(ctx context.Context, dst, src string) error Clean() }
type Fargate ¶
type Fargate struct {
// contains filtered or unexported fields
}
func NewFargate ¶
func (*Fargate) SetWorkDir ¶
func (Fargate) WithWorkDir ¶
type MockExecutor ¶
type MockExecutor struct {
// contains filtered or unexported fields
}
MockExecutor is a mock of Executor interface
func NewMockExecutor ¶
func NewMockExecutor(ctrl *gomock.Controller) *MockExecutor
NewMockExecutor creates a new mock instance
func (*MockExecutor) CopyFile ¶
func (m *MockExecutor) CopyFile(ctx context.Context, dst, src string) error
CopyFile mocks base method
func (*MockExecutor) EXPECT ¶
func (m *MockExecutor) EXPECT() *MockExecutorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockExecutor) Setup ¶
func (m *MockExecutor) Setup(ctx context.Context, req *Requirements) error
Setup mocks base method
func (*MockExecutor) WithEnv ¶
func (m *MockExecutor) WithEnv(k, v string) Executor
WithEnv mocks base method
func (*MockExecutor) WithWorkDir ¶
func (m *MockExecutor) WithWorkDir(wd string) Executor
WithWorkDir mocks base method
type MockExecutorMockRecorder ¶
type MockExecutorMockRecorder struct {
// contains filtered or unexported fields
}
MockExecutorMockRecorder is the mock recorder for MockExecutor
func (*MockExecutorMockRecorder) Clean ¶
func (mr *MockExecutorMockRecorder) Clean() *gomock.Call
Clean indicates an expected call of Clean
func (*MockExecutorMockRecorder) CopyFile ¶
func (mr *MockExecutorMockRecorder) CopyFile(ctx, dst, src interface{}) *gomock.Call
CopyFile indicates an expected call of CopyFile
func (*MockExecutorMockRecorder) Run ¶
func (mr *MockExecutorMockRecorder) Run(ctx, name interface{}, args ...interface{}) *gomock.Call
Run indicates an expected call of Run
func (*MockExecutorMockRecorder) SetEnv ¶
func (mr *MockExecutorMockRecorder) SetEnv(k, v interface{}) *gomock.Call
SetEnv indicates an expected call of SetEnv
func (*MockExecutorMockRecorder) Setup ¶
func (mr *MockExecutorMockRecorder) Setup(ctx, req interface{}) *gomock.Call
Setup indicates an expected call of Setup
func (*MockExecutorMockRecorder) WithEnv ¶
func (mr *MockExecutorMockRecorder) WithEnv(k, v interface{}) *gomock.Call
WithEnv indicates an expected call of WithEnv
func (*MockExecutorMockRecorder) WithWorkDir ¶
func (mr *MockExecutorMockRecorder) WithWorkDir(wd interface{}) *gomock.Call
WithWorkDir indicates an expected call of WithWorkDir
func (*MockExecutorMockRecorder) WorkDir ¶
func (mr *MockExecutorMockRecorder) WorkDir() *gomock.Call
WorkDir indicates an expected call of WorkDir
type Requirements ¶
type TempDirShell ¶
type TempDirShell struct {
// contains filtered or unexported fields
}
func NewTempDirShell ¶
func NewTempDirShell(tag string) (*TempDirShell, error)
func (TempDirShell) Clean ¶
func (s TempDirShell) Clean()
func (TempDirShell) CopyFile ¶
func (s TempDirShell) CopyFile(ctx context.Context, dst, src string) error
func (*TempDirShell) SetWorkDir ¶
func (s *TempDirShell) SetWorkDir(wd string)
func (TempDirShell) WithEnv ¶
func (s TempDirShell) WithEnv(k, v string) Executor
func (TempDirShell) WithWorkDir ¶
func (s TempDirShell) WithWorkDir(wd string) Executor
func (TempDirShell) WorkDir ¶
func (s TempDirShell) WorkDir() string