mocks

package
v0.0.0-...-9994f1b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

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

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

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.

func (*MockServod) Get

func (m *MockServod) Get(ctx context.Context, cmd string) (*xmlrpc.Value, error)

Get mocks base method.

func (*MockServod) Has

func (m *MockServod) Has(ctx context.Context, command string) error

Has mocks base method.

func (*MockServod) Port

func (m *MockServod) Port() int

Port mocks base method.

func (*MockServod) Set

func (m *MockServod) Set(ctx context.Context, cmd string, val interface{}) error

Set mocks base method.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL