diff options
author | Michael Muré <batolettre@gmail.com> | 2019-11-03 13:29:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-03 13:29:29 +0000 |
commit | 16bd116971bb7abc7308e95c474b433512672432 (patch) | |
tree | 9ff0abe956baed511f47b456f94863fec2e08cf3 /vendor/github.com/xanzy/go-gitlab/runners.go | |
parent | 8c7c9880b1adcf876ad63ea39e46e62bd7ebde5d (diff) | |
parent | 4666763d4dfc5623ee2b2423a759de50aad151b7 (diff) | |
download | git-bug-16bd116971bb7abc7308e95c474b433512672432.tar.gz |
Merge pull request #234 from MichaelMure/dependabot/dep/github.com/xanzy/go-gitlab-0.21.0
build(deps): bump github.com/xanzy/go-gitlab from 0.20.0 to 0.21.0
Diffstat (limited to 'vendor/github.com/xanzy/go-gitlab/runners.go')
-rw-r--r-- | vendor/github.com/xanzy/go-gitlab/runners.go | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/vendor/github.com/xanzy/go-gitlab/runners.go b/vendor/github.com/xanzy/go-gitlab/runners.go index 365b6124..d3330d44 100644 --- a/vendor/github.com/xanzy/go-gitlab/runners.go +++ b/vendor/github.com/xanzy/go-gitlab/runners.go @@ -72,6 +72,11 @@ type RunnerDetails struct { Version string `json:"version"` AccessLevel string `json:"access_level"` MaximumTimeout int `json:"maximum_timeout"` + Groups []struct { + ID int `json:"id"` + Name string `json:"name"` + WebURL string `json:"web_url"` + } `json:"groups"` } // ListRunnersOptions represents the available ListRunners() options. @@ -80,9 +85,10 @@ type RunnerDetails struct { // https://docs.gitlab.com/ce/api/runners.html#list-owned-runners type ListRunnersOptions struct { ListOptions - Scope *string `url:"scope,omitempty" json:"scope,omitempty"` - Status *string `url:"status,omitempty" json:"status,omitempty"` - Type *string `url:"type,omitempty" json:"type,omitempty"` + Scope *string `url:"scope,omitempty" json:"scope,omitempty"` + Type *string `url:"type,omitempty" json:"type,omitempty"` + Status *string `url:"status,omitempty" json:"status,omitempty"` + TagList []string `url:"tag_list,comma,omitempty" json:"tag_list,omitempty"` } // ListRunners gets a list of runners accessible by the authenticated user. @@ -211,10 +217,12 @@ func (s *RunnersService) RemoveRunner(rid interface{}, options ...OptionFunc) (* // options. Status can be one of: running, success, failed, canceled. // // GitLab API docs: -// https://docs.gitlab.com/ce/api/runners.html#list-runner-39-s-jobs +// https://docs.gitlab.com/ce/api/runners.html#list-runners-jobs type ListRunnerJobsOptions struct { ListOptions - Status *string `url:"status,omitempty" json:"status,omitempty"` + Status *string `url:"status,omitempty" json:"status,omitempty"` + OrderBy *string `url:"order_by,omitempty" json:"order_by,omitempty"` + Sort *string `url:"sort,omitempty" json:"sort,omitempty"` } // ListRunnerJobs gets a list of jobs that are being processed or were processed by specified Runner. |