build

package
v0.0.0-...-081ecb4 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TokenHeaderName = "X-Golangci-Token"

	RequestKindRun  = "run"
	RequestKindCopy = "copy"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	TimeoutMs uint

	WorkDir string
	Env     []string

	Kind string
	Args []string
}

type RequestResult

type RequestResult struct {
	StdOut string
	StdErr string
}

type Response

type Response struct {
	Error        string
	CommandError string

	RequestResult
}

type Runner

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

func NewRunner

func NewRunner(log logutil.Log, token string) *Runner

func (Runner) Run

func (r Runner) Run(port int, maxLifetime time.Duration) error

Jump to

Keyboard shortcuts

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