aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/xanzy/go-gitlab/settings.go
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2017-02-19 01:49:51 +0000
committerNiall Sheridan <nsheridan@gmail.com>2017-02-19 01:49:51 +0000
commiteb57eaf30965ba24ff669d6f9c8d11cd24951777 (patch)
treed04d1e425f0fce5c0f696b8cab7e660630cbd362 /vendor/github.com/xanzy/go-gitlab/settings.go
parente8ff7ffe8e8c25195c64950b61c6c5754bbcd3ba (diff)
update dependencies
Diffstat (limited to 'vendor/github.com/xanzy/go-gitlab/settings.go')
-rw-r--r--vendor/github.com/xanzy/go-gitlab/settings.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/github.com/xanzy/go-gitlab/settings.go b/vendor/github.com/xanzy/go-gitlab/settings.go
index cbb5523..41e9c9d 100644
--- a/vendor/github.com/xanzy/go-gitlab/settings.go
+++ b/vendor/github.com/xanzy/go-gitlab/settings.go
@@ -59,8 +59,8 @@ func (s Settings) String() string {
//
// GitLab API docs:
// https://docs.gitlab.com/ce/api/settings.html#get-current-application.settings
-func (s *SettingsService) GetSettings() (*Settings, *Response, error) {
- req, err := s.client.NewRequest("GET", "application/settings", nil)
+func (s *SettingsService) GetSettings(options ...OptionFunc) (*Settings, *Response, error) {
+ req, err := s.client.NewRequest("GET", "application/settings", nil, options)
if err != nil {
return nil, nil, err
}
@@ -101,8 +101,8 @@ type UpdateSettingsOptions struct {
//
// GitLab API docs:
// https://docs.gitlab.com/ce/api/settings.html#change-application.settings
-func (s *SettingsService) UpdateSettings(opt *UpdateSettingsOptions) (*Settings, *Response, error) {
- req, err := s.client.NewRequest("PUT", "application/settings", opt)
+func (s *SettingsService) UpdateSettings(opt *UpdateSettingsOptions, options ...OptionFunc) (*Settings, *Response, error) {
+ req, err := s.client.NewRequest("PUT", "application/settings", opt, options)
if err != nil {
return nil, nil, err
}