Documentation ¶
Index ¶
- type APIClientErr
- type 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
- type Depot
- type File
- type GenericAPIResponse
- type Project
- type ProjectListData
- type User
- type Webhook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClientErr ¶
func (APIClientErr) Error ¶
func (e APIClientErr) Error() string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddWebhook ¶
func (*Client) GetCurrentUser ¶
func (*Client) GetProject ¶
func (*Client) GetProjectList ¶
func (*Client) GetWebhooks ¶
func (*Client) RemoveWebhook ¶
type GenericAPIResponse ¶
type GenericAPIResponse struct { Code int `json:"code"` Data json.RawMessage `json:"data,omitempty"` }
type ProjectListData ¶
Click to show internal directories.
Click to hide internal directories.