aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/xanzy/go-gitlab/group_variables.go
diff options
context:
space:
mode:
authoramine <hilalyamine@gmail.com>2019-10-24 20:45:02 +0200
committeramine <hilalyamine@gmail.com>2019-10-24 20:45:02 +0200
commita3a431edac978e20ab1887b902ee7240683f7d95 (patch)
tree79cc256c3e7cb2349174e77a33a6eb74c235b9f9 /vendor/github.com/xanzy/go-gitlab/group_variables.go
parent683040dd7a26878a05902a98378c2ed0d5bf23ee (diff)
downloadgit-bug-a3a431edac978e20ab1887b902ee7240683f7d95.tar.gz
vendors: upgrade github.com/xanzy/go-gitlab dependencies to 0.21.0
Diffstat (limited to 'vendor/github.com/xanzy/go-gitlab/group_variables.go')
-rw-r--r--vendor/github.com/xanzy/go-gitlab/group_variables.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/vendor/github.com/xanzy/go-gitlab/group_variables.go b/vendor/github.com/xanzy/go-gitlab/group_variables.go
index 942618b2..694b2019 100644
--- a/vendor/github.com/xanzy/go-gitlab/group_variables.go
+++ b/vendor/github.com/xanzy/go-gitlab/group_variables.go
@@ -45,18 +45,25 @@ func (v GroupVariable) String() string {
return Stringify(v)
}
+// ListGroupVariablesOptions represents the available options for listing variables
+// for a group.
+//
+// GitLab API docs:
+// https://docs.gitlab.com/ee/api/group_level_variables.html#list-group-variables
+type ListGroupVariablesOptions ListOptions
+
// ListVariables gets a list of all variables for a group.
//
// GitLab API docs:
// https://docs.gitlab.com/ee/api/group_level_variables.html#list-group-variables
-func (s *GroupVariablesService) ListVariables(gid interface{}, options ...OptionFunc) ([]*GroupVariable, *Response, error) {
+func (s *GroupVariablesService) ListVariables(gid interface{}, opt *ListGroupVariablesOptions, options ...OptionFunc) ([]*GroupVariable, *Response, error) {
group, err := parseID(gid)
if err != nil {
return nil, nil, err
}
u := fmt.Sprintf("groups/%s/variables", pathEscape(group))
- req, err := s.client.NewRequest("GET", u, nil, options)
+ req, err := s.client.NewRequest("GET", u, opt, options)
if err != nil {
return nil, nil, err
}