aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/xanzy/go-gitlab/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/xanzy/go-gitlab/README.md')
-rw-r--r--vendor/github.com/xanzy/go-gitlab/README.md13
1 files changed, 8 insertions, 5 deletions
diff --git a/vendor/github.com/xanzy/go-gitlab/README.md b/vendor/github.com/xanzy/go-gitlab/README.md
index 7b6d1bc..5c3e29b 100644
--- a/vendor/github.com/xanzy/go-gitlab/README.md
+++ b/vendor/github.com/xanzy/go-gitlab/README.md
@@ -7,8 +7,9 @@ A GitLab API client enabling Go programs to interact with GitLab in a simple and
## NOTE
-Release v0.5.0 (released on 22-03-2017) no longer supports Go versions older
-then 1.7.x If you want (or need) to use an older Go version please use v0.4.1
+Release v0.6.0 (released on 25-08-2017) no longer supports the older V3 Gitlab API. If
+you need V3 support, please use the `f-api-v3` branch. This release contains some backwards
+incompatible changes that were needed to fully support the V4 Gitlab API.
## Coverage
@@ -35,6 +36,8 @@ includes all calls to the following services:
- [x] Namespaces
- [x] Settings
- [x] Pipelines
+- [x] Version
+- [x] Wikis
## Usage
@@ -57,7 +60,7 @@ to list all projects for user "svanharmelen":
```go
git := gitlab.NewClient(nil)
-opt := &ListProjectsOptions{Search: gitlab.String("svanharmelen")})
+opt := &ListProjectsOptions{Search: gitlab.String("svanharmelen")}
projects, _, err := git.Projects.ListProjects(opt)
```
@@ -84,7 +87,7 @@ func main() {
Description: gitlab.String("Just a test project to play with"),
MergeRequestsEnabled: gitlab.Bool(true),
SnippetsEnabled: gitlab.Bool(true),
- VisibilityLevel: gitlab.VisibilityLevel(gitlab.PublicVisibility),
+ Visibility: gitlab.VisibilityLevel(gitlab.PublicVisibility),
}
project, _, err := git.Projects.CreateProject(p)
if err != nil {
@@ -96,7 +99,7 @@ func main() {
Title: gitlab.String("Dummy Snippet"),
FileName: gitlab.String("snippet.go"),
Code: gitlab.String("package main...."),
- VisibilityLevel: gitlab.VisibilityLevel(gitlab.PublicVisibility),
+ Visibility: gitlab.VisibilityLevel(gitlab.PublicVisibility),
}
_, _, err = git.ProjectSnippets.CreateSnippet(project.ID, s)
if err != nil {