aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/xanzy/go-gitlab/gitlab.go
diff options
context:
space:
mode:
authorAmine Hilaly <hilalyamine@gmail.com>2019-08-17 00:28:45 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-08-17 00:28:45 +0200
commitf6280a22c76ee42545efc31a6e3a35ff65954f3b (patch)
tree0e10ace59017ee38f5d627410cdf38a478f6f6be /vendor/github.com/xanzy/go-gitlab/gitlab.go
parent8b00e48d02bc568d23958941271aa074f4207ee6 (diff)
downloadgit-bug-f6280a22c76ee42545efc31a6e3a35ff65954f3b.tar.gz
vendor: upgrade github/xanzy/go-gitlab version to 0.20.0
Diffstat (limited to 'vendor/github.com/xanzy/go-gitlab/gitlab.go')
-rw-r--r--vendor/github.com/xanzy/go-gitlab/gitlab.go17
1 files changed, 14 insertions, 3 deletions
diff --git a/vendor/github.com/xanzy/go-gitlab/gitlab.go b/vendor/github.com/xanzy/go-gitlab/gitlab.go
index c8ac26f7..dd015b4a 100644
--- a/vendor/github.com/xanzy/go-gitlab/gitlab.go
+++ b/vendor/github.com/xanzy/go-gitlab/gitlab.go
@@ -204,7 +204,7 @@ var notificationLevelTypes = map[string]NotificationLevelValue{
// GitLab API docs: https://docs.gitlab.com/ce/api/
type VisibilityValue string
-// List of available visibility levels
+// List of available visibility levels.
//
// GitLab API docs: https://docs.gitlab.com/ce/api/
const (
@@ -213,6 +213,19 @@ const (
PublicVisibility VisibilityValue = "public"
)
+// VariableTypeValue represents a variable type within GitLab.
+//
+// GitLab API docs: https://docs.gitlab.com/ce/api/
+type VariableTypeValue string
+
+// List of available variable types.
+//
+// GitLab API docs: https://docs.gitlab.com/ce/api/
+const (
+ EnvVariableType VariableTypeValue = "env_var"
+ FileVariableType VariableTypeValue = "file"
+)
+
// MergeMethodValue represents a project merge type within GitLab.
//
// GitLab API docs: https://docs.gitlab.com/ce/api/projects.html#project-merge-method
@@ -291,7 +304,6 @@ type Client struct {
Boards *IssueBoardsService
Branches *BranchesService
BroadcastMessage *BroadcastMessagesService
- BuildVariables *BuildVariablesService
CIYMLTemplate *CIYMLTemplatesService
Commits *CommitsService
ContainerRegistry *ContainerRegistryService
@@ -441,7 +453,6 @@ func newClient(httpClient *http.Client) *Client {
c.Boards = &IssueBoardsService{client: c}
c.Branches = &BranchesService{client: c}
c.BroadcastMessage = &BroadcastMessagesService{client: c}
- c.BuildVariables = &BuildVariablesService{client: c}
c.CIYMLTemplate = &CIYMLTemplatesService{client: c}
c.Commits = &CommitsService{client: c}
c.ContainerRegistry = &ContainerRegistryService{client: c}