remotemachine

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2019 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Overview

Package remotemachine is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRemoteMachine added in v0.5.0

type MockRemoteMachine struct {
	// contains filtered or unexported fields
}

MockRemoteMachine is a mock of RemoteMachine interface

func NewMockRemoteMachine added in v0.5.0

func NewMockRemoteMachine(ctrl *gomock.Controller) *MockRemoteMachine

NewMockRemoteMachine creates a new mock instance

func (*MockRemoteMachine) Address added in v0.5.0

func (m *MockRemoteMachine) Address() string

Address mocks base method

func (*MockRemoteMachine) Close added in v0.5.0

func (m *MockRemoteMachine) Close() error

Close mocks base method

func (*MockRemoteMachine) DeleteFile added in v0.5.0

func (m *MockRemoteMachine) DeleteFile(remotePath string) error

DeleteFile mocks base method

func (*MockRemoteMachine) EXPECT added in v0.5.0

EXPECT returns an object that allows the caller to indicate expected use

func (*MockRemoteMachine) Host added in v0.5.0

func (m *MockRemoteMachine) Host() string

Host mocks base method

func (*MockRemoteMachine) OSName added in v0.5.0

func (m *MockRemoteMachine) OSName() string

OSName mocks base method

func (*MockRemoteMachine) Password added in v0.5.0

func (m *MockRemoteMachine) Password() string

Password mocks base method

func (*MockRemoteMachine) RunCommand added in v0.5.0

func (m *MockRemoteMachine) RunCommand(arg0 string) (io.Reader, error)

RunCommand mocks base method

func (*MockRemoteMachine) UploadFile added in v0.5.0

func (m *MockRemoteMachine) UploadFile(localPath, remotePath string) error

UploadFile mocks base method

type MockRemoteMachineMockRecorder added in v0.5.0

type MockRemoteMachineMockRecorder struct {
	// contains filtered or unexported fields
}

MockRemoteMachineMockRecorder is the mock recorder for MockRemoteMachine

func (*MockRemoteMachineMockRecorder) Address added in v0.5.0

func (mr *MockRemoteMachineMockRecorder) Address() *gomock.Call

Address indicates an expected call of Address

func (*MockRemoteMachineMockRecorder) Close added in v0.5.0

Close indicates an expected call of Close

func (*MockRemoteMachineMockRecorder) DeleteFile added in v0.5.0

func (mr *MockRemoteMachineMockRecorder) DeleteFile(remotePath interface{}) *gomock.Call

DeleteFile indicates an expected call of DeleteFile

func (*MockRemoteMachineMockRecorder) Host added in v0.5.0

Host indicates an expected call of Host

func (*MockRemoteMachineMockRecorder) OSName added in v0.5.0

OSName indicates an expected call of OSName

func (*MockRemoteMachineMockRecorder) Password added in v0.5.0

func (mr *MockRemoteMachineMockRecorder) Password() *gomock.Call

Password indicates an expected call of Password

func (*MockRemoteMachineMockRecorder) RunCommand added in v0.5.0

func (mr *MockRemoteMachineMockRecorder) RunCommand(arg0 interface{}) *gomock.Call

RunCommand indicates an expected call of RunCommand

func (*MockRemoteMachineMockRecorder) UploadFile added in v0.5.0

func (mr *MockRemoteMachineMockRecorder) UploadFile(localPath, remotePath interface{}) *gomock.Call

UploadFile indicates an expected call of UploadFile

type RemoteMachine

type RemoteMachine interface {
	Address() string
	Host() string
	OSName() string
	Password() string

	UploadFile(localPath, remotePath string) error
	DeleteFile(remotePath string) error

	RunCommand(string) (io.Reader, error)

	Close() error
}

func NewRemoteMachine

func NewRemoteMachine(machine scantron.Machine) RemoteMachine

Jump to

Keyboard shortcuts

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