From f6280a22c76ee42545efc31a6e3a35ff65954f3b Mon Sep 17 00:00:00 2001 From: Amine Hilaly Date: Sat, 17 Aug 2019 00:28:45 +0200 Subject: vendor: upgrade github/xanzy/go-gitlab version to 0.20.0 --- vendor/github.com/xanzy/go-gitlab/gitlab.go | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'vendor/github.com/xanzy/go-gitlab/gitlab.go') 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} -- cgit