forked from forgejo/forgejo
Vendor Update (#14696)
* github.com/yuin/goldmark v1.3.1 -> v1.3.2 * github.com/xanzy/go-gitlab v0.42.0 -> v0.44.0 * github.com/prometheus/client_golang v1.8.0 -> v1.9.0 * github.com/minio/minio-go v7.0.7 -> v7.0.9 * github.com/lafriks/xormstore v1.3.2 -> v1.4.0 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
parent
dc707aea09
commit
fe628d8406
137 changed files with 3348 additions and 1312 deletions
31
vendor/github.com/xanzy/go-gitlab/jobs.go
generated
vendored
31
vendor/github.com/xanzy/go-gitlab/jobs.go
generated
vendored
|
@ -1,5 +1,5 @@
|
|||
//
|
||||
// Copyright 2017, Arkbriar
|
||||
// Copyright 2021, Arkbriar
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
@ -19,6 +19,7 @@ package gitlab
|
|||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
@ -118,7 +119,7 @@ func (s *JobsService) ListProjectJobs(pid interface{}, opts *ListJobsOptions, op
|
|||
}
|
||||
u := fmt.Sprintf("projects/%s/jobs", pathEscape(project))
|
||||
|
||||
req, err := s.client.NewRequest("GET", u, opts, options)
|
||||
req, err := s.client.NewRequest(http.MethodGet, u, opts, options)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
@ -144,7 +145,7 @@ func (s *JobsService) ListPipelineJobs(pid interface{}, pipelineID int, opts *Li
|
|||
}
|
||||
u := fmt.Sprintf("projects/%s/pipelines/%d/jobs", pathEscape(project), pipelineID)
|
||||
|
||||
req, err := s.client.NewRequest("GET", u, opts, options)
|
||||
req, err := s.client.NewRequest(http.MethodGet, u, opts, options)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
@ -170,7 +171,7 @@ func (s *JobsService) ListPipelineBridges(pid interface{}, pipelineID int, opts
|
|||
}
|
||||
u := fmt.Sprintf("projects/%s/pipelines/%d/bridges", pathEscape(project), pipelineID)
|
||||
|
||||
req, err := s.client.NewRequest("GET", u, opts, options)
|
||||
req, err := s.client.NewRequest(http.MethodGet, u, opts, options)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
@ -195,7 +196,7 @@ func (s *JobsService) GetJob(pid interface{}, jobID int, options ...RequestOptio
|
|||
}
|
||||
u := fmt.Sprintf("projects/%s/jobs/%d", pathEscape(project), jobID)
|
||||
|
||||
req, err := s.client.NewRequest("GET", u, nil, options)
|
||||
req, err := s.client.NewRequest(http.MethodGet, u, nil, options)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
@ -220,7 +221,7 @@ func (s *JobsService) GetJobArtifacts(pid interface{}, jobID int, options ...Req
|
|||
}
|
||||
u := fmt.Sprintf("projects/%s/jobs/%d/artifacts", pathEscape(project), jobID)
|
||||
|
||||
req, err := s.client.NewRequest("GET", u, nil, options)
|
||||
req, err := s.client.NewRequest(http.MethodGet, u, nil, options)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
@ -255,7 +256,7 @@ func (s *JobsService) DownloadArtifactsFile(pid interface{}, refName string, opt
|
|||
}
|
||||
u := fmt.Sprintf("projects/%s/jobs/artifacts/%s/download", pathEscape(project), refName)
|
||||
|
||||
req, err := s.client.NewRequest("GET", u, opt, options)
|
||||
req, err := s.client.NewRequest(http.MethodGet, u, opt, options)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
@ -289,7 +290,7 @@ func (s *JobsService) DownloadSingleArtifactsFile(pid interface{}, jobID int, ar
|
|||
artifactPath,
|
||||
)
|
||||
|
||||
req, err := s.client.NewRequest("GET", u, nil, options)
|
||||
req, err := s.client.NewRequest(http.MethodGet, u, nil, options)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
@ -314,7 +315,7 @@ func (s *JobsService) GetTraceFile(pid interface{}, jobID int, options ...Reques
|
|||
}
|
||||
u := fmt.Sprintf("projects/%s/jobs/%d/trace", pathEscape(project), jobID)
|
||||
|
||||
req, err := s.client.NewRequest("GET", u, nil, options)
|
||||
req, err := s.client.NewRequest(http.MethodGet, u, nil, options)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
@ -339,7 +340,7 @@ func (s *JobsService) CancelJob(pid interface{}, jobID int, options ...RequestOp
|
|||
}
|
||||
u := fmt.Sprintf("projects/%s/jobs/%d/cancel", pathEscape(project), jobID)
|
||||
|
||||
req, err := s.client.NewRequest("POST", u, nil, options)
|
||||
req, err := s.client.NewRequest(http.MethodPost, u, nil, options)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
@ -364,7 +365,7 @@ func (s *JobsService) RetryJob(pid interface{}, jobID int, options ...RequestOpt
|
|||
}
|
||||
u := fmt.Sprintf("projects/%s/jobs/%d/retry", pathEscape(project), jobID)
|
||||
|
||||
req, err := s.client.NewRequest("POST", u, nil, options)
|
||||
req, err := s.client.NewRequest(http.MethodPost, u, nil, options)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
@ -390,7 +391,7 @@ func (s *JobsService) EraseJob(pid interface{}, jobID int, options ...RequestOpt
|
|||
}
|
||||
u := fmt.Sprintf("projects/%s/jobs/%d/erase", pathEscape(project), jobID)
|
||||
|
||||
req, err := s.client.NewRequest("POST", u, nil, options)
|
||||
req, err := s.client.NewRequest(http.MethodPost, u, nil, options)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
@ -416,7 +417,7 @@ func (s *JobsService) KeepArtifacts(pid interface{}, jobID int, options ...Reque
|
|||
}
|
||||
u := fmt.Sprintf("projects/%s/jobs/%d/artifacts/keep", pathEscape(project), jobID)
|
||||
|
||||
req, err := s.client.NewRequest("POST", u, nil, options)
|
||||
req, err := s.client.NewRequest(http.MethodPost, u, nil, options)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
@ -441,7 +442,7 @@ func (s *JobsService) PlayJob(pid interface{}, jobID int, options ...RequestOpti
|
|||
}
|
||||
u := fmt.Sprintf("projects/%s/jobs/%d/play", pathEscape(project), jobID)
|
||||
|
||||
req, err := s.client.NewRequest("POST", u, nil, options)
|
||||
req, err := s.client.NewRequest(http.MethodPost, u, nil, options)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
@ -466,7 +467,7 @@ func (s *JobsService) DeleteArtifacts(pid interface{}, jobID int, options ...Req
|
|||
}
|
||||
u := fmt.Sprintf("projects/%s/jobs/%d/artifacts", pathEscape(project), jobID)
|
||||
|
||||
req, err := s.client.NewRequest("DELETE", u, nil, options)
|
||||
req, err := s.client.NewRequest(http.MethodDelete, u, nil, options)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue