diff options
author | amine <hilalyamine@gmail.com> | 2019-10-24 20:45:02 +0200 |
---|---|---|
committer | amine <hilalyamine@gmail.com> | 2019-10-24 20:45:02 +0200 |
commit | a3a431edac978e20ab1887b902ee7240683f7d95 (patch) | |
tree | 79cc256c3e7cb2349174e77a33a6eb74c235b9f9 /vendor/github.com/xanzy/go-gitlab/runners.go | |
parent | 683040dd7a26878a05902a98378c2ed0d5bf23ee (diff) | |
download | git-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/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. |