Documentation
¶
Overview ¶
Package executer is a generated GoMock package.
Index ¶
- type CommonExecuter
- func (e *CommonExecuter) Execute(command string, args ...string) (stdout string, stderr string, exitCode int)
- func (e *CommonExecuter) ExecuteWithContext(ctx context.Context, command string, args ...string) (stdout string, stderr string, exitCode int)
- func (e *CommonExecuter) ExecuteWithContextFromDir(ctx context.Context, workingDir string, command string, args []string, ...) (stdout string, stderr string, exitCode int)
- func (e *CommonExecuter) LookPath(file string) (string, error)
- func (e *CommonExecuter) TempFile(dir, pattern string) (f *os.File, err error)
- type Executer
- type MockExecuter
- func (m *MockExecuter) EXPECT() *MockExecuterMockRecorder
- func (m *MockExecuter) Execute(command string, args ...string) (string, string, int)
- func (m *MockExecuter) ExecuteWithContext(ctx context.Context, command string, args ...string) (string, string, int)
- func (m *MockExecuter) ExecuteWithContextFromDir(ctx context.Context, workingDir, command string, args []string, env ...string) (string, string, int)
- func (m *MockExecuter) LookPath(file string) (string, error)
- func (m *MockExecuter) TempFile(dir, pattern string) (*os.File, error)
- type MockExecuterMockRecorder
- func (mr *MockExecuterMockRecorder) Execute(command any, args ...any) *gomock.Call
- func (mr *MockExecuterMockRecorder) ExecuteWithContext(ctx, command any, args ...any) *gomock.Call
- func (mr *MockExecuterMockRecorder) ExecuteWithContextFromDir(ctx, workingDir, command, args any, env ...any) *gomock.Call
- func (mr *MockExecuterMockRecorder) LookPath(file any) *gomock.Call
- func (mr *MockExecuterMockRecorder) TempFile(dir, pattern any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonExecuter ¶
type CommonExecuter struct{}
func (*CommonExecuter) ExecuteWithContext ¶
func (*CommonExecuter) ExecuteWithContextFromDir ¶
type Executer ¶
type Executer interface {
Execute(command string, args ...string) (stdout string, stderr string, exitCode int)
ExecuteWithContext(ctx context.Context, command string, args ...string) (stdout string, stderr string, exitCode int)
ExecuteWithContextFromDir(ctx context.Context, workingDir string, command string, args []string, env ...string) (stdout string, stderr string, exitCode int)
TempFile(dir, pattern string) (f *os.File, err error)
LookPath(file string) (string, error)
}
type MockExecuter ¶
type MockExecuter struct {
// contains filtered or unexported fields
}
MockExecuter is a mock of Executer interface.
func NewMockExecuter ¶
func NewMockExecuter(ctrl *gomock.Controller) *MockExecuter
NewMockExecuter creates a new mock instance.
func (*MockExecuter) EXPECT ¶
func (m *MockExecuter) EXPECT() *MockExecuterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExecuter) ExecuteWithContext ¶
func (m *MockExecuter) ExecuteWithContext(ctx context.Context, command string, args ...string) (string, string, int)
ExecuteWithContext mocks base method.
func (*MockExecuter) ExecuteWithContextFromDir ¶
func (m *MockExecuter) ExecuteWithContextFromDir(ctx context.Context, workingDir, command string, args []string, env ...string) (string, string, int)
ExecuteWithContextFromDir mocks base method.
type MockExecuterMockRecorder ¶
type MockExecuterMockRecorder struct {
// contains filtered or unexported fields
}
MockExecuterMockRecorder is the mock recorder for MockExecuter.
func (*MockExecuterMockRecorder) Execute ¶
func (mr *MockExecuterMockRecorder) Execute(command any, args ...any) *gomock.Call
Execute indicates an expected call of Execute.
func (*MockExecuterMockRecorder) ExecuteWithContext ¶
func (mr *MockExecuterMockRecorder) ExecuteWithContext(ctx, command any, args ...any) *gomock.Call
ExecuteWithContext indicates an expected call of ExecuteWithContext.
func (*MockExecuterMockRecorder) ExecuteWithContextFromDir ¶
func (mr *MockExecuterMockRecorder) ExecuteWithContextFromDir(ctx, workingDir, command, args any, env ...any) *gomock.Call
ExecuteWithContextFromDir indicates an expected call of ExecuteWithContextFromDir.
Click to show internal directories.
Click to hide internal directories.