forked from forgejo/forgejo
Vendor Update: go-gitlab v0.22.1 -> v0.31.0 (#11136)
* vendor update: go-gitlab to v0.31.0 * migrate client init to v0.31.0 * refactor
This commit is contained in:
parent
5c092eb0ef
commit
82dbb34c9c
256 changed files with 36039 additions and 12965 deletions
25
vendor/github.com/xanzy/go-gitlab/runners.go
generated
vendored
25
vendor/github.com/xanzy/go-gitlab/runners.go
generated
vendored
|
@ -70,6 +70,7 @@ type RunnerDetails struct {
|
|||
Revision string `json:"revision"`
|
||||
TagList []string `json:"tag_list"`
|
||||
Version string `json:"version"`
|
||||
Locked bool `json:"locked"`
|
||||
AccessLevel string `json:"access_level"`
|
||||
MaximumTimeout int `json:"maximum_timeout"`
|
||||
Groups []struct {
|
||||
|
@ -95,7 +96,7 @@ type ListRunnersOptions struct {
|
|||
//
|
||||
// GitLab API docs:
|
||||
// https://docs.gitlab.com/ce/api/runners.html#list-owned-runners
|
||||
func (s *RunnersService) ListRunners(opt *ListRunnersOptions, options ...OptionFunc) ([]*Runner, *Response, error) {
|
||||
func (s *RunnersService) ListRunners(opt *ListRunnersOptions, options ...RequestOptionFunc) ([]*Runner, *Response, error) {
|
||||
req, err := s.client.NewRequest("GET", "runners", opt, options)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
|
@ -115,7 +116,7 @@ func (s *RunnersService) ListRunners(opt *ListRunnersOptions, options ...OptionF
|
|||
//
|
||||
// GitLab API docs:
|
||||
// https://docs.gitlab.com/ce/api/runners.html#list-all-runners
|
||||
func (s *RunnersService) ListAllRunners(opt *ListRunnersOptions, options ...OptionFunc) ([]*Runner, *Response, error) {
|
||||
func (s *RunnersService) ListAllRunners(opt *ListRunnersOptions, options ...RequestOptionFunc) ([]*Runner, *Response, error) {
|
||||
req, err := s.client.NewRequest("GET", "runners/all", opt, options)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
|
@ -134,7 +135,7 @@ func (s *RunnersService) ListAllRunners(opt *ListRunnersOptions, options ...Opti
|
|||
//
|
||||
// GitLab API docs:
|
||||
// https://docs.gitlab.com/ce/api/runners.html#get-runner-39-s-details
|
||||
func (s *RunnersService) GetRunnerDetails(rid interface{}, options ...OptionFunc) (*RunnerDetails, *Response, error) {
|
||||
func (s *RunnersService) GetRunnerDetails(rid interface{}, options ...RequestOptionFunc) (*RunnerDetails, *Response, error) {
|
||||
runner, err := parseID(rid)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
|
@ -173,7 +174,7 @@ type UpdateRunnerDetailsOptions struct {
|
|||
//
|
||||
// GitLab API docs:
|
||||
// https://docs.gitlab.com/ce/api/runners.html#update-runner-39-s-details
|
||||
func (s *RunnersService) UpdateRunnerDetails(rid interface{}, opt *UpdateRunnerDetailsOptions, options ...OptionFunc) (*RunnerDetails, *Response, error) {
|
||||
func (s *RunnersService) UpdateRunnerDetails(rid interface{}, opt *UpdateRunnerDetailsOptions, options ...RequestOptionFunc) (*RunnerDetails, *Response, error) {
|
||||
runner, err := parseID(rid)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
|
@ -198,7 +199,7 @@ func (s *RunnersService) UpdateRunnerDetails(rid interface{}, opt *UpdateRunnerD
|
|||
//
|
||||
// GitLab API docs:
|
||||
// https://docs.gitlab.com/ce/api/runners.html#remove-a-runner
|
||||
func (s *RunnersService) RemoveRunner(rid interface{}, options ...OptionFunc) (*Response, error) {
|
||||
func (s *RunnersService) RemoveRunner(rid interface{}, options ...RequestOptionFunc) (*Response, error) {
|
||||
runner, err := parseID(rid)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
@ -229,7 +230,7 @@ type ListRunnerJobsOptions struct {
|
|||
//
|
||||
// GitLab API docs:
|
||||
// https://docs.gitlab.com/ce/api/runners.html#list-runner-39-s-jobs
|
||||
func (s *RunnersService) ListRunnerJobs(rid interface{}, opt *ListRunnerJobsOptions, options ...OptionFunc) ([]*Job, *Response, error) {
|
||||
func (s *RunnersService) ListRunnerJobs(rid interface{}, opt *ListRunnerJobsOptions, options ...RequestOptionFunc) ([]*Job, *Response, error) {
|
||||
runner, err := parseID(rid)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
|
@ -261,7 +262,7 @@ type ListProjectRunnersOptions ListRunnersOptions
|
|||
//
|
||||
// GitLab API docs:
|
||||
// https://docs.gitlab.com/ce/api/runners.html#list-project-s-runners
|
||||
func (s *RunnersService) ListProjectRunners(pid interface{}, opt *ListProjectRunnersOptions, options ...OptionFunc) ([]*Runner, *Response, error) {
|
||||
func (s *RunnersService) ListProjectRunners(pid interface{}, opt *ListProjectRunnersOptions, options ...RequestOptionFunc) ([]*Runner, *Response, error) {
|
||||
project, err := parseID(pid)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
|
@ -295,7 +296,7 @@ type EnableProjectRunnerOptions struct {
|
|||
//
|
||||
// GitLab API docs:
|
||||
// https://docs.gitlab.com/ce/api/runners.html#enable-a-runner-in-project
|
||||
func (s *RunnersService) EnableProjectRunner(pid interface{}, opt *EnableProjectRunnerOptions, options ...OptionFunc) (*Runner, *Response, error) {
|
||||
func (s *RunnersService) EnableProjectRunner(pid interface{}, opt *EnableProjectRunnerOptions, options ...RequestOptionFunc) (*Runner, *Response, error) {
|
||||
project, err := parseID(pid)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
|
@ -320,7 +321,7 @@ func (s *RunnersService) EnableProjectRunner(pid interface{}, opt *EnableProject
|
|||
//
|
||||
// GitLab API docs:
|
||||
// https://docs.gitlab.com/ce/api/runners.html#disable-a-runner-from-project
|
||||
func (s *RunnersService) DisableProjectRunner(pid interface{}, runner int, options ...OptionFunc) (*Response, error) {
|
||||
func (s *RunnersService) DisableProjectRunner(pid interface{}, runner int, options ...RequestOptionFunc) (*Response, error) {
|
||||
project, err := parseID(pid)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
@ -355,7 +356,7 @@ type RegisterNewRunnerOptions struct {
|
|||
//
|
||||
// GitLab API docs:
|
||||
// https://docs.gitlab.com/ce/api/runners.html#register-a-new-runner
|
||||
func (s *RunnersService) RegisterNewRunner(opt *RegisterNewRunnerOptions, options ...OptionFunc) (*Runner, *Response, error) {
|
||||
func (s *RunnersService) RegisterNewRunner(opt *RegisterNewRunnerOptions, options ...RequestOptionFunc) (*Runner, *Response, error) {
|
||||
req, err := s.client.NewRequest("POST", "runners", opt, options)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
|
@ -383,7 +384,7 @@ type DeleteRegisteredRunnerOptions struct {
|
|||
//
|
||||
// GitLab API docs:
|
||||
// https://docs.gitlab.com/ce/api/runners.html#delete-a-registered-runner
|
||||
func (s *RunnersService) DeleteRegisteredRunner(opt *DeleteRegisteredRunnerOptions, options ...OptionFunc) (*Response, error) {
|
||||
func (s *RunnersService) DeleteRegisteredRunner(opt *DeleteRegisteredRunnerOptions, options ...RequestOptionFunc) (*Response, error) {
|
||||
req, err := s.client.NewRequest("DELETE", "runners", opt, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
@ -405,7 +406,7 @@ type VerifyRegisteredRunnerOptions struct {
|
|||
//
|
||||
// GitLab API docs:
|
||||
// https://docs.gitlab.com/ce/api/runners.html#verify-authentication-for-a-registered-runner
|
||||
func (s *RunnersService) VerifyRegisteredRunner(opt *VerifyRegisteredRunnerOptions, options ...OptionFunc) (*Response, error) {
|
||||
func (s *RunnersService) VerifyRegisteredRunner(opt *VerifyRegisteredRunnerOptions, options ...RequestOptionFunc) (*Response, error) {
|
||||
req, err := s.client.NewRequest("POST", "runners/verify", opt, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue