@@ -80,28 +80,28 @@ type gitlabClient interface {
8080
8181 // ListKeys is a wrapper for "GET /projects/{project}/deploy_keys".
8282 // This function handles pagination, HTTP error wrapping, and validates the server result.
83- ListKeys (ctx context. Context , projectName string ) ([]* gitlab.DeployKey , error )
83+ ListKeys (projectName string ) ([]* gitlab.DeployKey , error )
8484 // CreateProjectKey is a wrapper for "POST /projects/{project}/deploy_keys".
8585 // This function handles HTTP error wrapping, and validates the server result.
86- CreateKey (ctx context. Context , projectName string , req * gitlab.DeployKey ) (* gitlab.DeployKey , error )
86+ CreateKey (projectName string , req * gitlab.DeployKey ) (* gitlab.DeployKey , error )
8787 // DeleteKey is a wrapper for "DELETE /projects/{project}/deploy_keys/{key_id}".
8888 // This function handles HTTP error wrapping.
89- DeleteKey (ctx context. Context , projectName string , keyID int ) error
89+ DeleteKey (projectName string , keyID int ) error
9090
9191 // Team related methods
9292
9393 // ShareGroup is a wrapper for ""
9494 // This function handles HTTP error wrapping, and validates the server result.
95- ShareProject (ctx context. Context , projectName string , groupID , groupAccess int ) error
95+ ShareProject (projectName string , groupID , groupAccess int ) error
9696 // UnshareProject is a wrapper for ""
9797 // This function handles HTTP error wrapping, and validates the server result.
98- UnshareProject (ctx context. Context , projectName string , groupID int ) error
98+ UnshareProject (projectName string , groupID int ) error
9999
100100 // Commits
101101
102102 // ListCommitsPage is a wrapper for "GET /projects/{project}/repository/commits".
103103 // This function handles pagination, HTTP error wrapping.
104- ListCommitsPage (ctx context. Context , projectName , branch string , perPage int , page int ) ([]* gitlab.Commit , error )
104+ ListCommitsPage (projectName , branch string , perPage int , page int ) ([]* gitlab.Commit , error )
105105}
106106
107107// gitlabClientImpl is a wrapper around *gitlab.Client, which implements higher-level methods,
@@ -329,7 +329,7 @@ func (c *gitlabClientImpl) DeleteProject(ctx context.Context, projectName string
329329 return err
330330}
331331
332- func (c * gitlabClientImpl ) ListKeys (ctx context. Context , projectName string ) ([]* gitlab.DeployKey , error ) {
332+ func (c * gitlabClientImpl ) ListKeys (projectName string ) ([]* gitlab.DeployKey , error ) {
333333 apiObjs := []* gitlab.DeployKey {}
334334 opts := & gitlab.ListProjectDeployKeysOptions {}
335335 err := allDeployKeyPages (opts , func () (* gitlab.Response , error ) {
@@ -350,7 +350,7 @@ func (c *gitlabClientImpl) ListKeys(ctx context.Context, projectName string) ([]
350350 return apiObjs , nil
351351}
352352
353- func (c * gitlabClientImpl ) CreateKey (ctx context. Context , projectName string , req * gitlab.DeployKey ) (* gitlab.DeployKey , error ) {
353+ func (c * gitlabClientImpl ) CreateKey (projectName string , req * gitlab.DeployKey ) (* gitlab.DeployKey , error ) {
354354 opts := & gitlab.AddDeployKeyOptions {
355355 Title : & req .Title ,
356356 Key : & req .Key ,
@@ -367,13 +367,13 @@ func (c *gitlabClientImpl) CreateKey(ctx context.Context, projectName string, re
367367 return apiObj , nil
368368}
369369
370- func (c * gitlabClientImpl ) DeleteKey (ctx context. Context , projectName string , keyID int ) error {
370+ func (c * gitlabClientImpl ) DeleteKey (projectName string , keyID int ) error {
371371 // DELETE /projects/{project}/deploy_keys
372372 _ , err := c .c .DeployKeys .DeleteDeployKey (projectName , keyID )
373373 return handleHTTPError (err )
374374}
375375
376- func (c * gitlabClientImpl ) ShareProject (ctx context. Context , projectName string , groupIDObj , groupAccessObj int ) error {
376+ func (c * gitlabClientImpl ) ShareProject (projectName string , groupIDObj , groupAccessObj int ) error {
377377 groupAccess := gitlab .AccessLevel (gitlab .AccessLevelValue (groupAccessObj ))
378378 groupID := & groupIDObj
379379 opt := & gitlab.ShareWithGroupOptions {
@@ -385,12 +385,12 @@ func (c *gitlabClientImpl) ShareProject(ctx context.Context, projectName string,
385385 return handleHTTPError (err )
386386}
387387
388- func (c * gitlabClientImpl ) UnshareProject (ctx context. Context , projectName string , groupID int ) error {
388+ func (c * gitlabClientImpl ) UnshareProject (projectName string , groupID int ) error {
389389 _ , err := c .c .Projects .DeleteSharedProjectFromGroup (projectName , groupID )
390390 return handleHTTPError (err )
391391}
392392
393- func (c * gitlabClientImpl ) ListCommitsPage (ctx context. Context , projectName string , branch string , perPage int , page int ) ([]* gitlab.Commit , error ) {
393+ func (c * gitlabClientImpl ) ListCommitsPage (projectName string , branch string , perPage int , page int ) ([]* gitlab.Commit , error ) {
394394 apiObjs := make ([]* gitlab.Commit , 0 )
395395
396396 opts := gitlab.ListCommitsOptions {
0 commit comments