runner

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2018 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFailure = errors.New("Task Failure")

ErrFailure is a error describes task failure.

Functions

This section is empty.

Types

type DockerRunner

type DockerRunner struct {
	Git         git.Service
	GitHub      github.Service
	Docker      docker.Service
	LogStore    logstore.Service
	BaseWorkDir string
}

DockerRunner represents a runner implement for docker.

func (*DockerRunner) Run

func (r *DockerRunner) Run(ctx context.Context, src *github.TargetSource, command ...string) error

Run task in docker container.

type Runner

type Runner interface {
	Run(ctx context.Context, src *github.TargetSource, command ...string) error
}

Runner is a interface describes task runner.

Directories

Path Synopsis
Package mock_runner is a generated GoMock package.
Package mock_runner is a generated GoMock package.

Jump to

Keyboard shortcuts

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