ci

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: 10 Imported by: 0

Documentation

Overview

Package ci is an implementation of ci manager.

Package ci is an implementation of ci manager.

Index

Constants

View Source
const (
	// yamlName defines the name of CI config file.
	DefaultYamlFile = "caicloud.yml"
)

Variables

View Source
var (

	// ErrYamlNotExist defines a error caused by no yaml found.
	ErrYamlNotExist = errors.New("yaml not found")
	// ErrCustomYamlNotExist defines a error caused by custom yaml not found.
	ErrCustomYamlNotExist = errors.New("custom yaml not found")
)

Functions

This section is empty.

Types

type Manager

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

Manager manages all CI operations.

func NewManager

func NewManager(dockerManager *docker.Manager) (*Manager, error)

NewManager creates a new CI manager.

func (*Manager) ExecBuild

func (cm *Manager) ExecBuild(r *runner.Build) error

ExecBuild executes the 'build' section in yaml file

func (*Manager) ExecIntegration

func (cm *Manager) ExecIntegration(r *runner.Build) error

ExecIntegration executes the 'integration' section in yaml file

func (*Manager) ExecPostBuild

func (cm *Manager) ExecPostBuild(r *runner.Build) error

ExecPostBuild executes the 'postbuild' section in yaml file

func (*Manager) ExecPreBuild

func (cm *Manager) ExecPreBuild(r *runner.Build) error

ExecPreBuild executes the 'pre build' section in yaml file

func (*Manager) ExecPublish

func (cm *Manager) ExecPublish(r *runner.Build) error

ExecPublish executes publish image to registry.

func (*Manager) LoadTree

func (cm *Manager) LoadTree(event *api.Event, tree *parser.Tree) (*runner.Build, error)

LoadTree loads the tree and returns the runner.Build.

func (*Manager) Parse

func (cm *Manager) Parse(event *api.Event) (*parser.Tree, error)

Parse the yaml to node tree

func (*Manager) Setup

func (cm *Manager) Setup(r *runner.Build) error

Setup sets up the networks and volumes

func (*Manager) Teardown

func (cm *Manager) Teardown(r *runner.Build) error

Teardown the networks and volumes

Directories

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

Jump to

Keyboard shortcuts

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