syncd: github.com/dreamans/syncd/build Index | Files

package build

import "github.com/dreamans/syncd/build"

Index

Package Files

build.go repo.go task.go

Constants

const (
    STATUS_INIT   = 1
    STATUS_ING    = 2
    STATUS_DONE   = 3
    STATUS_FAILED = 4
)
const (
    COMMAND_TIMEOUT = 86400
)

func NewTask Uses

func NewTask(id int, build *Build, fn CallbackFn) error

func StopTask Uses

func StopTask(id int)

type Build Uses

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

func NewBuild Uses

func NewBuild(repo *Repo, local, tmp, packFile, scripts string) (*Build, error)

func (*Build) Output Uses

func (b *Build) Output() []*command.TaskResult

func (*Build) PackFile Uses

func (b *Build) PackFile() string

func (*Build) PackRealFile Uses

func (b *Build) PackRealFile() string

func (*Build) Result Uses

func (b *Build) Result() *Result

func (*Build) Run Uses

func (b *Build) Run()

func (*Build) Terminate Uses

func (b *Build) Terminate()

type CallbackFn Uses

type CallbackFn func(int, string, *Result, []*command.TaskResult)

type Repo Uses

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

func NewRepo Uses

func NewRepo(url, local string) *Repo

func (*Repo) Fetch Uses

func (r *Repo) Fetch() []string

func (*Repo) SetBranch Uses

func (r *Repo) SetBranch(branch string)

func (*Repo) SetCommit Uses

func (r *Repo) SetCommit(version string)

type Result Uses

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

func StatusTask Uses

func StatusTask(id int) (*Result, []*command.TaskResult, error)

func (*Result) During Uses

func (r *Result) During() int

func (*Result) GetError Uses

func (r *Result) GetError() error

func (*Result) Status Uses

func (r *Result) Status() int

Package build imports 8 packages (graph) and is imported by 1 packages. Updated 2019-03-30. Refresh now. Tools for package owners.