Versions in this module Expand all Collapse all v0 v0.7.2 Jun 22, 2017 v0.7.1 May 25, 2017 v0.7.0 May 24, 2017 v0.6.0 May 12, 2017 Changes in this version type Client + func (c *Client) RepoRawFileRef(id, ref, filepath string) ([]byte, error) v0.6.0-rc.1 Apr 14, 2017 v0.5.0 Mar 13, 2017 v0.5.0-rc1 Mar 1, 2017 v0.4.2 Apr 28, 2016 Changes in this version + type Client struct + ApiPath string + BaseUrl string + Client *http.Client + Token string + func New(baseUrl, apiPath, token string, skipVerify bool) *Client + func (c *Client) AddDroneService(id string, params QMap) error + func (c *Client) CurrentUser() (User, error) + func (c *Client) DeleteDroneService(id string) error + func (c *Client) Do(method, url, opaque string, body []byte) ([]byte, error) + func (c *Client) Project(id string) (*Project, error) + func (c *Client) Projects(page int, per_page int, hide_archives bool) ([]*Project, error) + func (c *Client) RepoRawFile(id, sha, filepath string) ([]byte, error) + func (c *Client) ResourceUrl(u string, params, query QMap) (string, string) + func (c *Client) SearchProjectId(namespace string, name string) (id int, err error) + func (c *Client) SetStatus(id, sha, state, desc, ref, link string) error + func (g *Client) AllGroups() ([]*Namespace, error) + func (g *Client) AllProjects(hide_archives bool) ([]*Project, error) + func (g *Client) Groups(page, perPage int) ([]*Namespace, error) + type GroupAccess struct + AccessLevel int + NotificationLevel int + type HookObjAttr struct + AssigneeId int + AuthorId int + BranchName string + CreatedAt string + Description string + IId int + Id int + LastCommit *hCommit + MergeStatus string + MilestoneId int + Position int + ProjectId int + Source *hProject + SourceBranch string + SourceProjectId int + StCommits string + StDiffs string + State string + Target *hProject + TargetBranch string + TargetProjectId int + Title string + UpdatedAt string + Url string + type HookPayload struct + After string + Before string + Commits []hCommit + ObjectAttributes *HookObjAttr + ObjectKind string + Project *hProject + ProjectId int + Ref string + Repository *hRepository + TotalCommitsCount int + UserId int + UserName string + func ParseHook(payload []byte) (*HookPayload, error) + func (h *HookPayload) Branch() string + func (h *HookPayload) Head() hCommit + func (h *HookPayload) Tag() string + type Member struct + CreatedAt string + Email string + Id int + Name string + State string + Username string + type Namespace struct + Id int + Name string + Path string + type Permissions struct + GroupAccess *GroupAccess + ProjectAccess *ProjectAccess + type Person struct + Email string + Name string + type Project struct + AvatarUrl string + DefaultBranch string + Description string + HttpRepoUrl string + Id int + Name string + Namespace *Namespace + Owner *Member + Path string + PathWithNamespace string + Permissions *Permissions + Public bool + SshRepoUrl string + Url string + type ProjectAccess struct + AccessLevel int + NotificationLevel int + type QMap map[string]string + type User struct + AvatarUrl string + Email string + Id int + Name string + Username string