Versions in this module Expand all Collapse all v1 v1.0.0 Jan 9, 2016 Changes in this version + const BuildKiteDateFormat + const Version + func Int(v int) *int + func SetHttpDebug(flag bool) + func String(v string) *string + type Agent struct + AgentToken *string + ConnectedState *string + CreatedAt *Timestamp + Creator *User + Hostname *string + ID *string + IPAddress *string + Name *string + URL *string + UserAgent *string + type AgentListOptions struct + type AgentsService struct + func (as *AgentsService) Create(org string, agent *Agent) (*Agent, *Response, error) + func (as *AgentsService) Delete(org string, id string) (*Response, error) + func (as *AgentsService) Get(org string, id string) (*Agent, *Response, error) + func (as *AgentsService) List(org string, opt *AgentListOptions) ([]Agent, *Response, error) + type BasicAuthTransport struct + Password string + Username string + func NewBasicConfig(username string, password string) (*BasicAuthTransport, error) + func (bat *BasicAuthTransport) Client() *http.Client + func (bat BasicAuthTransport) RoundTrip(req *http.Request) (*http.Response, error) + type Build struct + Branch *string + Commit *string + CreatedAt *Timestamp + Env map[string]string + FinishedAt *Timestamp + ID *string + Jobs []*Job + Message *string + MetaData interface{} + Number *int + Project *Project + ScheduledAt *Timestamp + StartedAt *Timestamp + State *string + URL *string + WebURL *string + type BuildsListOptions struct + Branch string + State string + type BuildsService struct + func (as *BuildsService) Get(org string, project string, id string) (*Build, *Response, error) + func (bs *BuildsService) List(opt *BuildsListOptions) ([]Build, *Response, error) + func (bs *BuildsService) ListByOrg(org string, opt *BuildsListOptions) ([]Build, *Response, error) + func (bs *BuildsService) ListByProject(org string, project string, opt *BuildsListOptions) ([]Build, *Response, error) + type Client struct + Agents *AgentsService + BaseURL *url.URL + Builds *BuildsService + Organizations *OrganizationsService + Projects *ProjectsService + User *UserService + UserAgent string + func NewClient(httpClient *http.Client) *Client + func (c *Client) Do(req *http.Request, v interface{}) (*Response, error) + func (c *Client) ListEmojis(org string) ([]Emoji, *Response, error) + func (c *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error) + type Emoji struct + Name *string + URL *string + type ErrorResponse struct + Message string + Response *http.Response + func (r *ErrorResponse) Error() string + type Job struct + ArtifactPaths *string + Command *string + CreatedAt *Timestamp + ExitStatus *int + FinishedAt *Timestamp + ID *string + LogsURL *string + Name *string + RawLogsURL *string + ScheduledAt *Timestamp + StartedAt *Timestamp + State *string + Type *string + type ListOptions struct + Page int + PerPage int + type Organization struct + AgentsURL *string + CreatedAt *Timestamp + ID *string + Name *string + ProjectsURL *string + Repository *string + Slug *string + URL *string + WebURL *string + type OrganizationListOptions struct + type OrganizationsService struct + func (os *OrganizationsService) Get(slug string) (*Organization, *Response, error) + func (os *OrganizationsService) List(opt *OrganizationListOptions) ([]Organization, *Response, error) + type Project struct + BuildsURL *string + CreatedAt *Timestamp + FeaturedBuild *Build + ID *string + Name *string + Provider *Provider + Repository *string + RunningBuildsCount *int + RunningJobsCount *int + ScheduledBuildsCount *int + ScheduledJobsCount *int + Slug *string + Steps []*Step + URL *string + WaitingJobsCount *int + WebURL *string + type ProjectListOptions struct + type ProjectsService struct + func (ps *ProjectsService) List(org string, opt *ProjectListOptions) ([]Project, *Response, error) + type Provider struct + ID *string + WebhookURL *string + type Response struct + FirstPage int + LastPage int + NextPage int + PrevPage int + type Step struct + AgentQueryRules interface{} + ArtifactPaths *string + BranchConfiguration *string + Command *string + Env map[string]string + Name *string + TimeoutInMinutes interface{} + Type *string + type Timestamp struct + func NewTimestamp(t time.Time) *Timestamp + func (ts *Timestamp) UnmarshalJSON(data []byte) (err error) + func (ts Timestamp) Equal(u Timestamp) bool + func (ts Timestamp) MarshalJSON() ([]byte, error) + func (ts Timestamp) String() string + type Token struct + AccessToken *string + Type *string + type TokenAuthTransport struct + APIToken string + Debug bool + func NewTokenConfig(apiToken string, debug bool) (*TokenAuthTransport, error) + func (t *TokenAuthTransport) Client() *http.Client + func (t TokenAuthTransport) RoundTrip(req *http.Request) (*http.Response, error) + type User struct + CreatedAt *Timestamp + Email *string + ID *string + Name *string + type UserService struct + func (os *UserService) Get() (*User, *Response, error) Incompatible versions in this module v2.2.0+incompatible Feb 19, 2019 v2.1.0+incompatible Nov 23, 2017 v2.0.0+incompatible Mar 31, 2016