worker

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 {
	Client cycloneserver.CycloneServerClient
	Config *Config
	Envs   *cloud.WorkerEnvs
}

Worker ...

func (*Worker) HandleEvent

func (worker *Worker) HandleEvent(event *api.Event)

Steps: 1. Git clone code 2. New Docker manager 3. Run pipeline stages 4. Create the tag in SCM

func (*Worker) Run

func (worker *Worker) Run() error

Run starts the worker

Directories

Path Synopsis
scm

Jump to

Keyboard shortcuts

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