https://github.com/sirkon/gitlab
Gitlab API designed with cooperative access for multiple users to single gitlab instance in mind
https://github.com/sirkon/gitlab
Last synced: 3 months ago
JSON representation
Gitlab API designed with cooperative access for multiple users to single gitlab instance in mind
- Host: GitHub
- URL: https://github.com/sirkon/gitlab
- Owner: sirkon
- License: mit
- Created: 2019-03-03T11:30:44.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-12T21:30:43.000Z (over 5 years ago)
- Last Synced: 2024-11-17T12:08:18.925Z (7 months ago)
- Language: Go
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GITLAB API library
This library is aimed for cooperative access of many users to a single gitlab instance.
## Usage
```go
package mainimport (
"context"
"log"
"github.com/sirkon/gitlab"
)func main() {
access := gitlab.NewAPIAccess(nil, "gitlab.com/api/v4")
client := access.Client("user-token")
tags, err := client.Tags(context.Background(), "user/project", "")
if err != nil {
log.Fatal(err)
}
log.Printf("%#v", tags)
}
```