Documentation
¶
Overview ¶
Package gopherci is a client library for GopherCI, it should be refactored into GopherCI itself, and used as a library but offer no backwards compatibility guarantees.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a GopherCI client used to interact with internal GopherCI database.
func (*Client) DisableInstallation ¶
DisableInstallation disables an installationID in GopherCI's DB.
func (*Client) EnableInstallation ¶
EnableInstallation enables an installationID in GopherCI's DB.
func (*Client) ListInstallations ¶
func (c *Client) ListInstallations(accountIDs ...int) ([]Installation, error)
ListInstallations returns a slice of installations matching accountIDs, if no rows matched, installations is nil.
type Installation ¶
type Installation struct { InstallationID int `db:"installation_id"` AccountID int `db:"account_id"` }
Installation represents a row from the gh_installations table.
Click to show internal directories.
Click to hide internal directories.