runner

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2014 License: MIT Imports: 5 Imported by: 3

README

The Project

Formerly known as Bob

Build Status Build Status GoDoc Coverage Status

This repo is now the core builder library

Usage

See godocs and _example/

TODO

  • it works - now, rewrite tests

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunBuild

func RunBuild(unitConfig *unitconfig.UnitConfig, contextDir string, channels ...chan interface{}) error

RunBuild runs a complete build for the provided unit config. Currently, the channels argument is ignored but will be used in the future along with the LogMsg and StatusMsg interfaces

Types

type LogMsg

type LogMsg interface {
	BuildID() string
	Level() int // type may change
	Msg() string
	Stream() Stream
}

LogMsg is the tentative interface for the structs returned on the log messages channel

type StatusMsg

type StatusMsg interface {
	BuildID() int
	Status() int // type may change
	Msg() string
	Error() error // should be checked for non-nil
}

StatusMsg is the tentative interface for the structs returned on the status channel

type Stream

type Stream int

Stream corresponds to a file stream (stdout/stderr)

const (

	// Stdout indicates the LogMsg's message should be printed, if at all, to stdout
	Stdout Stream

	// Stderr indicates the LogMsg's message should be printed, if at all, to stderr
	Stderr
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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