Versions in this module Expand all Collapse all v0 v0.8.4 Oct 11, 2022 Changes in this version + type APIClientErr struct + Cause error + Message string + URL string + func (e APIClientErr) Error() string + type Client struct + func NewClient(baseURL, apiPath, token, agent string, client *http.Client) *Client + func (c *Client) AddWebhook(globalKey, projectName, link string) error + func (c *Client) Do(method, u string, params url.Values) ([]byte, error) + func (c *Client) Get(u string, params url.Values) ([]byte, error) + func (c *Client) GetCurrentUser() (*User, error) + func (c *Client) GetDepot(globalKey, projectName string) (*Depot, error) + func (c *Client) GetFile(globalKey, projectName, ref, path string) ([]byte, error) + func (c *Client) GetProject(globalKey, projectName string) (*Project, error) + func (c *Client) GetProjectList() ([]*Project, error) + func (c *Client) GetWebhooks(globalKey, projectName string) ([]*Webhook, error) + func (c *Client) RemoveWebhook(globalKey, projectName, link string) error + type Commit struct + File *File + type Depot struct + DefaultBranch string + type File struct + Data string + type GenericAPIResponse struct + Code int + Data json.RawMessage + type Project struct + DepotPath string + HttpsURL string + Icon string + IsPublic bool + Name string + Owner string + Role string + type ProjectListData struct + List []*Project + Page int + PageSize int + TotalPage int + TotalRow int + type User struct + Avatar string + Email string + GlobalKey string + type Webhook struct + HookURL string + Id int