worker

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WorkerTimeout = 7200 * time.Second
	WaitTimes     = 5

	DefaultCaicloudYaml = "build:\n  dockerfile_name: Dockerfile"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ID         string
	DockerHost string
}

Config contains all options(config) for worker

func NewConfig

func NewConfig() *Config

NewConfig returns a new worker config

func (*Config) AddFlags

func (opts *Config) AddFlags(app *cli.App)

AddFlags adds flags to cli.App

type Worker

type Worker struct {
	Config *Config
	Envs   *cloud.WorkerEnvs
}

Worker ...

func (*Worker) Run

func (worker *Worker) Run() error

Run starts the worker

Directories

Path Synopsis
ci
Package ci is an implementation of ci manager.
Package ci is an implementation of ci manager.
parser
Package parser is an implementation of yaml parser.
Package parser is an implementation of yaml parser.
runner
Package runner is an implementation of job runner.
Package runner is an implementation of job runner.
yaml
Package yaml is an implementation of yaml compiler.
Package yaml is an implementation of yaml compiler.
vcs

Jump to

Keyboard shortcuts

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