run

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package run is a generated GoMock package.

Index

Constants

View Source
const (
	StdOut = "stdout"
	StdErr = "stderr"

	ColorGreen = "\x1b[32m"
	ColorRed   = "\x1b[31m"
	ColorWhite = "\x1b[0m"
)

Variables

View Source
var (
	ColorOkay  = ""
	ColorFail  = ""
	ColorReset = ""
)

Functions

func NewRunner

func NewRunner(view ui.View, proxy proxy.Proxy, project *config.Project) *runner

NewRunner instancites a Runner struct from configuration data

Types

type Logstreamer

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

func NewLogstreamer

func NewLogstreamer(stdType string, name string, view ui.View) *Logstreamer

func (*Logstreamer) Close

func (l *Logstreamer) Close()

func (*Logstreamer) Flush

func (l *Logstreamer) Flush() error

func (*Logstreamer) Write

func (l *Logstreamer) Write(p []byte) (n int, err error)

type MockRunner

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

MockRunner is a mock of Runner interface.

func NewMockRunner

func NewMockRunner(ctrl *gomock.Controller) *MockRunner

NewMockRunner creates a new mock instance.

func (*MockRunner) EXPECT

func (m *MockRunner) EXPECT() *MockRunnerMockRecorder

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

func (*MockRunner) Restart

func (m *MockRunner) Restart(application *config.Application)

Restart mocks base method.

func (*MockRunner) Run

func (m *MockRunner) Run(application *config.Application)

Run mocks base method.

func (*MockRunner) RunAll

func (m *MockRunner) RunAll()

RunAll mocks base method.

func (*MockRunner) SetupAll

func (m *MockRunner) SetupAll()

SetupAll mocks base method.

func (*MockRunner) Stop

func (m *MockRunner) Stop() error

Stop mocks base method.

type MockRunnerMockRecorder

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

MockRunnerMockRecorder is the mock recorder for MockRunner.

func (*MockRunnerMockRecorder) Restart

func (mr *MockRunnerMockRecorder) Restart(application interface{}) *gomock.Call

Restart indicates an expected call of Restart.

func (*MockRunnerMockRecorder) Run

func (mr *MockRunnerMockRecorder) Run(application interface{}) *gomock.Call

Run indicates an expected call of Run.

func (*MockRunnerMockRecorder) RunAll

func (mr *MockRunnerMockRecorder) RunAll() *gomock.Call

RunAll indicates an expected call of RunAll.

func (*MockRunnerMockRecorder) SetupAll

func (mr *MockRunnerMockRecorder) SetupAll() *gomock.Call

SetupAll indicates an expected call of SetupAll.

func (*MockRunnerMockRecorder) Stop

func (mr *MockRunnerMockRecorder) Stop() *gomock.Call

Stop indicates an expected call of Stop.

type Runner

type Runner interface {
	RunAll()
	SetupAll()
	Run(application *config.Application)
	Restart(application *config.Application)
	Stop() error
}

Jump to

Keyboard shortcuts

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