Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockHostAccess
- func (m *MockHostAccess) EXPECT() *MockHostAccessMockRecorder
- func (m *MockHostAccess) Ping(ctx context.Context, pingCount int) error
- func (m *MockHostAccess) Run(ctx context.Context, timeout time.Duration, command string, args ...string) (components.SSHRunResponse, error)
- func (m *MockHostAccess) RunBackground(ctx context.Context, timeout time.Duration, command string, args ...string) (components.SSHRunResponse, error)
- type MockHostAccessMockRecorder
- func (mr *MockHostAccessMockRecorder) Ping(ctx, pingCount interface{}) *gomock.Call
- func (mr *MockHostAccessMockRecorder) Run(ctx, timeout, command interface{}, args ...interface{}) *gomock.Call
- func (mr *MockHostAccessMockRecorder) RunBackground(ctx, timeout, command interface{}, args ...interface{}) *gomock.Call
- type MockSSHRunResponse
- type MockSSHRunResponseMockRecorder
- type MockServod
- func (m *MockServod) Call(ctx context.Context, method string, timeout time.Duration, args ...interface{}) (*xmlrpc.Value, error)
- func (m *MockServod) EXPECT() *MockServodMockRecorder
- func (m *MockServod) Get(ctx context.Context, cmd string) (*xmlrpc.Value, error)
- func (m *MockServod) Has(ctx context.Context, command string) error
- func (m *MockServod) Port() int
- func (m *MockServod) Set(ctx context.Context, cmd string, val interface{}) error
- type MockServodMockRecorder
- func (mr *MockServodMockRecorder) Call(ctx, method, timeout interface{}, args ...interface{}) *gomock.Call
- func (mr *MockServodMockRecorder) Get(ctx, cmd interface{}) *gomock.Call
- func (mr *MockServodMockRecorder) Has(ctx, command interface{}) *gomock.Call
- func (mr *MockServodMockRecorder) Port() *gomock.Call
- func (mr *MockServodMockRecorder) Set(ctx, cmd, val interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockHostAccess ¶
type MockHostAccess struct {
// contains filtered or unexported fields
}
MockHostAccess is a mock of HostAccess interface.
func NewMockHostAccess ¶
func NewMockHostAccess(ctrl *gomock.Controller) *MockHostAccess
NewMockHostAccess creates a new mock instance.
func (*MockHostAccess) EXPECT ¶
func (m *MockHostAccess) EXPECT() *MockHostAccessMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHostAccess) Ping ¶
func (m *MockHostAccess) Ping(ctx context.Context, pingCount int) error
Ping mocks base method.
func (*MockHostAccess) Run ¶
func (m *MockHostAccess) Run(ctx context.Context, timeout time.Duration, command string, args ...string) (components.SSHRunResponse, error)
Run mocks base method.
func (*MockHostAccess) RunBackground ¶
func (m *MockHostAccess) RunBackground(ctx context.Context, timeout time.Duration, command string, args ...string) (components.SSHRunResponse, error)
RunBackground mocks base method.
type MockHostAccessMockRecorder ¶
type MockHostAccessMockRecorder struct {
// contains filtered or unexported fields
}
MockHostAccessMockRecorder is the mock recorder for MockHostAccess.
func (*MockHostAccessMockRecorder) Ping ¶
func (mr *MockHostAccessMockRecorder) Ping(ctx, pingCount interface{}) *gomock.Call
Ping indicates an expected call of Ping.
func (*MockHostAccessMockRecorder) Run ¶
func (mr *MockHostAccessMockRecorder) Run(ctx, timeout, command interface{}, args ...interface{}) *gomock.Call
Run indicates an expected call of Run.
func (*MockHostAccessMockRecorder) RunBackground ¶
func (mr *MockHostAccessMockRecorder) RunBackground(ctx, timeout, command interface{}, args ...interface{}) *gomock.Call
RunBackground indicates an expected call of RunBackground.
type MockSSHRunResponse ¶
type MockSSHRunResponse struct {
// contains filtered or unexported fields
}
MockSSHRunResponse is a mock of SSHRunResponse interface.
func NewMockSSHRunResponse ¶
func NewMockSSHRunResponse(ctrl *gomock.Controller) *MockSSHRunResponse
NewMockSSHRunResponse creates a new mock instance.
func (*MockSSHRunResponse) EXPECT ¶
func (m *MockSSHRunResponse) EXPECT() *MockSSHRunResponseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSSHRunResponse) GetExitCode ¶
func (m *MockSSHRunResponse) GetExitCode() int32
GetExitCode mocks base method.
func (*MockSSHRunResponse) GetStderr ¶
func (m *MockSSHRunResponse) GetStderr() string
GetStderr mocks base method.
func (*MockSSHRunResponse) GetStdout ¶
func (m *MockSSHRunResponse) GetStdout() string
GetStdout mocks base method.
type MockSSHRunResponseMockRecorder ¶
type MockSSHRunResponseMockRecorder struct {
// contains filtered or unexported fields
}
MockSSHRunResponseMockRecorder is the mock recorder for MockSSHRunResponse.
func (*MockSSHRunResponseMockRecorder) GetExitCode ¶
func (mr *MockSSHRunResponseMockRecorder) GetExitCode() *gomock.Call
GetExitCode indicates an expected call of GetExitCode.
func (*MockSSHRunResponseMockRecorder) GetStderr ¶
func (mr *MockSSHRunResponseMockRecorder) GetStderr() *gomock.Call
GetStderr indicates an expected call of GetStderr.
func (*MockSSHRunResponseMockRecorder) GetStdout ¶
func (mr *MockSSHRunResponseMockRecorder) GetStdout() *gomock.Call
GetStdout indicates an expected call of GetStdout.
type MockServod ¶
type MockServod struct {
// contains filtered or unexported fields
}
MockServod is a mock of Servod interface.
func NewMockServod ¶
func NewMockServod(ctrl *gomock.Controller) *MockServod
NewMockServod creates a new mock instance.
func (*MockServod) Call ¶
func (m *MockServod) Call(ctx context.Context, method string, timeout time.Duration, args ...interface{}) (*xmlrpc.Value, error)
Call mocks base method.
func (*MockServod) EXPECT ¶
func (m *MockServod) EXPECT() *MockServodMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockServodMockRecorder ¶
type MockServodMockRecorder struct {
// contains filtered or unexported fields
}
MockServodMockRecorder is the mock recorder for MockServod.
func (*MockServodMockRecorder) Call ¶
func (mr *MockServodMockRecorder) Call(ctx, method, timeout interface{}, args ...interface{}) *gomock.Call
Call indicates an expected call of Call.
func (*MockServodMockRecorder) Get ¶
func (mr *MockServodMockRecorder) Get(ctx, cmd interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockServodMockRecorder) Has ¶
func (mr *MockServodMockRecorder) Has(ctx, command interface{}) *gomock.Call
Has indicates an expected call of Has.
func (*MockServodMockRecorder) Port ¶
func (mr *MockServodMockRecorder) Port() *gomock.Call
Port indicates an expected call of Port.
func (*MockServodMockRecorder) Set ¶
func (mr *MockServodMockRecorder) Set(ctx, cmd, val interface{}) *gomock.Call
Set indicates an expected call of Set.