Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSami Hiltunen <shiltunen@gitlab.com>2021-12-09 19:45:33 +0300
committerSami Hiltunen <shiltunen@gitlab.com>2021-12-09 20:48:56 +0300
commitb6a637dc0c9889f204c841bff23ec92d210c83d6 (patch)
treeae44f8dfec7bf1392b5c7076460ae967ce1087d0
parent8502ecefff746b0fedb11a400dd43d8ae290413e (diff)
Correct documentation of GLID parameter of internal/allowedsmh-remove-unused-params
GLID is currently documented as identifying the repository. This is incorrect and the parameter actually carries the information to identify the user performing the operation. Fix the documentation.
-rw-r--r--internal/gitlab/client.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/gitlab/client.go b/internal/gitlab/client.go
index 093f818a2..6c99c9ddc 100644
--- a/internal/gitlab/client.go
+++ b/internal/gitlab/client.go
@@ -16,7 +16,11 @@ type AllowedParams struct {
// For example, `project-19` specifies the code repository of project with id 19
// and `wiki-19` specifies the wiki repository of the same project.
GLRepository string
- // GLID is an identifier of the repository.
+ // GLID is the identifier of the actor performing the operation.
+ //
+ // This value is opaque to Gitaly but is formatted as `<type>-<value>`. For example,
+ // 'user-13' specifies the operation was performed by user with ID 13. If username of
+ // user 13 is 'exampleuser', GLID 'username-exampleuser' would identify the same user.
GLID string
// GLProtocol is a protocol used for operation.
GLProtocol string