Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildCallback ¶
type BuildCallback struct { Username string `json:"username"` Repository string `json:"repository"` CommitHash string `json:"commitHash"` State string `json:"state"` BuildURL *string `json:"buildURL,omitempty"` Description *string `json:"description,omitempty"` Context *string `json:"context,omitempty"` }
BuildCallback todo: add description
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client definess
func NewClient ¶
func NewClient(httpClient *http.Client, integrationID int, installationID int, privKey []byte) (*Client, error)
NewClient initializes a Client instance
func (*Client) Do ¶
Do sends an API request and returns the API response. The API response is JSON decoded and stored in the value pointed to by v, or returned as an error if an API error has occurred. If v implements the io.Writer interface, the raw response body will be written to v, without attempting to first decode it.
func (*Client) NewRequest ¶
NewRequest creates new http.Request instance
func (*Client) UpdateCommitStatus ¶
func (c *Client) UpdateCommitStatus(build *BuildCallback) error
UpdateCommitStatus todo: add description
Click to show internal directories.
Click to hide internal directories.