build

package
v0.0.0-...-dfa43ee Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List(projectID, branchID, limit, offset int32) (*list, error)

func View

func View(buildID int32) (*build, error)

Types

type Branch

type Branch struct {
	ID   int32  `json:"branch_id"`
	Name string `json:"branch"`
}

type Branches

type Branches []Branch

func (*Branches) Scan

func (b *Branches) Scan(src interface{}) error

type Error

type Error struct {
	Message string `json:"message"`
	Comment string `json:"comment"`
}

type Item

type Item struct {
	BuildID       int32      `json:"build_id"`
	Status        string     `json:"status"`
	Error         string     `json:"error"`
	CreatedAt     time.Time  `json:"created_at"`
	StartedAt     *time.Time `json:"started_at"`
	FinishedAt    *time.Time `json:"finished_at"`
	CommitSHA     string     `json:"commit_sha"`
	CommitMessage string     `json:"commit_message"`
	Branch        string     `json:"branch"`
	BranchID      int32      `json:"branch_id"`
	ProjectID     int32      `json:"project_id"`
}

type Items

type Items []Item

func (*Items) Scan

func (i *Items) Scan(src interface{}) error

type Part

type Part struct {
	PartID     int32     `json:"part_id"`
	Image      string    `json:"image"`
	Version    string    `json:"version"`
	Output     string    `json:"output"`
	Success    bool      `json:"success"`
	StartedAt  time.Time `json:"started_at"`
	FinishedAt time.Time `json:"finished_at"`
	Tests      []Test    `json:"tests"`
}

func (Part) TestsLen

func (p Part) TestsLen() int

type Parts

type Parts []Part

func (*Parts) Scan

func (p *Parts) Scan(src interface{}) error

type Test

type Test struct {
	Function string  `json:"function"`
	Errors   []Error `json:"errors"`
	Duration float64 `json:"duration"`
}

Jump to

Keyboard shortcuts

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