mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 09:17:34 -04:00 
			
		
		
		
	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:
		
							
								
								
									
										12
									
								
								vendor/github.com/xanzy/go-gitlab/deploy_keys.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								vendor/github.com/xanzy/go-gitlab/deploy_keys.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -46,7 +46,7 @@ func (k DeployKey) String() string { | ||||
| // | ||||
| // GitLab API docs: | ||||
| // https://docs.gitlab.com/ce/api/deploy_keys.html#list-all-deploy-keys | ||||
| func (s *DeployKeysService) ListAllDeployKeys(options ...OptionFunc) ([]*DeployKey, *Response, error) { | ||||
| func (s *DeployKeysService) ListAllDeployKeys(options ...RequestOptionFunc) ([]*DeployKey, *Response, error) { | ||||
| 	req, err := s.client.NewRequest("GET", "deploy_keys", nil, options) | ||||
| 	if err != nil { | ||||
| 		return nil, nil, err | ||||
| @@ -72,7 +72,7 @@ type ListProjectDeployKeysOptions ListOptions | ||||
| // | ||||
| // GitLab API docs: | ||||
| // https://docs.gitlab.com/ce/api/deploy_keys.html#list-project-deploy-keys | ||||
| func (s *DeployKeysService) ListProjectDeployKeys(pid interface{}, opt *ListProjectDeployKeysOptions, options ...OptionFunc) ([]*DeployKey, *Response, error) { | ||||
| func (s *DeployKeysService) ListProjectDeployKeys(pid interface{}, opt *ListProjectDeployKeysOptions, options ...RequestOptionFunc) ([]*DeployKey, *Response, error) { | ||||
| 	project, err := parseID(pid) | ||||
| 	if err != nil { | ||||
| 		return nil, nil, err | ||||
| @@ -97,7 +97,7 @@ func (s *DeployKeysService) ListProjectDeployKeys(pid interface{}, opt *ListProj | ||||
| // | ||||
| // GitLab API docs: | ||||
| // https://docs.gitlab.com/ce/api/deploy_keys.html#single-deploy-key | ||||
| func (s *DeployKeysService) GetDeployKey(pid interface{}, deployKey int, options ...OptionFunc) (*DeployKey, *Response, error) { | ||||
| func (s *DeployKeysService) GetDeployKey(pid interface{}, deployKey int, options ...RequestOptionFunc) (*DeployKey, *Response, error) { | ||||
| 	project, err := parseID(pid) | ||||
| 	if err != nil { | ||||
| 		return nil, nil, err | ||||
| @@ -134,7 +134,7 @@ type AddDeployKeyOptions struct { | ||||
| // | ||||
| // GitLab API docs: | ||||
| // https://docs.gitlab.com/ce/api/deploy_keys.html#add-deploy-key | ||||
| func (s *DeployKeysService) AddDeployKey(pid interface{}, opt *AddDeployKeyOptions, options ...OptionFunc) (*DeployKey, *Response, error) { | ||||
| func (s *DeployKeysService) AddDeployKey(pid interface{}, opt *AddDeployKeyOptions, options ...RequestOptionFunc) (*DeployKey, *Response, error) { | ||||
| 	project, err := parseID(pid) | ||||
| 	if err != nil { | ||||
| 		return nil, nil, err | ||||
| @@ -159,7 +159,7 @@ func (s *DeployKeysService) AddDeployKey(pid interface{}, opt *AddDeployKeyOptio | ||||
| // | ||||
| // GitLab API docs: | ||||
| // https://docs.gitlab.com/ce/api/deploy_keys.html#delete-deploy-key | ||||
| func (s *DeployKeysService) DeleteDeployKey(pid interface{}, deployKey int, options ...OptionFunc) (*Response, error) { | ||||
| func (s *DeployKeysService) DeleteDeployKey(pid interface{}, deployKey int, options ...RequestOptionFunc) (*Response, error) { | ||||
| 	project, err := parseID(pid) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| @@ -178,7 +178,7 @@ func (s *DeployKeysService) DeleteDeployKey(pid interface{}, deployKey int, opti | ||||
| // | ||||
| // GitLab API docs: | ||||
| // https://docs.gitlab.com/ce/api/deploy_keys.html#enable-deploy-key | ||||
| func (s *DeployKeysService) EnableDeployKey(pid interface{}, deployKey int, options ...OptionFunc) (*DeployKey, *Response, error) { | ||||
| func (s *DeployKeysService) EnableDeployKey(pid interface{}, deployKey int, options ...RequestOptionFunc) (*DeployKey, *Response, error) { | ||||
| 	project, err := parseID(pid) | ||||
| 	if err != nil { | ||||
| 		return nil, nil, err | ||||
|   | ||||
		Reference in New Issue
	
	Block a user