runner

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2016 License: GPL-3.0, GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteInitHookForRunner

func ExecuteInitHookForRunner(language string) error

Types

type LanguageRunner added in v0.5.0

type LanguageRunner struct {
	Cmd *exec.Cmd
	// contains filtered or unexported fields
}

func (*LanguageRunner) Connection added in v0.5.0

func (r *LanguageRunner) Connection() net.Conn

func (*LanguageRunner) ExecuteAndGetStatus added in v0.5.0

func (r *LanguageRunner) ExecuteAndGetStatus(message *gauge_messages.Message) *gauge_messages.ProtoExecutionResult

func (*LanguageRunner) IsProcessRunning added in v0.5.0

func (r *LanguageRunner) IsProcessRunning() bool

func (*LanguageRunner) Kill added in v0.5.0

func (r *LanguageRunner) Kill() error

type Runner

type Runner interface {
	ExecuteAndGetStatus(m *gauge_messages.Message) *gauge_messages.ProtoExecutionResult
	IsProcessRunning() bool
	Kill() error
	Connection() net.Conn
}

func Start added in v0.6.2

func Start(manifest *manifest.Manifest, reporter reporter.Reporter, killChannel chan bool) (Runner, error)

type RunnerInfo added in v0.5.0

type RunnerInfo struct {
	Id          string
	Name        string
	Version     string
	Description string
	Run         struct {
		Windows []string
		Linux   []string
		Darwin  []string
	}
	Init struct {
		Windows []string
		Linux   []string
		Darwin  []string
	}
	Lib                 string
	GaugeVersionSupport version.VersionSupport
}

func GetRunnerInfo

func GetRunnerInfo(language string) (*RunnerInfo, error)

type StartChannels

type StartChannels struct {
	// this will hold the runner
	RunnerChan chan Runner
	// this will hold the error while creating runner
	ErrorChan chan error
	// this holds a flag based on which the runner is terminated
	KillChan chan bool
}

Jump to

Keyboard shortcuts

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