Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TestMode bool
TestMode monkeys with certain things for tests so bad things don't happen
Functions ¶
Types ¶
type Job ¶ added in v0.6.0
type Job struct {
Account string `json:"account,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:"-"`
// 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 {
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.