Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TestMode monkeys with certain things for tests so bad things don't happen TestMode bool )
Functions ¶
Types ¶
type ByCreatedDescending ¶ added in v0.8.0
type ByCreatedDescending []*Job
ByCreatedDescending is a type for sorting an array of jobs by created date, descending
func (ByCreatedDescending) Len ¶ added in v0.8.0
func (l ByCreatedDescending) Len() int
func (ByCreatedDescending) Less ¶ added in v0.8.0
func (l ByCreatedDescending) Less(i, j int) bool
func (ByCreatedDescending) Swap ¶ added in v0.8.0
func (l ByCreatedDescending) Swap(i, j int)
type Job ¶ added in v0.6.0
type Job struct { Account string `json:"account,omitempty"` Bobfile string `json:"bobfile,omitempty"` Completed time.Time `json:"completed,omitempty"` Created time.Time `json:"created"` Error error `json:"error,omitempty"` GitCloneDepth string `json:"clone_depth,omitempty"` GitHubAPIToken string `json:"-"` ID string `json:"id,omitempty"` LogRoute string `json:"log_route,omitempty"` Logger *logrus.Logger `json:"-"` Ref string `json:"ref,omitempty"` Repo string `json:"repo,omitempty"` Status string `json:"status"` Workdir string `json:"-"` InfoRoute string `json:"info_route,omitempty"` // contains filtered or unexported fields }
Job is the struct representation of a build job. Intended to be created with NewJob, but exported so it can be used for tests.
type Spec ¶ added in v0.7.0
type Spec struct { Bobfile string `json:"bobfile"` RepoOwner string `json:"account"` RepoName string `json:"repo"` GitRef string `json:"ref"` GitHubAPIToken string `json:"api_token"` Depth string `json:"depth"` Sync bool `json:"sync"` }
Spec contains the specs for a job, retrieved from parsed JSON
Click to show internal directories.
Click to hide internal directories.