mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-29 05:11:04 +00:00
.. | ||
examples | ||
stubs | ||
deploy_keys.go | ||
events.go | ||
gitlab.go | ||
gitlab_test.go | ||
helper_test.go | ||
hook_payload.go | ||
hook_payload_test.go | ||
hooks.go | ||
hooks_test.go | ||
Makefile | ||
projects.go | ||
projects_test.go | ||
public_keys.go | ||
public_keys_test.go | ||
README.md | ||
repositories.go | ||
repositories_test.go | ||
services.go | ||
session.go | ||
session_test.go | ||
users.go | ||
users_test.go | ||
util.go | ||
util_test.go |
go-gitlab-client
This is a fork of project https://github.com/plouc/go-gitlab-client
go-gitlab-client is a simple client written in golang to consume gitlab API.
##features
-
###Session gitlab api doc
- get session
-
###Projects gitlab api doc
- list projects
- get single project
- list project merge requests
- list notes on merge requests
- add comments to merge requests
-
###Repositories gitlab api doc
- list repository branches
- get single repository branch
- list project repository tags
- list repository commits
- list project hooks
- add/get/edit/rm project hook
-
###Users gitlab api doc
- get single user
- manage user keys
-
###Deploy Keys gitlab api doc
- list project deploy keys
- add/get/rm project deploy key
##Installation
To install go-gitlab-client, use go get
:
go get github.com/bugagazavr/go-gitlab-client
Import the go-gitlab-client
package into your code:
package whatever
import (
"github.com/bugagazavr/go-gitlab-client"
)
##Update
To update go-gitlab-client
, use go get -u
:
go get -u github.com/bugagazavr/go-gitlab-client
##Documentation
Visit the docs at http://godoc.org/github.com/Bugagazavr/go-gitlab-client
Examples
You can play with the examples located in the examples
directory