mocks

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	CommandsExecuted []string
	FilesCopied      []string

	AppConfig *schema.GeneralConfig
	Host      schema.Host
}

Service mocked.

func (*Service) Close

func (t *Service) Close() error

func (*Service) CopyFile

func (t *Service) CopyFile(ctx context.Context, local, remote string) error

func (*Service) GetDevice

func (t *Service) GetDevice() *service.GenericDevice

func (*Service) GetPasswords

func (t *Service) GetPasswords() []string

func (*Service) GetPort

func (t *Service) GetPort() string

func (*Service) GetService

func (t *Service) GetService(config *schema.GeneralConfig, host schema.Host) service.Service

func (*Service) GetUser

func (t *Service) GetUser() string

func (*Service) HandleSequence

func (t *Service) HandleSequence(ctx context.Context, handler service.HandlerFunc) error

func (*Service) RunCmd

func (t *Service) RunCmd(val string, re *regexp.Regexp) (string, error)

func (*Service) SetConfig

func (t *Service) SetConfig(config *schema.GeneralConfig)

func (*Service) SetHost

func (t *Service) SetHost(host schema.Host)

Jump to

Keyboard shortcuts

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