summaryrefslogtreecommitdiff
path: root/go/internal/gitlabnet/accessverifier/client.go
diff options
context:
space:
mode:
authorIgor <idrozdov@gitlab.com>2019-06-03 15:21:25 +0000
committerNick Thomas <nick@gitlab.com>2019-06-03 15:21:25 +0000
commitcde5b73cb8776c70c6d00ff34c568ea4438bcba9 (patch)
treeddc0d81da81ebfdb2c05819c88cde2c56dbaf4d5 /go/internal/gitlabnet/accessverifier/client.go
parentbeb5855542645cdc9bf7f954b9c5a9333dfb3975 (diff)
downloadgitlab-shell-cde5b73cb8776c70c6d00ff34c568ea4438bcba9.tar.gz
Go implementation for git-upload-pack
Diffstat (limited to 'go/internal/gitlabnet/accessverifier/client.go')
-rw-r--r--go/internal/gitlabnet/accessverifier/client.go16
1 files changed, 4 insertions, 12 deletions
diff --git a/go/internal/gitlabnet/accessverifier/client.go b/go/internal/gitlabnet/accessverifier/client.go
index ebe8545..d87c4ad 100644
--- a/go/internal/gitlabnet/accessverifier/client.go
+++ b/go/internal/gitlabnet/accessverifier/client.go
@@ -4,6 +4,7 @@ import (
"fmt"
"net/http"
+ pb "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb"
"gitlab.com/gitlab-org/gitlab-shell/go/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/go/internal/config"
"gitlab.com/gitlab-org/gitlab-shell/go/internal/gitlabnet"
@@ -27,19 +28,10 @@ type Request struct {
Username string `json:"username,omitempty"`
}
-type GitalyRepo struct {
- StorageName string `json:"storage_name"`
- RelativePath string `json:"relative_path"`
- GitObjectDirectory string `json:"git_object_directory"`
- GitAlternateObjectDirectories []string `json:"git_alternate_object_directories"`
- RepoName string `json:"gl_repository"`
- ProjectPath string `json:"gl_project_path"`
-}
-
type Gitaly struct {
- Repo GitalyRepo `json:"repository"`
- Address string `json:"address"`
- Token string `json:"token"`
+ Repo pb.Repository `json:"repository"`
+ Address string `json:"address"`
+ Token string `json:"token"`
}
type CustomPayloadData struct {