From a7c243bb6d36684329fa8e9b96a95f2c22ba81e5 Mon Sep 17 00:00:00 2001 From: Zeger-Jan van de Weg Date: Thu, 6 Dec 2018 12:31:31 +0100 Subject: Upgrade gitaly Client dependency The client now has TLS support. So this gets pulled into this component. To make it work, we have to upgrade the proto too. --- go/README.md | 2 +- go/cmd/gitaly-receive-pack/main.go | 5 +- go/cmd/gitaly-upload-archive/main.go | 7 +- go/cmd/gitaly-upload-archive/main_test.go | 6 +- go/cmd/gitaly-upload-pack/main.go | 5 +- go/internal/handler/receive_pack.go | 4 +- go/internal/handler/upload_archive.go | 4 +- go/internal/handler/upload_pack.go | 4 +- .../gitlab.com/gitlab-org/gitaly-proto/go/VERSION | 2 +- .../gitlab-org/gitaly-proto/go/blob.pb.go | 1124 ------- .../gitlab-org/gitaly-proto/go/commit.pb.go | 2489 --------------- .../gitlab-org/gitaly-proto/go/conflicts.pb.go | 650 ---- .../gitaly-proto/go/deprecated-services.pb.go | 1146 ------- .../gitlab-org/gitaly-proto/go/diff.pb.go | 1037 ------- .../gitlab-org/gitaly-proto/go/gitalypb/blob.pb.go | 1146 +++++++ .../gitaly-proto/go/gitalypb/cleanup.pb.go | 183 ++ .../gitaly-proto/go/gitalypb/commit.pb.go | 2652 ++++++++++++++++ .../gitaly-proto/go/gitalypb/conflicts.pb.go | 650 ++++ .../gitlab-org/gitaly-proto/go/gitalypb/diff.pb.go | 1064 +++++++ .../gitaly-proto/go/gitalypb/namespace.pb.go | 369 +++ .../gitaly-proto/go/gitalypb/notifications.pb.go | 136 + .../gitaly-proto/go/gitalypb/objectpool.pb.go | 374 +++ .../gitaly-proto/go/gitalypb/operations.pb.go | 2357 ++++++++++++++ .../gitlab-org/gitaly-proto/go/gitalypb/ref.pb.go | 2045 ++++++++++++ .../gitaly-proto/go/gitalypb/remote.pb.go | 606 ++++ .../go/gitalypb/repository-service.pb.go | 3271 ++++++++++++++++++++ .../gitaly-proto/go/gitalypb/server.pb.go | 193 ++ .../gitaly-proto/go/gitalypb/shared.pb.go | 376 +++ .../gitaly-proto/go/gitalypb/smarthttp.pb.go | 555 ++++ .../gitlab-org/gitaly-proto/go/gitalypb/ssh.pb.go | 549 ++++ .../gitaly-proto/go/gitalypb/storage.pb.go | 243 ++ .../gitlab-org/gitaly-proto/go/gitalypb/wiki.pb.go | 1236 ++++++++ .../gitlab-org/gitaly-proto/go/helper/inforefs.go | 32 - .../gitlab-org/gitaly-proto/go/helper/stream.go | 44 - .../gitlab-org/gitaly-proto/go/namespace.pb.go | 369 --- .../gitlab-org/gitaly-proto/go/notifications.pb.go | 136 - .../gitlab-org/gitaly-proto/go/operations.pb.go | 1963 ------------ .../gitlab-org/gitaly-proto/go/ref.pb.go | 2045 ------------ .../gitlab-org/gitaly-proto/go/remote.pb.go | 510 --- .../gitaly-proto/go/repository-service.pb.go | 3270 ------------------- .../gitlab-org/gitaly-proto/go/server.pb.go | 193 -- .../gitlab-org/gitaly-proto/go/shared.pb.go | 360 --- .../gitlab-org/gitaly-proto/go/smarthttp.pb.go | 555 ---- .../gitlab-org/gitaly-proto/go/ssh.pb.go | 549 ---- .../gitlab-org/gitaly-proto/go/storage.pb.go | 135 - .../gitlab-org/gitaly-proto/go/wiki.pb.go | 1236 -------- go/vendor/gitlab.com/gitlab-org/gitaly/NOTICE | 64 +- .../gitlab-org/gitaly/client/address_parser.go | 24 + .../gitlab.com/gitlab-org/gitaly/client/dial.go | 55 +- .../gitlab-org/gitaly/client/pool-darwin.go | 58 + .../gitlab.com/gitlab-org/gitaly/client/pool.go | 8 + .../gitlab-org/gitaly/client/receive_pack.go | 10 +- .../gitlab-org/gitaly/client/std_stream.go | 4 +- .../gitlab-org/gitaly/client/upload_archive.go | 10 +- .../gitlab-org/gitaly/client/upload_pack.go | 10 +- go/vendor/vendor.json | 27 +- 56 files changed, 18222 insertions(+), 17935 deletions(-) delete mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/blob.pb.go delete mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/commit.pb.go delete mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/conflicts.pb.go delete mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/deprecated-services.pb.go delete mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/diff.pb.go create mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/blob.pb.go create mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/cleanup.pb.go create mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/commit.pb.go create mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/conflicts.pb.go create mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/diff.pb.go create mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/namespace.pb.go create mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/notifications.pb.go create mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/objectpool.pb.go create mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/operations.pb.go create mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/ref.pb.go create mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/remote.pb.go create mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/repository-service.pb.go create mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/server.pb.go create mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/shared.pb.go create mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/smarthttp.pb.go create mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/ssh.pb.go create mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/storage.pb.go create mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/wiki.pb.go delete mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/helper/inforefs.go delete mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/helper/stream.go delete mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/namespace.pb.go delete mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/notifications.pb.go delete mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/operations.pb.go delete mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/ref.pb.go delete mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/remote.pb.go delete mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/repository-service.pb.go delete mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/server.pb.go delete mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/shared.pb.go delete mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/smarthttp.pb.go delete mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/ssh.pb.go delete mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/storage.pb.go delete mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/wiki.pb.go create mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly/client/address_parser.go create mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly/client/pool-darwin.go create mode 100644 go/vendor/gitlab.com/gitlab-org/gitaly/client/pool.go diff --git a/go/README.md b/go/README.md index 6bbc03e..b851ce7 100644 --- a/go/README.md +++ b/go/README.md @@ -14,5 +14,5 @@ To update e.g. `gitaly-proto` run the following command in the root directory of the project. ``` -support/go-update-vendor gitlab.com/gitlab-org/gitaly-proto/go@v0.109.0 +support/go-update-vendor gitlab.com/gitlab-org/gitaly-proto/go/gitalypb@v1.3.0 ``` diff --git a/go/cmd/gitaly-receive-pack/main.go b/go/cmd/gitaly-receive-pack/main.go index 511d584..06b8a72 100644 --- a/go/cmd/gitaly-receive-pack/main.go +++ b/go/cmd/gitaly-receive-pack/main.go @@ -5,10 +5,9 @@ import ( "fmt" "os" + "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb" "gitlab.com/gitlab-org/gitlab-shell/go/internal/handler" "gitlab.com/gitlab-org/gitlab-shell/go/internal/logger" - - pb "gitlab.com/gitlab-org/gitaly-proto/go" ) func init() { @@ -24,7 +23,7 @@ func main() { logger.Fatal("wrong number of arguments", fmt.Errorf("expected 2 arguments, got %v", os.Args)) } - var request pb.SSHReceivePackRequest + var request gitalypb.SSHReceivePackRequest if err := json.Unmarshal([]byte(os.Args[2]), &request); err != nil { logger.Fatal("unmarshaling request json failed", err) } diff --git a/go/cmd/gitaly-upload-archive/main.go b/go/cmd/gitaly-upload-archive/main.go index c988baa..845f8f4 100644 --- a/go/cmd/gitaly-upload-archive/main.go +++ b/go/cmd/gitaly-upload-archive/main.go @@ -5,17 +5,16 @@ import ( "fmt" "os" + "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb" "gitlab.com/gitlab-org/gitlab-shell/go/internal/handler" "gitlab.com/gitlab-org/gitlab-shell/go/internal/logger" - - pb "gitlab.com/gitlab-org/gitaly-proto/go" ) func init() { logger.ProgName = "gitaly-upload-archive" } -type uploadArchiveHandler func(gitalyAddress string, request *pb.SSHUploadArchiveRequest) (int32, error) +type uploadArchiveHandler func(gitalyAddress string, request *gitalypb.SSHUploadArchiveRequest) (int32, error) func main() { if err := handler.Prepare(); err != nil { @@ -36,7 +35,7 @@ func uploadArchive(handler uploadArchiveHandler, args []string) (int32, error) { return 0, fmt.Errorf("wrong number of arguments: expected 2 arguments, got %v", args) } - var request pb.SSHUploadArchiveRequest + var request gitalypb.SSHUploadArchiveRequest if err := json.Unmarshal([]byte(args[2]), &request); err != nil { return 0, fmt.Errorf("unmarshaling request json failed: %v", err) } diff --git a/go/cmd/gitaly-upload-archive/main_test.go b/go/cmd/gitaly-upload-archive/main_test.go index b17da7b..7cb9942 100644 --- a/go/cmd/gitaly-upload-archive/main_test.go +++ b/go/cmd/gitaly-upload-archive/main_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - pb "gitlab.com/gitlab-org/gitaly-proto/go" + "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb" ) var testGitalyAddress = "unix:gitaly.socket" @@ -13,7 +13,7 @@ var testGitalyAddress = "unix:gitaly.socket" func TestUploadArchiveSuccess(t *testing.T) { testRelativePath := "myrepo.git" requestJSON := fmt.Sprintf(`{"repository":{"relative_path":"%s"}}`, testRelativePath) - mockHandler := func(gitalyAddress string, request *pb.SSHUploadArchiveRequest) (int32, error) { + mockHandler := func(gitalyAddress string, request *gitalypb.SSHUploadArchiveRequest) (int32, error) { if gitalyAddress != testGitalyAddress { t.Fatalf("Expected gitaly address %s got %v", testGitalyAddress, gitalyAddress) } @@ -35,7 +35,7 @@ func TestUploadArchiveSuccess(t *testing.T) { } func TestUploadArchiveFailure(t *testing.T) { - mockHandler := func(_ string, _ *pb.SSHUploadArchiveRequest) (int32, error) { + mockHandler := func(_ string, _ *gitalypb.SSHUploadArchiveRequest) (int32, error) { t.Fatal("Expected handler not to be called") return 0, nil diff --git a/go/cmd/gitaly-upload-pack/main.go b/go/cmd/gitaly-upload-pack/main.go index 282c90f..a2250b2 100644 --- a/go/cmd/gitaly-upload-pack/main.go +++ b/go/cmd/gitaly-upload-pack/main.go @@ -5,10 +5,9 @@ import ( "fmt" "os" + "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb" "gitlab.com/gitlab-org/gitlab-shell/go/internal/handler" "gitlab.com/gitlab-org/gitlab-shell/go/internal/logger" - - pb "gitlab.com/gitlab-org/gitaly-proto/go" ) func init() { @@ -24,7 +23,7 @@ func main() { logger.Fatal("wrong number of arguments", fmt.Errorf("expected 2 arguments, got %v", os.Args)) } - var request pb.SSHUploadPackRequest + var request gitalypb.SSHUploadPackRequest if err := json.Unmarshal([]byte(os.Args[2]), &request); err != nil { logger.Fatal("unmarshaling request json failed", err) } diff --git a/go/internal/handler/receive_pack.go b/go/internal/handler/receive_pack.go index e69486f..096204f 100644 --- a/go/internal/handler/receive_pack.go +++ b/go/internal/handler/receive_pack.go @@ -5,11 +5,11 @@ import ( "fmt" "os" - pb "gitlab.com/gitlab-org/gitaly-proto/go" + "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb" "gitlab.com/gitlab-org/gitaly/client" ) -func ReceivePack(gitalyAddress string, request *pb.SSHReceivePackRequest) (int32, error) { +func ReceivePack(gitalyAddress string, request *gitalypb.SSHReceivePackRequest) (int32, error) { if gitalyAddress == "" { return 0, fmt.Errorf("no gitaly_address given") } diff --git a/go/internal/handler/upload_archive.go b/go/internal/handler/upload_archive.go index 4ab1e71..8028c5b 100644 --- a/go/internal/handler/upload_archive.go +++ b/go/internal/handler/upload_archive.go @@ -5,11 +5,11 @@ import ( "fmt" "os" - pb "gitlab.com/gitlab-org/gitaly-proto/go" + "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb" "gitlab.com/gitlab-org/gitaly/client" ) -func UploadArchive(gitalyAddress string, request *pb.SSHUploadArchiveRequest) (int32, error) { +func UploadArchive(gitalyAddress string, request *gitalypb.SSHUploadArchiveRequest) (int32, error) { if gitalyAddress == "" { return 0, fmt.Errorf("no gitaly_address given") } diff --git a/go/internal/handler/upload_pack.go b/go/internal/handler/upload_pack.go index 51a2f3b..2aec2eb 100644 --- a/go/internal/handler/upload_pack.go +++ b/go/internal/handler/upload_pack.go @@ -5,11 +5,11 @@ import ( "fmt" "os" - pb "gitlab.com/gitlab-org/gitaly-proto/go" + "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb" "gitlab.com/gitlab-org/gitaly/client" ) -func UploadPack(gitalyAddress string, request *pb.SSHUploadPackRequest) (int32, error) { +func UploadPack(gitalyAddress string, request *gitalypb.SSHUploadPackRequest) (int32, error) { if gitalyAddress == "" { return 0, fmt.Errorf("no gitaly_address given") } diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/VERSION b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/VERSION index e23e3fd..f0bb29e 100644 --- a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/VERSION +++ b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/VERSION @@ -1 +1 @@ -0.112.0 +1.3.0 diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/blob.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/blob.pb.go deleted file mode 100644 index 98695ab..0000000 --- a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/blob.pb.go +++ /dev/null @@ -1,1124 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: blob.proto - -/* -Package gitaly is a generated protocol buffer package. - -It is generated from these files: - blob.proto - commit.proto - conflicts.proto - deprecated-services.proto - diff.proto - namespace.proto - notifications.proto - operations.proto - ref.proto - remote.proto - repository-service.proto - server.proto - shared.proto - smarthttp.proto - ssh.proto - storage.proto - wiki.proto - -It has these top-level messages: - GetBlobRequest - GetBlobResponse - GetBlobsRequest - GetBlobsResponse - LFSPointer - NewBlobObject - GetLFSPointersRequest - GetLFSPointersResponse - GetNewLFSPointersRequest - GetNewLFSPointersResponse - GetAllLFSPointersRequest - GetAllLFSPointersResponse - CommitStatsRequest - CommitStatsResponse - CommitIsAncestorRequest - CommitIsAncestorResponse - TreeEntryRequest - TreeEntryResponse - CommitsBetweenRequest - CommitsBetweenResponse - CountCommitsRequest - CountCommitsResponse - TreeEntry - GetTreeEntriesRequest - GetTreeEntriesResponse - ListFilesRequest - ListFilesResponse - FindCommitRequest - FindCommitResponse - ListCommitsByOidRequest - ListCommitsByOidResponse - FindAllCommitsRequest - FindAllCommitsResponse - FindCommitsRequest - FindCommitsResponse - CommitLanguagesRequest - CommitLanguagesResponse - RawBlameRequest - RawBlameResponse - LastCommitForPathRequest - LastCommitForPathResponse - CommitsByMessageRequest - CommitsByMessageResponse - FilterShasWithSignaturesRequest - FilterShasWithSignaturesResponse - ExtractCommitSignatureRequest - ExtractCommitSignatureResponse - GetCommitSignaturesRequest - GetCommitSignaturesResponse - GetCommitMessagesRequest - GetCommitMessagesResponse - ListConflictFilesRequest - ConflictFileHeader - ConflictFile - ListConflictFilesResponse - ResolveConflictsRequestHeader - ResolveConflictsRequest - ResolveConflictsResponse - CommitDiffRequest - CommitDiffResponse - CommitDeltaRequest - CommitDelta - CommitDeltaResponse - CommitPatchRequest - CommitPatchResponse - RawDiffRequest - RawDiffResponse - RawPatchRequest - RawPatchResponse - DiffStatsRequest - DiffStats - DiffStatsResponse - AddNamespaceRequest - RemoveNamespaceRequest - RenameNamespaceRequest - NamespaceExistsRequest - NamespaceExistsResponse - AddNamespaceResponse - RemoveNamespaceResponse - RenameNamespaceResponse - PostReceiveRequest - PostReceiveResponse - UserCreateBranchRequest - UserCreateBranchResponse - UserUpdateBranchRequest - UserUpdateBranchResponse - UserDeleteBranchRequest - UserDeleteBranchResponse - UserDeleteTagRequest - UserDeleteTagResponse - UserCreateTagRequest - UserCreateTagResponse - UserMergeBranchRequest - UserMergeBranchResponse - OperationBranchUpdate - UserFFBranchRequest - UserFFBranchResponse - UserCherryPickRequest - UserCherryPickResponse - UserRevertRequest - UserRevertResponse - UserCommitFilesActionHeader - UserCommitFilesAction - UserCommitFilesRequestHeader - UserCommitFilesRequest - UserCommitFilesResponse - UserRebaseRequest - UserRebaseResponse - UserSquashRequest - UserSquashResponse - ListNewBlobsRequest - ListNewBlobsResponse - FindDefaultBranchNameRequest - FindDefaultBranchNameResponse - FindAllBranchNamesRequest - FindAllBranchNamesResponse - FindAllTagNamesRequest - FindAllTagNamesResponse - FindRefNameRequest - FindRefNameResponse - FindLocalBranchesRequest - FindLocalBranchesResponse - FindLocalBranchResponse - FindLocalBranchCommitAuthor - FindAllBranchesRequest - FindAllBranchesResponse - FindAllTagsRequest - FindAllTagsResponse - RefExistsRequest - RefExistsResponse - CreateBranchRequest - CreateBranchResponse - DeleteBranchRequest - DeleteBranchResponse - FindBranchRequest - FindBranchResponse - DeleteRefsRequest - DeleteRefsResponse - ListBranchNamesContainingCommitRequest - ListBranchNamesContainingCommitResponse - ListTagNamesContainingCommitRequest - ListTagNamesContainingCommitResponse - GetTagMessagesRequest - GetTagMessagesResponse - ListNewCommitsRequest - ListNewCommitsResponse - FindAllRemoteBranchesRequest - FindAllRemoteBranchesResponse - AddRemoteRequest - AddRemoteResponse - RemoveRemoteRequest - RemoveRemoteResponse - FetchInternalRemoteRequest - FetchInternalRemoteResponse - UpdateRemoteMirrorRequest - UpdateRemoteMirrorResponse - FindRemoteRepositoryRequest - FindRemoteRepositoryResponse - RepositoryExistsRequest - RepositoryExistsResponse - RepackIncrementalRequest - RepackIncrementalResponse - RepackFullRequest - RepackFullResponse - GarbageCollectRequest - GarbageCollectResponse - CleanupRequest - CleanupResponse - RepositorySizeRequest - RepositorySizeResponse - ApplyGitattributesRequest - ApplyGitattributesResponse - FetchRemoteRequest - FetchRemoteResponse - CreateRepositoryRequest - CreateRepositoryResponse - GetArchiveRequest - GetArchiveResponse - HasLocalBranchesRequest - HasLocalBranchesResponse - FetchSourceBranchRequest - FetchSourceBranchResponse - FsckRequest - FsckResponse - WriteRefRequest - WriteRefResponse - FindMergeBaseRequest - FindMergeBaseResponse - CreateForkRequest - CreateForkResponse - IsRebaseInProgressRequest - IsRebaseInProgressResponse - IsSquashInProgressRequest - IsSquashInProgressResponse - CreateRepositoryFromURLRequest - CreateRepositoryFromURLResponse - CreateBundleRequest - CreateBundleResponse - WriteConfigRequest - WriteConfigResponse - SetConfigRequest - SetConfigResponse - DeleteConfigRequest - DeleteConfigResponse - RestoreCustomHooksRequest - RestoreCustomHooksResponse - BackupCustomHooksRequest - BackupCustomHooksResponse - CreateRepositoryFromBundleRequest - CreateRepositoryFromBundleResponse - FindLicenseRequest - FindLicenseResponse - GetInfoAttributesRequest - GetInfoAttributesResponse - CalculateChecksumRequest - CalculateChecksumResponse - GetSnapshotRequest - GetSnapshotResponse - CreateRepositoryFromSnapshotRequest - CreateRepositoryFromSnapshotResponse - GetRawChangesRequest - GetRawChangesResponse - SearchFilesByNameRequest - SearchFilesByNameResponse - SearchFilesByContentRequest - SearchFilesByContentResponse - ServerInfoRequest - ServerInfoResponse - Repository - GitCommit - CommitAuthor - ExitStatus - Branch - Tag - User - InfoRefsRequest - InfoRefsResponse - PostUploadPackRequest - PostUploadPackResponse - PostReceivePackRequest - PostReceivePackResponse - SSHUploadPackRequest - SSHUploadPackResponse - SSHReceivePackRequest - SSHReceivePackResponse - SSHUploadArchiveRequest - SSHUploadArchiveResponse - DeleteAllRepositoriesRequest - DeleteAllRepositoriesResponse - WikiCommitDetails - WikiPageVersion - WikiPage - WikiGetPageVersionsRequest - WikiGetPageVersionsResponse - WikiWritePageRequest - WikiWritePageResponse - WikiUpdatePageRequest - WikiUpdatePageResponse - WikiDeletePageRequest - WikiDeletePageResponse - WikiFindPageRequest - WikiFindPageResponse - WikiFindFileRequest - WikiFindFileResponse - WikiGetAllPagesRequest - WikiGetAllPagesResponse - WikiGetFormattedDataRequest - WikiGetFormattedDataResponse -*/ -package gitaly - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package - -type GetBlobRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - // Object ID (SHA1) of the blob we want to get - Oid string `protobuf:"bytes,2,opt,name=oid" json:"oid,omitempty"` - // Maximum number of bytes we want to receive. Use '-1' to get the full blob no matter how big. - Limit int64 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"` -} - -func (m *GetBlobRequest) Reset() { *m = GetBlobRequest{} } -func (m *GetBlobRequest) String() string { return proto.CompactTextString(m) } -func (*GetBlobRequest) ProtoMessage() {} -func (*GetBlobRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -func (m *GetBlobRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *GetBlobRequest) GetOid() string { - if m != nil { - return m.Oid - } - return "" -} - -func (m *GetBlobRequest) GetLimit() int64 { - if m != nil { - return m.Limit - } - return 0 -} - -type GetBlobResponse struct { - // Blob size; present only in first response message - Size int64 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"` - // Chunk of blob data - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - // Object ID of the actual blob returned. Empty if no blob was found. - Oid string `protobuf:"bytes,3,opt,name=oid" json:"oid,omitempty"` -} - -func (m *GetBlobResponse) Reset() { *m = GetBlobResponse{} } -func (m *GetBlobResponse) String() string { return proto.CompactTextString(m) } -func (*GetBlobResponse) ProtoMessage() {} -func (*GetBlobResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } - -func (m *GetBlobResponse) GetSize() int64 { - if m != nil { - return m.Size - } - return 0 -} - -func (m *GetBlobResponse) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} - -func (m *GetBlobResponse) GetOid() string { - if m != nil { - return m.Oid - } - return "" -} - -type GetBlobsRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - // Revision/Path pairs of the blobs we want to get. - RevisionPaths []*GetBlobsRequest_RevisionPath `protobuf:"bytes,2,rep,name=revision_paths,json=revisionPaths" json:"revision_paths,omitempty"` - // Maximum number of bytes we want to receive. Use '-1' to get the full blobs no matter how big. - Limit int64 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"` -} - -func (m *GetBlobsRequest) Reset() { *m = GetBlobsRequest{} } -func (m *GetBlobsRequest) String() string { return proto.CompactTextString(m) } -func (*GetBlobsRequest) ProtoMessage() {} -func (*GetBlobsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } - -func (m *GetBlobsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *GetBlobsRequest) GetRevisionPaths() []*GetBlobsRequest_RevisionPath { - if m != nil { - return m.RevisionPaths - } - return nil -} - -func (m *GetBlobsRequest) GetLimit() int64 { - if m != nil { - return m.Limit - } - return 0 -} - -type GetBlobsRequest_RevisionPath struct { - Revision string `protobuf:"bytes,1,opt,name=revision" json:"revision,omitempty"` - Path []byte `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` -} - -func (m *GetBlobsRequest_RevisionPath) Reset() { *m = GetBlobsRequest_RevisionPath{} } -func (m *GetBlobsRequest_RevisionPath) String() string { return proto.CompactTextString(m) } -func (*GetBlobsRequest_RevisionPath) ProtoMessage() {} -func (*GetBlobsRequest_RevisionPath) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} } - -func (m *GetBlobsRequest_RevisionPath) GetRevision() string { - if m != nil { - return m.Revision - } - return "" -} - -func (m *GetBlobsRequest_RevisionPath) GetPath() []byte { - if m != nil { - return m.Path - } - return nil -} - -type GetBlobsResponse struct { - // Blob size; present only on the first message per blob - Size int64 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"` - // Chunk of blob data, could span over multiple messages. - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - // Object ID of the current blob. Only present on the first message per blob. Empty if no blob was found. - Oid string `protobuf:"bytes,3,opt,name=oid" json:"oid,omitempty"` - IsSubmodule bool `protobuf:"varint,4,opt,name=is_submodule,json=isSubmodule" json:"is_submodule,omitempty"` - Mode int32 `protobuf:"varint,5,opt,name=mode" json:"mode,omitempty"` - Revision string `protobuf:"bytes,6,opt,name=revision" json:"revision,omitempty"` - Path []byte `protobuf:"bytes,7,opt,name=path,proto3" json:"path,omitempty"` -} - -func (m *GetBlobsResponse) Reset() { *m = GetBlobsResponse{} } -func (m *GetBlobsResponse) String() string { return proto.CompactTextString(m) } -func (*GetBlobsResponse) ProtoMessage() {} -func (*GetBlobsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } - -func (m *GetBlobsResponse) GetSize() int64 { - if m != nil { - return m.Size - } - return 0 -} - -func (m *GetBlobsResponse) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} - -func (m *GetBlobsResponse) GetOid() string { - if m != nil { - return m.Oid - } - return "" -} - -func (m *GetBlobsResponse) GetIsSubmodule() bool { - if m != nil { - return m.IsSubmodule - } - return false -} - -func (m *GetBlobsResponse) GetMode() int32 { - if m != nil { - return m.Mode - } - return 0 -} - -func (m *GetBlobsResponse) GetRevision() string { - if m != nil { - return m.Revision - } - return "" -} - -func (m *GetBlobsResponse) GetPath() []byte { - if m != nil { - return m.Path - } - return nil -} - -type LFSPointer struct { - Size int64 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - Oid string `protobuf:"bytes,3,opt,name=oid" json:"oid,omitempty"` -} - -func (m *LFSPointer) Reset() { *m = LFSPointer{} } -func (m *LFSPointer) String() string { return proto.CompactTextString(m) } -func (*LFSPointer) ProtoMessage() {} -func (*LFSPointer) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } - -func (m *LFSPointer) GetSize() int64 { - if m != nil { - return m.Size - } - return 0 -} - -func (m *LFSPointer) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} - -func (m *LFSPointer) GetOid() string { - if m != nil { - return m.Oid - } - return "" -} - -type NewBlobObject struct { - Size int64 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"` - Oid string `protobuf:"bytes,2,opt,name=oid" json:"oid,omitempty"` - Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` -} - -func (m *NewBlobObject) Reset() { *m = NewBlobObject{} } -func (m *NewBlobObject) String() string { return proto.CompactTextString(m) } -func (*NewBlobObject) ProtoMessage() {} -func (*NewBlobObject) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } - -func (m *NewBlobObject) GetSize() int64 { - if m != nil { - return m.Size - } - return 0 -} - -func (m *NewBlobObject) GetOid() string { - if m != nil { - return m.Oid - } - return "" -} - -func (m *NewBlobObject) GetPath() []byte { - if m != nil { - return m.Path - } - return nil -} - -type GetLFSPointersRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - BlobIds []string `protobuf:"bytes,2,rep,name=blob_ids,json=blobIds" json:"blob_ids,omitempty"` -} - -func (m *GetLFSPointersRequest) Reset() { *m = GetLFSPointersRequest{} } -func (m *GetLFSPointersRequest) String() string { return proto.CompactTextString(m) } -func (*GetLFSPointersRequest) ProtoMessage() {} -func (*GetLFSPointersRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } - -func (m *GetLFSPointersRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *GetLFSPointersRequest) GetBlobIds() []string { - if m != nil { - return m.BlobIds - } - return nil -} - -type GetLFSPointersResponse struct { - LfsPointers []*LFSPointer `protobuf:"bytes,1,rep,name=lfs_pointers,json=lfsPointers" json:"lfs_pointers,omitempty"` -} - -func (m *GetLFSPointersResponse) Reset() { *m = GetLFSPointersResponse{} } -func (m *GetLFSPointersResponse) String() string { return proto.CompactTextString(m) } -func (*GetLFSPointersResponse) ProtoMessage() {} -func (*GetLFSPointersResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } - -func (m *GetLFSPointersResponse) GetLfsPointers() []*LFSPointer { - if m != nil { - return m.LfsPointers - } - return nil -} - -type GetNewLFSPointersRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - Limit int32 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"` - // Note: When `not_in_all` is true, `not_in_refs` is ignored - NotInAll bool `protobuf:"varint,4,opt,name=not_in_all,json=notInAll" json:"not_in_all,omitempty"` - NotInRefs [][]byte `protobuf:"bytes,5,rep,name=not_in_refs,json=notInRefs,proto3" json:"not_in_refs,omitempty"` -} - -func (m *GetNewLFSPointersRequest) Reset() { *m = GetNewLFSPointersRequest{} } -func (m *GetNewLFSPointersRequest) String() string { return proto.CompactTextString(m) } -func (*GetNewLFSPointersRequest) ProtoMessage() {} -func (*GetNewLFSPointersRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } - -func (m *GetNewLFSPointersRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *GetNewLFSPointersRequest) GetRevision() []byte { - if m != nil { - return m.Revision - } - return nil -} - -func (m *GetNewLFSPointersRequest) GetLimit() int32 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *GetNewLFSPointersRequest) GetNotInAll() bool { - if m != nil { - return m.NotInAll - } - return false -} - -func (m *GetNewLFSPointersRequest) GetNotInRefs() [][]byte { - if m != nil { - return m.NotInRefs - } - return nil -} - -type GetNewLFSPointersResponse struct { - LfsPointers []*LFSPointer `protobuf:"bytes,1,rep,name=lfs_pointers,json=lfsPointers" json:"lfs_pointers,omitempty"` -} - -func (m *GetNewLFSPointersResponse) Reset() { *m = GetNewLFSPointersResponse{} } -func (m *GetNewLFSPointersResponse) String() string { return proto.CompactTextString(m) } -func (*GetNewLFSPointersResponse) ProtoMessage() {} -func (*GetNewLFSPointersResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } - -func (m *GetNewLFSPointersResponse) GetLfsPointers() []*LFSPointer { - if m != nil { - return m.LfsPointers - } - return nil -} - -type GetAllLFSPointersRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` -} - -func (m *GetAllLFSPointersRequest) Reset() { *m = GetAllLFSPointersRequest{} } -func (m *GetAllLFSPointersRequest) String() string { return proto.CompactTextString(m) } -func (*GetAllLFSPointersRequest) ProtoMessage() {} -func (*GetAllLFSPointersRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } - -func (m *GetAllLFSPointersRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *GetAllLFSPointersRequest) GetRevision() []byte { - if m != nil { - return m.Revision - } - return nil -} - -type GetAllLFSPointersResponse struct { - LfsPointers []*LFSPointer `protobuf:"bytes,1,rep,name=lfs_pointers,json=lfsPointers" json:"lfs_pointers,omitempty"` -} - -func (m *GetAllLFSPointersResponse) Reset() { *m = GetAllLFSPointersResponse{} } -func (m *GetAllLFSPointersResponse) String() string { return proto.CompactTextString(m) } -func (*GetAllLFSPointersResponse) ProtoMessage() {} -func (*GetAllLFSPointersResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } - -func (m *GetAllLFSPointersResponse) GetLfsPointers() []*LFSPointer { - if m != nil { - return m.LfsPointers - } - return nil -} - -func init() { - proto.RegisterType((*GetBlobRequest)(nil), "gitaly.GetBlobRequest") - proto.RegisterType((*GetBlobResponse)(nil), "gitaly.GetBlobResponse") - proto.RegisterType((*GetBlobsRequest)(nil), "gitaly.GetBlobsRequest") - proto.RegisterType((*GetBlobsRequest_RevisionPath)(nil), "gitaly.GetBlobsRequest.RevisionPath") - proto.RegisterType((*GetBlobsResponse)(nil), "gitaly.GetBlobsResponse") - proto.RegisterType((*LFSPointer)(nil), "gitaly.LFSPointer") - proto.RegisterType((*NewBlobObject)(nil), "gitaly.NewBlobObject") - proto.RegisterType((*GetLFSPointersRequest)(nil), "gitaly.GetLFSPointersRequest") - proto.RegisterType((*GetLFSPointersResponse)(nil), "gitaly.GetLFSPointersResponse") - proto.RegisterType((*GetNewLFSPointersRequest)(nil), "gitaly.GetNewLFSPointersRequest") - proto.RegisterType((*GetNewLFSPointersResponse)(nil), "gitaly.GetNewLFSPointersResponse") - proto.RegisterType((*GetAllLFSPointersRequest)(nil), "gitaly.GetAllLFSPointersRequest") - proto.RegisterType((*GetAllLFSPointersResponse)(nil), "gitaly.GetAllLFSPointersResponse") -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for BlobService service - -type BlobServiceClient interface { - // GetBlob returns the contents of a blob object referenced by its object - // ID. We use a stream to return a chunked arbitrarily large binary - // response - GetBlob(ctx context.Context, in *GetBlobRequest, opts ...grpc.CallOption) (BlobService_GetBlobClient, error) - GetBlobs(ctx context.Context, in *GetBlobsRequest, opts ...grpc.CallOption) (BlobService_GetBlobsClient, error) - GetLFSPointers(ctx context.Context, in *GetLFSPointersRequest, opts ...grpc.CallOption) (BlobService_GetLFSPointersClient, error) - GetNewLFSPointers(ctx context.Context, in *GetNewLFSPointersRequest, opts ...grpc.CallOption) (BlobService_GetNewLFSPointersClient, error) - GetAllLFSPointers(ctx context.Context, in *GetAllLFSPointersRequest, opts ...grpc.CallOption) (BlobService_GetAllLFSPointersClient, error) -} - -type blobServiceClient struct { - cc *grpc.ClientConn -} - -func NewBlobServiceClient(cc *grpc.ClientConn) BlobServiceClient { - return &blobServiceClient{cc} -} - -func (c *blobServiceClient) GetBlob(ctx context.Context, in *GetBlobRequest, opts ...grpc.CallOption) (BlobService_GetBlobClient, error) { - stream, err := grpc.NewClientStream(ctx, &_BlobService_serviceDesc.Streams[0], c.cc, "/gitaly.BlobService/GetBlob", opts...) - if err != nil { - return nil, err - } - x := &blobServiceGetBlobClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type BlobService_GetBlobClient interface { - Recv() (*GetBlobResponse, error) - grpc.ClientStream -} - -type blobServiceGetBlobClient struct { - grpc.ClientStream -} - -func (x *blobServiceGetBlobClient) Recv() (*GetBlobResponse, error) { - m := new(GetBlobResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *blobServiceClient) GetBlobs(ctx context.Context, in *GetBlobsRequest, opts ...grpc.CallOption) (BlobService_GetBlobsClient, error) { - stream, err := grpc.NewClientStream(ctx, &_BlobService_serviceDesc.Streams[1], c.cc, "/gitaly.BlobService/GetBlobs", opts...) - if err != nil { - return nil, err - } - x := &blobServiceGetBlobsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type BlobService_GetBlobsClient interface { - Recv() (*GetBlobsResponse, error) - grpc.ClientStream -} - -type blobServiceGetBlobsClient struct { - grpc.ClientStream -} - -func (x *blobServiceGetBlobsClient) Recv() (*GetBlobsResponse, error) { - m := new(GetBlobsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *blobServiceClient) GetLFSPointers(ctx context.Context, in *GetLFSPointersRequest, opts ...grpc.CallOption) (BlobService_GetLFSPointersClient, error) { - stream, err := grpc.NewClientStream(ctx, &_BlobService_serviceDesc.Streams[2], c.cc, "/gitaly.BlobService/GetLFSPointers", opts...) - if err != nil { - return nil, err - } - x := &blobServiceGetLFSPointersClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type BlobService_GetLFSPointersClient interface { - Recv() (*GetLFSPointersResponse, error) - grpc.ClientStream -} - -type blobServiceGetLFSPointersClient struct { - grpc.ClientStream -} - -func (x *blobServiceGetLFSPointersClient) Recv() (*GetLFSPointersResponse, error) { - m := new(GetLFSPointersResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *blobServiceClient) GetNewLFSPointers(ctx context.Context, in *GetNewLFSPointersRequest, opts ...grpc.CallOption) (BlobService_GetNewLFSPointersClient, error) { - stream, err := grpc.NewClientStream(ctx, &_BlobService_serviceDesc.Streams[3], c.cc, "/gitaly.BlobService/GetNewLFSPointers", opts...) - if err != nil { - return nil, err - } - x := &blobServiceGetNewLFSPointersClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type BlobService_GetNewLFSPointersClient interface { - Recv() (*GetNewLFSPointersResponse, error) - grpc.ClientStream -} - -type blobServiceGetNewLFSPointersClient struct { - grpc.ClientStream -} - -func (x *blobServiceGetNewLFSPointersClient) Recv() (*GetNewLFSPointersResponse, error) { - m := new(GetNewLFSPointersResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *blobServiceClient) GetAllLFSPointers(ctx context.Context, in *GetAllLFSPointersRequest, opts ...grpc.CallOption) (BlobService_GetAllLFSPointersClient, error) { - stream, err := grpc.NewClientStream(ctx, &_BlobService_serviceDesc.Streams[4], c.cc, "/gitaly.BlobService/GetAllLFSPointers", opts...) - if err != nil { - return nil, err - } - x := &blobServiceGetAllLFSPointersClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type BlobService_GetAllLFSPointersClient interface { - Recv() (*GetAllLFSPointersResponse, error) - grpc.ClientStream -} - -type blobServiceGetAllLFSPointersClient struct { - grpc.ClientStream -} - -func (x *blobServiceGetAllLFSPointersClient) Recv() (*GetAllLFSPointersResponse, error) { - m := new(GetAllLFSPointersResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Server API for BlobService service - -type BlobServiceServer interface { - // GetBlob returns the contents of a blob object referenced by its object - // ID. We use a stream to return a chunked arbitrarily large binary - // response - GetBlob(*GetBlobRequest, BlobService_GetBlobServer) error - GetBlobs(*GetBlobsRequest, BlobService_GetBlobsServer) error - GetLFSPointers(*GetLFSPointersRequest, BlobService_GetLFSPointersServer) error - GetNewLFSPointers(*GetNewLFSPointersRequest, BlobService_GetNewLFSPointersServer) error - GetAllLFSPointers(*GetAllLFSPointersRequest, BlobService_GetAllLFSPointersServer) error -} - -func RegisterBlobServiceServer(s *grpc.Server, srv BlobServiceServer) { - s.RegisterService(&_BlobService_serviceDesc, srv) -} - -func _BlobService_GetBlob_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetBlobRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(BlobServiceServer).GetBlob(m, &blobServiceGetBlobServer{stream}) -} - -type BlobService_GetBlobServer interface { - Send(*GetBlobResponse) error - grpc.ServerStream -} - -type blobServiceGetBlobServer struct { - grpc.ServerStream -} - -func (x *blobServiceGetBlobServer) Send(m *GetBlobResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _BlobService_GetBlobs_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetBlobsRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(BlobServiceServer).GetBlobs(m, &blobServiceGetBlobsServer{stream}) -} - -type BlobService_GetBlobsServer interface { - Send(*GetBlobsResponse) error - grpc.ServerStream -} - -type blobServiceGetBlobsServer struct { - grpc.ServerStream -} - -func (x *blobServiceGetBlobsServer) Send(m *GetBlobsResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _BlobService_GetLFSPointers_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetLFSPointersRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(BlobServiceServer).GetLFSPointers(m, &blobServiceGetLFSPointersServer{stream}) -} - -type BlobService_GetLFSPointersServer interface { - Send(*GetLFSPointersResponse) error - grpc.ServerStream -} - -type blobServiceGetLFSPointersServer struct { - grpc.ServerStream -} - -func (x *blobServiceGetLFSPointersServer) Send(m *GetLFSPointersResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _BlobService_GetNewLFSPointers_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetNewLFSPointersRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(BlobServiceServer).GetNewLFSPointers(m, &blobServiceGetNewLFSPointersServer{stream}) -} - -type BlobService_GetNewLFSPointersServer interface { - Send(*GetNewLFSPointersResponse) error - grpc.ServerStream -} - -type blobServiceGetNewLFSPointersServer struct { - grpc.ServerStream -} - -func (x *blobServiceGetNewLFSPointersServer) Send(m *GetNewLFSPointersResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _BlobService_GetAllLFSPointers_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetAllLFSPointersRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(BlobServiceServer).GetAllLFSPointers(m, &blobServiceGetAllLFSPointersServer{stream}) -} - -type BlobService_GetAllLFSPointersServer interface { - Send(*GetAllLFSPointersResponse) error - grpc.ServerStream -} - -type blobServiceGetAllLFSPointersServer struct { - grpc.ServerStream -} - -func (x *blobServiceGetAllLFSPointersServer) Send(m *GetAllLFSPointersResponse) error { - return x.ServerStream.SendMsg(m) -} - -var _BlobService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.BlobService", - HandlerType: (*BlobServiceServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "GetBlob", - Handler: _BlobService_GetBlob_Handler, - ServerStreams: true, - }, - { - StreamName: "GetBlobs", - Handler: _BlobService_GetBlobs_Handler, - ServerStreams: true, - }, - { - StreamName: "GetLFSPointers", - Handler: _BlobService_GetLFSPointers_Handler, - ServerStreams: true, - }, - { - StreamName: "GetNewLFSPointers", - Handler: _BlobService_GetNewLFSPointers_Handler, - ServerStreams: true, - }, - { - StreamName: "GetAllLFSPointers", - Handler: _BlobService_GetAllLFSPointers_Handler, - ServerStreams: true, - }, - }, - Metadata: "blob.proto", -} - -func init() { proto.RegisterFile("blob.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 596 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00,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 0xf7, 0xc8, 0x51, 0x12, 0x1b, 0x65, 0x6d, 0x5f, 0xfc, - 0xe1, 0x46, 0x0d, 0x7d, 0x73, 0x33, 0x1b, 0xe8, 0x8d, 0x02, 0xd9, 0x40, 0x6f, 0x5e, 0x6b, 0x8a, - 0x1e, 0x1e, 0x64, 0xff, 0xc9, 0xf7, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x0d, 0x42, 0xa0, 0x80, - 0x4b, 0x07, 0x00, 0x00, -} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/commit.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/commit.pb.go deleted file mode 100644 index b9a2596..0000000 --- a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/commit.pb.go +++ /dev/null @@ -1,2489 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: commit.proto - -package gitaly - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import google_protobuf "github.com/golang/protobuf/ptypes/timestamp" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -type TreeEntryResponse_ObjectType int32 - -const ( - TreeEntryResponse_COMMIT TreeEntryResponse_ObjectType = 0 - TreeEntryResponse_BLOB TreeEntryResponse_ObjectType = 1 - TreeEntryResponse_TREE TreeEntryResponse_ObjectType = 2 - TreeEntryResponse_TAG TreeEntryResponse_ObjectType = 3 -) - -var TreeEntryResponse_ObjectType_name = map[int32]string{ - 0: "COMMIT", - 1: "BLOB", - 2: "TREE", - 3: "TAG", -} -var TreeEntryResponse_ObjectType_value = map[string]int32{ - "COMMIT": 0, - "BLOB": 1, - "TREE": 2, - "TAG": 3, -} - -func (x TreeEntryResponse_ObjectType) String() string { - return proto.EnumName(TreeEntryResponse_ObjectType_name, int32(x)) -} -func (TreeEntryResponse_ObjectType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor1, []int{5, 0} -} - -type TreeEntry_EntryType int32 - -const ( - TreeEntry_BLOB TreeEntry_EntryType = 0 - TreeEntry_TREE TreeEntry_EntryType = 1 - TreeEntry_COMMIT TreeEntry_EntryType = 3 -) - -var TreeEntry_EntryType_name = map[int32]string{ - 0: "BLOB", - 1: "TREE", - 3: "COMMIT", -} -var TreeEntry_EntryType_value = map[string]int32{ - "BLOB": 0, - "TREE": 1, - "COMMIT": 3, -} - -func (x TreeEntry_EntryType) String() string { - return proto.EnumName(TreeEntry_EntryType_name, int32(x)) -} -func (TreeEntry_EntryType) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{10, 0} } - -type FindAllCommitsRequest_Order int32 - -const ( - FindAllCommitsRequest_NONE FindAllCommitsRequest_Order = 0 - FindAllCommitsRequest_TOPO FindAllCommitsRequest_Order = 1 - FindAllCommitsRequest_DATE FindAllCommitsRequest_Order = 2 -) - -var FindAllCommitsRequest_Order_name = map[int32]string{ - 0: "NONE", - 1: "TOPO", - 2: "DATE", -} -var FindAllCommitsRequest_Order_value = map[string]int32{ - "NONE": 0, - "TOPO": 1, - "DATE": 2, -} - -func (x FindAllCommitsRequest_Order) String() string { - return proto.EnumName(FindAllCommitsRequest_Order_name, int32(x)) -} -func (FindAllCommitsRequest_Order) EnumDescriptor() ([]byte, []int) { - return fileDescriptor1, []int{19, 0} -} - -type CommitStatsRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` -} - -func (m *CommitStatsRequest) Reset() { *m = CommitStatsRequest{} } -func (m *CommitStatsRequest) String() string { return proto.CompactTextString(m) } -func (*CommitStatsRequest) ProtoMessage() {} -func (*CommitStatsRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} } - -func (m *CommitStatsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *CommitStatsRequest) GetRevision() []byte { - if m != nil { - return m.Revision - } - return nil -} - -type CommitStatsResponse struct { - // OID is the commit. Empty means not found - Oid string `protobuf:"bytes,1,opt,name=oid" json:"oid,omitempty"` - Additions int32 `protobuf:"varint,2,opt,name=additions" json:"additions,omitempty"` - Deletions int32 `protobuf:"varint,3,opt,name=deletions" json:"deletions,omitempty"` -} - -func (m *CommitStatsResponse) Reset() { *m = CommitStatsResponse{} } -func (m *CommitStatsResponse) String() string { return proto.CompactTextString(m) } -func (*CommitStatsResponse) ProtoMessage() {} -func (*CommitStatsResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} } - -func (m *CommitStatsResponse) GetOid() string { - if m != nil { - return m.Oid - } - return "" -} - -func (m *CommitStatsResponse) GetAdditions() int32 { - if m != nil { - return m.Additions - } - return 0 -} - -func (m *CommitStatsResponse) GetDeletions() int32 { - if m != nil { - return m.Deletions - } - return 0 -} - -type CommitIsAncestorRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - AncestorId string `protobuf:"bytes,2,opt,name=ancestor_id,json=ancestorId" json:"ancestor_id,omitempty"` - ChildId string `protobuf:"bytes,3,opt,name=child_id,json=childId" json:"child_id,omitempty"` -} - -func (m *CommitIsAncestorRequest) Reset() { *m = CommitIsAncestorRequest{} } -func (m *CommitIsAncestorRequest) String() string { return proto.CompactTextString(m) } -func (*CommitIsAncestorRequest) ProtoMessage() {} -func (*CommitIsAncestorRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} } - -func (m *CommitIsAncestorRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *CommitIsAncestorRequest) GetAncestorId() string { - if m != nil { - return m.AncestorId - } - return "" -} - -func (m *CommitIsAncestorRequest) GetChildId() string { - if m != nil { - return m.ChildId - } - return "" -} - -type CommitIsAncestorResponse struct { - Value bool `protobuf:"varint,1,opt,name=value" json:"value,omitempty"` -} - -func (m *CommitIsAncestorResponse) Reset() { *m = CommitIsAncestorResponse{} } -func (m *CommitIsAncestorResponse) String() string { return proto.CompactTextString(m) } -func (*CommitIsAncestorResponse) ProtoMessage() {} -func (*CommitIsAncestorResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} } - -func (m *CommitIsAncestorResponse) GetValue() bool { - if m != nil { - return m.Value - } - return false -} - -type TreeEntryRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - // commit ID or refname - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - // entry path relative to repository root - Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` - Limit int64 `protobuf:"varint,4,opt,name=limit" json:"limit,omitempty"` -} - -func (m *TreeEntryRequest) Reset() { *m = TreeEntryRequest{} } -func (m *TreeEntryRequest) String() string { return proto.CompactTextString(m) } -func (*TreeEntryRequest) ProtoMessage() {} -func (*TreeEntryRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} } - -func (m *TreeEntryRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *TreeEntryRequest) GetRevision() []byte { - if m != nil { - return m.Revision - } - return nil -} - -func (m *TreeEntryRequest) GetPath() []byte { - if m != nil { - return m.Path - } - return nil -} - -func (m *TreeEntryRequest) GetLimit() int64 { - if m != nil { - return m.Limit - } - return 0 -} - -type TreeEntryResponse struct { - Type TreeEntryResponse_ObjectType `protobuf:"varint,1,opt,name=type,enum=gitaly.TreeEntryResponse_ObjectType" json:"type,omitempty"` - // SHA1 object ID - Oid string `protobuf:"bytes,2,opt,name=oid" json:"oid,omitempty"` - Size int64 `protobuf:"varint,3,opt,name=size" json:"size,omitempty"` - // file mode - Mode int32 `protobuf:"varint,4,opt,name=mode" json:"mode,omitempty"` - // raw object contents - Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` -} - -func (m *TreeEntryResponse) Reset() { *m = TreeEntryResponse{} } -func (m *TreeEntryResponse) String() string { return proto.CompactTextString(m) } -func (*TreeEntryResponse) ProtoMessage() {} -func (*TreeEntryResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} } - -func (m *TreeEntryResponse) GetType() TreeEntryResponse_ObjectType { - if m != nil { - return m.Type - } - return TreeEntryResponse_COMMIT -} - -func (m *TreeEntryResponse) GetOid() string { - if m != nil { - return m.Oid - } - return "" -} - -func (m *TreeEntryResponse) GetSize() int64 { - if m != nil { - return m.Size - } - return 0 -} - -func (m *TreeEntryResponse) GetMode() int32 { - if m != nil { - return m.Mode - } - return 0 -} - -func (m *TreeEntryResponse) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} - -type CommitsBetweenRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - From []byte `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` - To []byte `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` -} - -func (m *CommitsBetweenRequest) Reset() { *m = CommitsBetweenRequest{} } -func (m *CommitsBetweenRequest) String() string { return proto.CompactTextString(m) } -func (*CommitsBetweenRequest) ProtoMessage() {} -func (*CommitsBetweenRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} } - -func (m *CommitsBetweenRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *CommitsBetweenRequest) GetFrom() []byte { - if m != nil { - return m.From - } - return nil -} - -func (m *CommitsBetweenRequest) GetTo() []byte { - if m != nil { - return m.To - } - return nil -} - -type CommitsBetweenResponse struct { - Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits" json:"commits,omitempty"` -} - -func (m *CommitsBetweenResponse) Reset() { *m = CommitsBetweenResponse{} } -func (m *CommitsBetweenResponse) String() string { return proto.CompactTextString(m) } -func (*CommitsBetweenResponse) ProtoMessage() {} -func (*CommitsBetweenResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{7} } - -func (m *CommitsBetweenResponse) GetCommits() []*GitCommit { - if m != nil { - return m.Commits - } - return nil -} - -type CountCommitsRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - After *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=after" json:"after,omitempty"` - Before *google_protobuf.Timestamp `protobuf:"bytes,4,opt,name=before" json:"before,omitempty"` - Path []byte `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` - MaxCount int32 `protobuf:"varint,6,opt,name=max_count,json=maxCount" json:"max_count,omitempty"` - // all and revision are mutually exclusive - All bool `protobuf:"varint,7,opt,name=all" json:"all,omitempty"` -} - -func (m *CountCommitsRequest) Reset() { *m = CountCommitsRequest{} } -func (m *CountCommitsRequest) String() string { return proto.CompactTextString(m) } -func (*CountCommitsRequest) ProtoMessage() {} -func (*CountCommitsRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{8} } - -func (m *CountCommitsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *CountCommitsRequest) GetRevision() []byte { - if m != nil { - return m.Revision - } - return nil -} - -func (m *CountCommitsRequest) GetAfter() *google_protobuf.Timestamp { - if m != nil { - return m.After - } - return nil -} - -func (m *CountCommitsRequest) GetBefore() *google_protobuf.Timestamp { - if m != nil { - return m.Before - } - return nil -} - -func (m *CountCommitsRequest) GetPath() []byte { - if m != nil { - return m.Path - } - return nil -} - -func (m *CountCommitsRequest) GetMaxCount() int32 { - if m != nil { - return m.MaxCount - } - return 0 -} - -func (m *CountCommitsRequest) GetAll() bool { - if m != nil { - return m.All - } - return false -} - -type CountCommitsResponse struct { - Count int32 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"` -} - -func (m *CountCommitsResponse) Reset() { *m = CountCommitsResponse{} } -func (m *CountCommitsResponse) String() string { return proto.CompactTextString(m) } -func (*CountCommitsResponse) ProtoMessage() {} -func (*CountCommitsResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{9} } - -func (m *CountCommitsResponse) GetCount() int32 { - if m != nil { - return m.Count - } - return 0 -} - -type TreeEntry struct { - // OID of the object this tree entry points to - Oid string `protobuf:"bytes,1,opt,name=oid" json:"oid,omitempty"` - // OID of the tree attached to commit_oid - RootOid string `protobuf:"bytes,2,opt,name=root_oid,json=rootOid" json:"root_oid,omitempty"` - // Path relative to repository root - Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` - Type TreeEntry_EntryType `protobuf:"varint,4,opt,name=type,enum=gitaly.TreeEntry_EntryType" json:"type,omitempty"` - // File mode e.g. 0644 - Mode int32 `protobuf:"varint,5,opt,name=mode" json:"mode,omitempty"` - // The commit object via which this entry was retrieved - CommitOid string `protobuf:"bytes,6,opt,name=commit_oid,json=commitOid" json:"commit_oid,omitempty"` - // Relative path of the first subdir that doesn't have only one directory descendant - FlatPath []byte `protobuf:"bytes,7,opt,name=flat_path,json=flatPath,proto3" json:"flat_path,omitempty"` -} - -func (m *TreeEntry) Reset() { *m = TreeEntry{} } -func (m *TreeEntry) String() string { return proto.CompactTextString(m) } -func (*TreeEntry) ProtoMessage() {} -func (*TreeEntry) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{10} } - -func (m *TreeEntry) GetOid() string { - if m != nil { - return m.Oid - } - return "" -} - -func (m *TreeEntry) GetRootOid() string { - if m != nil { - return m.RootOid - } - return "" -} - -func (m *TreeEntry) GetPath() []byte { - if m != nil { - return m.Path - } - return nil -} - -func (m *TreeEntry) GetType() TreeEntry_EntryType { - if m != nil { - return m.Type - } - return TreeEntry_BLOB -} - -func (m *TreeEntry) GetMode() int32 { - if m != nil { - return m.Mode - } - return 0 -} - -func (m *TreeEntry) GetCommitOid() string { - if m != nil { - return m.CommitOid - } - return "" -} - -func (m *TreeEntry) GetFlatPath() []byte { - if m != nil { - return m.FlatPath - } - return nil -} - -type GetTreeEntriesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` - Recursive bool `protobuf:"varint,4,opt,name=recursive" json:"recursive,omitempty"` -} - -func (m *GetTreeEntriesRequest) Reset() { *m = GetTreeEntriesRequest{} } -func (m *GetTreeEntriesRequest) String() string { return proto.CompactTextString(m) } -func (*GetTreeEntriesRequest) ProtoMessage() {} -func (*GetTreeEntriesRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{11} } - -func (m *GetTreeEntriesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *GetTreeEntriesRequest) GetRevision() []byte { - if m != nil { - return m.Revision - } - return nil -} - -func (m *GetTreeEntriesRequest) GetPath() []byte { - if m != nil { - return m.Path - } - return nil -} - -func (m *GetTreeEntriesRequest) GetRecursive() bool { - if m != nil { - return m.Recursive - } - return false -} - -type GetTreeEntriesResponse struct { - Entries []*TreeEntry `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"` -} - -func (m *GetTreeEntriesResponse) Reset() { *m = GetTreeEntriesResponse{} } -func (m *GetTreeEntriesResponse) String() string { return proto.CompactTextString(m) } -func (*GetTreeEntriesResponse) ProtoMessage() {} -func (*GetTreeEntriesResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{12} } - -func (m *GetTreeEntriesResponse) GetEntries() []*TreeEntry { - if m != nil { - return m.Entries - } - return nil -} - -type ListFilesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` -} - -func (m *ListFilesRequest) Reset() { *m = ListFilesRequest{} } -func (m *ListFilesRequest) String() string { return proto.CompactTextString(m) } -func (*ListFilesRequest) ProtoMessage() {} -func (*ListFilesRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{13} } - -func (m *ListFilesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *ListFilesRequest) GetRevision() []byte { - if m != nil { - return m.Revision - } - return nil -} - -// A single 'page' of the paginated response -type ListFilesResponse struct { - // Remember to force encoding utf-8 on the client side - Paths [][]byte `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"` -} - -func (m *ListFilesResponse) Reset() { *m = ListFilesResponse{} } -func (m *ListFilesResponse) String() string { return proto.CompactTextString(m) } -func (*ListFilesResponse) ProtoMessage() {} -func (*ListFilesResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{14} } - -func (m *ListFilesResponse) GetPaths() [][]byte { - if m != nil { - return m.Paths - } - return nil -} - -type FindCommitRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` -} - -func (m *FindCommitRequest) Reset() { *m = FindCommitRequest{} } -func (m *FindCommitRequest) String() string { return proto.CompactTextString(m) } -func (*FindCommitRequest) ProtoMessage() {} -func (*FindCommitRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{15} } - -func (m *FindCommitRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *FindCommitRequest) GetRevision() []byte { - if m != nil { - return m.Revision - } - return nil -} - -type FindCommitResponse struct { - // commit is nil when the commit was not found - Commit *GitCommit `protobuf:"bytes,1,opt,name=commit" json:"commit,omitempty"` -} - -func (m *FindCommitResponse) Reset() { *m = FindCommitResponse{} } -func (m *FindCommitResponse) String() string { return proto.CompactTextString(m) } -func (*FindCommitResponse) ProtoMessage() {} -func (*FindCommitResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{16} } - -func (m *FindCommitResponse) GetCommit() *GitCommit { - if m != nil { - return m.Commit - } - return nil -} - -type ListCommitsByOidRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Oid []string `protobuf:"bytes,2,rep,name=oid" json:"oid,omitempty"` -} - -func (m *ListCommitsByOidRequest) Reset() { *m = ListCommitsByOidRequest{} } -func (m *ListCommitsByOidRequest) String() string { return proto.CompactTextString(m) } -func (*ListCommitsByOidRequest) ProtoMessage() {} -func (*ListCommitsByOidRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{17} } - -func (m *ListCommitsByOidRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *ListCommitsByOidRequest) GetOid() []string { - if m != nil { - return m.Oid - } - return nil -} - -type ListCommitsByOidResponse struct { - Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits" json:"commits,omitempty"` -} - -func (m *ListCommitsByOidResponse) Reset() { *m = ListCommitsByOidResponse{} } -func (m *ListCommitsByOidResponse) String() string { return proto.CompactTextString(m) } -func (*ListCommitsByOidResponse) ProtoMessage() {} -func (*ListCommitsByOidResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{18} } - -func (m *ListCommitsByOidResponse) GetCommits() []*GitCommit { - if m != nil { - return m.Commits - } - return nil -} - -type FindAllCommitsRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - // When nil, return all commits reachable by any branch in the repo - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - MaxCount int32 `protobuf:"varint,3,opt,name=max_count,json=maxCount" json:"max_count,omitempty"` - Skip int32 `protobuf:"varint,4,opt,name=skip" json:"skip,omitempty"` - Order FindAllCommitsRequest_Order `protobuf:"varint,5,opt,name=order,enum=gitaly.FindAllCommitsRequest_Order" json:"order,omitempty"` -} - -func (m *FindAllCommitsRequest) Reset() { *m = FindAllCommitsRequest{} } -func (m *FindAllCommitsRequest) String() string { return proto.CompactTextString(m) } -func (*FindAllCommitsRequest) ProtoMessage() {} -func (*FindAllCommitsRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{19} } - -func (m *FindAllCommitsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *FindAllCommitsRequest) GetRevision() []byte { - if m != nil { - return m.Revision - } - return nil -} - -func (m *FindAllCommitsRequest) GetMaxCount() int32 { - if m != nil { - return m.MaxCount - } - return 0 -} - -func (m *FindAllCommitsRequest) GetSkip() int32 { - if m != nil { - return m.Skip - } - return 0 -} - -func (m *FindAllCommitsRequest) GetOrder() FindAllCommitsRequest_Order { - if m != nil { - return m.Order - } - return FindAllCommitsRequest_NONE -} - -// A single 'page' of the result set -type FindAllCommitsResponse struct { - Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits" json:"commits,omitempty"` -} - -func (m *FindAllCommitsResponse) Reset() { *m = FindAllCommitsResponse{} } -func (m *FindAllCommitsResponse) String() string { return proto.CompactTextString(m) } -func (*FindAllCommitsResponse) ProtoMessage() {} -func (*FindAllCommitsResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{20} } - -func (m *FindAllCommitsResponse) GetCommits() []*GitCommit { - if m != nil { - return m.Commits - } - return nil -} - -type FindCommitsRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - Limit int32 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"` - Offset int32 `protobuf:"varint,4,opt,name=offset" json:"offset,omitempty"` - Paths [][]byte `protobuf:"bytes,5,rep,name=paths,proto3" json:"paths,omitempty"` - Follow bool `protobuf:"varint,6,opt,name=follow" json:"follow,omitempty"` - SkipMerges bool `protobuf:"varint,7,opt,name=skip_merges,json=skipMerges" json:"skip_merges,omitempty"` - DisableWalk bool `protobuf:"varint,8,opt,name=disable_walk,json=disableWalk" json:"disable_walk,omitempty"` - After *google_protobuf.Timestamp `protobuf:"bytes,9,opt,name=after" json:"after,omitempty"` - Before *google_protobuf.Timestamp `protobuf:"bytes,10,opt,name=before" json:"before,omitempty"` - // all and revision are mutually exclusive - All bool `protobuf:"varint,11,opt,name=all" json:"all,omitempty"` -} - -func (m *FindCommitsRequest) Reset() { *m = FindCommitsRequest{} } -func (m *FindCommitsRequest) String() string { return proto.CompactTextString(m) } -func (*FindCommitsRequest) ProtoMessage() {} -func (*FindCommitsRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{21} } - -func (m *FindCommitsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *FindCommitsRequest) GetRevision() []byte { - if m != nil { - return m.Revision - } - return nil -} - -func (m *FindCommitsRequest) GetLimit() int32 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *FindCommitsRequest) GetOffset() int32 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *FindCommitsRequest) GetPaths() [][]byte { - if m != nil { - return m.Paths - } - return nil -} - -func (m *FindCommitsRequest) GetFollow() bool { - if m != nil { - return m.Follow - } - return false -} - -func (m *FindCommitsRequest) GetSkipMerges() bool { - if m != nil { - return m.SkipMerges - } - return false -} - -func (m *FindCommitsRequest) GetDisableWalk() bool { - if m != nil { - return m.DisableWalk - } - return false -} - -func (m *FindCommitsRequest) GetAfter() *google_protobuf.Timestamp { - if m != nil { - return m.After - } - return nil -} - -func (m *FindCommitsRequest) GetBefore() *google_protobuf.Timestamp { - if m != nil { - return m.Before - } - return nil -} - -func (m *FindCommitsRequest) GetAll() bool { - if m != nil { - return m.All - } - return false -} - -// A single 'page' of the result set -type FindCommitsResponse struct { - Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits" json:"commits,omitempty"` -} - -func (m *FindCommitsResponse) Reset() { *m = FindCommitsResponse{} } -func (m *FindCommitsResponse) String() string { return proto.CompactTextString(m) } -func (*FindCommitsResponse) ProtoMessage() {} -func (*FindCommitsResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{22} } - -func (m *FindCommitsResponse) GetCommits() []*GitCommit { - if m != nil { - return m.Commits - } - return nil -} - -type CommitLanguagesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` -} - -func (m *CommitLanguagesRequest) Reset() { *m = CommitLanguagesRequest{} } -func (m *CommitLanguagesRequest) String() string { return proto.CompactTextString(m) } -func (*CommitLanguagesRequest) ProtoMessage() {} -func (*CommitLanguagesRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{23} } - -func (m *CommitLanguagesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *CommitLanguagesRequest) GetRevision() []byte { - if m != nil { - return m.Revision - } - return nil -} - -type CommitLanguagesResponse struct { - Languages []*CommitLanguagesResponse_Language `protobuf:"bytes,1,rep,name=languages" json:"languages,omitempty"` -} - -func (m *CommitLanguagesResponse) Reset() { *m = CommitLanguagesResponse{} } -func (m *CommitLanguagesResponse) String() string { return proto.CompactTextString(m) } -func (*CommitLanguagesResponse) ProtoMessage() {} -func (*CommitLanguagesResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{24} } - -func (m *CommitLanguagesResponse) GetLanguages() []*CommitLanguagesResponse_Language { - if m != nil { - return m.Languages - } - return nil -} - -type CommitLanguagesResponse_Language struct { - Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - Share float32 `protobuf:"fixed32,2,opt,name=share" json:"share,omitempty"` - Color string `protobuf:"bytes,3,opt,name=color" json:"color,omitempty"` -} - -func (m *CommitLanguagesResponse_Language) Reset() { *m = CommitLanguagesResponse_Language{} } -func (m *CommitLanguagesResponse_Language) String() string { return proto.CompactTextString(m) } -func (*CommitLanguagesResponse_Language) ProtoMessage() {} -func (*CommitLanguagesResponse_Language) Descriptor() ([]byte, []int) { - return fileDescriptor1, []int{24, 0} -} - -func (m *CommitLanguagesResponse_Language) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *CommitLanguagesResponse_Language) GetShare() float32 { - if m != nil { - return m.Share - } - return 0 -} - -func (m *CommitLanguagesResponse_Language) GetColor() string { - if m != nil { - return m.Color - } - return "" -} - -type RawBlameRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` -} - -func (m *RawBlameRequest) Reset() { *m = RawBlameRequest{} } -func (m *RawBlameRequest) String() string { return proto.CompactTextString(m) } -func (*RawBlameRequest) ProtoMessage() {} -func (*RawBlameRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{25} } - -func (m *RawBlameRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *RawBlameRequest) GetRevision() []byte { - if m != nil { - return m.Revision - } - return nil -} - -func (m *RawBlameRequest) GetPath() []byte { - if m != nil { - return m.Path - } - return nil -} - -type RawBlameResponse struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (m *RawBlameResponse) Reset() { *m = RawBlameResponse{} } -func (m *RawBlameResponse) String() string { return proto.CompactTextString(m) } -func (*RawBlameResponse) ProtoMessage() {} -func (*RawBlameResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{26} } - -func (m *RawBlameResponse) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} - -type LastCommitForPathRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` -} - -func (m *LastCommitForPathRequest) Reset() { *m = LastCommitForPathRequest{} } -func (m *LastCommitForPathRequest) String() string { return proto.CompactTextString(m) } -func (*LastCommitForPathRequest) ProtoMessage() {} -func (*LastCommitForPathRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{27} } - -func (m *LastCommitForPathRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *LastCommitForPathRequest) GetRevision() []byte { - if m != nil { - return m.Revision - } - return nil -} - -func (m *LastCommitForPathRequest) GetPath() []byte { - if m != nil { - return m.Path - } - return nil -} - -type LastCommitForPathResponse struct { - // commit is nil when the commit was not found - Commit *GitCommit `protobuf:"bytes,1,opt,name=commit" json:"commit,omitempty"` -} - -func (m *LastCommitForPathResponse) Reset() { *m = LastCommitForPathResponse{} } -func (m *LastCommitForPathResponse) String() string { return proto.CompactTextString(m) } -func (*LastCommitForPathResponse) ProtoMessage() {} -func (*LastCommitForPathResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{28} } - -func (m *LastCommitForPathResponse) GetCommit() *GitCommit { - if m != nil { - return m.Commit - } - return nil -} - -type CommitsByMessageRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` - Offset int32 `protobuf:"varint,3,opt,name=offset" json:"offset,omitempty"` - Limit int32 `protobuf:"varint,4,opt,name=limit" json:"limit,omitempty"` - Path []byte `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` - Query string `protobuf:"bytes,6,opt,name=query" json:"query,omitempty"` -} - -func (m *CommitsByMessageRequest) Reset() { *m = CommitsByMessageRequest{} } -func (m *CommitsByMessageRequest) String() string { return proto.CompactTextString(m) } -func (*CommitsByMessageRequest) ProtoMessage() {} -func (*CommitsByMessageRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{29} } - -func (m *CommitsByMessageRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *CommitsByMessageRequest) GetRevision() []byte { - if m != nil { - return m.Revision - } - return nil -} - -func (m *CommitsByMessageRequest) GetOffset() int32 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *CommitsByMessageRequest) GetLimit() int32 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *CommitsByMessageRequest) GetPath() []byte { - if m != nil { - return m.Path - } - return nil -} - -func (m *CommitsByMessageRequest) GetQuery() string { - if m != nil { - return m.Query - } - return "" -} - -// One 'page' of the paginated response of CommitsByMessage -type CommitsByMessageResponse struct { - Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits" json:"commits,omitempty"` -} - -func (m *CommitsByMessageResponse) Reset() { *m = CommitsByMessageResponse{} } -func (m *CommitsByMessageResponse) String() string { return proto.CompactTextString(m) } -func (*CommitsByMessageResponse) ProtoMessage() {} -func (*CommitsByMessageResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{30} } - -func (m *CommitsByMessageResponse) GetCommits() []*GitCommit { - if m != nil { - return m.Commits - } - return nil -} - -type FilterShasWithSignaturesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Shas [][]byte `protobuf:"bytes,2,rep,name=shas,proto3" json:"shas,omitempty"` -} - -func (m *FilterShasWithSignaturesRequest) Reset() { *m = FilterShasWithSignaturesRequest{} } -func (m *FilterShasWithSignaturesRequest) String() string { return proto.CompactTextString(m) } -func (*FilterShasWithSignaturesRequest) ProtoMessage() {} -func (*FilterShasWithSignaturesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor1, []int{31} -} - -func (m *FilterShasWithSignaturesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *FilterShasWithSignaturesRequest) GetShas() [][]byte { - if m != nil { - return m.Shas - } - return nil -} - -type FilterShasWithSignaturesResponse struct { - Shas [][]byte `protobuf:"bytes,1,rep,name=shas,proto3" json:"shas,omitempty"` -} - -func (m *FilterShasWithSignaturesResponse) Reset() { *m = FilterShasWithSignaturesResponse{} } -func (m *FilterShasWithSignaturesResponse) String() string { return proto.CompactTextString(m) } -func (*FilterShasWithSignaturesResponse) ProtoMessage() {} -func (*FilterShasWithSignaturesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor1, []int{32} -} - -func (m *FilterShasWithSignaturesResponse) GetShas() [][]byte { - if m != nil { - return m.Shas - } - return nil -} - -type ExtractCommitSignatureRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` -} - -func (m *ExtractCommitSignatureRequest) Reset() { *m = ExtractCommitSignatureRequest{} } -func (m *ExtractCommitSignatureRequest) String() string { return proto.CompactTextString(m) } -func (*ExtractCommitSignatureRequest) ProtoMessage() {} -func (*ExtractCommitSignatureRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{33} } - -func (m *ExtractCommitSignatureRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *ExtractCommitSignatureRequest) GetCommitId() string { - if m != nil { - return m.CommitId - } - return "" -} - -// Either of the 'signature' and 'signed_text' fields may be present. It -// is up to the caller to stitch them together. -type ExtractCommitSignatureResponse struct { - Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` - SignedText []byte `protobuf:"bytes,2,opt,name=signed_text,json=signedText,proto3" json:"signed_text,omitempty"` -} - -func (m *ExtractCommitSignatureResponse) Reset() { *m = ExtractCommitSignatureResponse{} } -func (m *ExtractCommitSignatureResponse) String() string { return proto.CompactTextString(m) } -func (*ExtractCommitSignatureResponse) ProtoMessage() {} -func (*ExtractCommitSignatureResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{34} } - -func (m *ExtractCommitSignatureResponse) GetSignature() []byte { - if m != nil { - return m.Signature - } - return nil -} - -func (m *ExtractCommitSignatureResponse) GetSignedText() []byte { - if m != nil { - return m.SignedText - } - return nil -} - -type GetCommitSignaturesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - CommitIds []string `protobuf:"bytes,2,rep,name=commit_ids,json=commitIds" json:"commit_ids,omitempty"` -} - -func (m *GetCommitSignaturesRequest) Reset() { *m = GetCommitSignaturesRequest{} } -func (m *GetCommitSignaturesRequest) String() string { return proto.CompactTextString(m) } -func (*GetCommitSignaturesRequest) ProtoMessage() {} -func (*GetCommitSignaturesRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{35} } - -func (m *GetCommitSignaturesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *GetCommitSignaturesRequest) GetCommitIds() []string { - if m != nil { - return m.CommitIds - } - return nil -} - -type GetCommitSignaturesResponse struct { - // Only present for a new commit signature data. - CommitId string `protobuf:"bytes,1,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` - // See ExtractCommitSignatureResponse above for how these fields should be handled. - Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` - SignedText []byte `protobuf:"bytes,3,opt,name=signed_text,json=signedText,proto3" json:"signed_text,omitempty"` -} - -func (m *GetCommitSignaturesResponse) Reset() { *m = GetCommitSignaturesResponse{} } -func (m *GetCommitSignaturesResponse) String() string { return proto.CompactTextString(m) } -func (*GetCommitSignaturesResponse) ProtoMessage() {} -func (*GetCommitSignaturesResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{36} } - -func (m *GetCommitSignaturesResponse) GetCommitId() string { - if m != nil { - return m.CommitId - } - return "" -} - -func (m *GetCommitSignaturesResponse) GetSignature() []byte { - if m != nil { - return m.Signature - } - return nil -} - -func (m *GetCommitSignaturesResponse) GetSignedText() []byte { - if m != nil { - return m.SignedText - } - return nil -} - -type GetCommitMessagesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - CommitIds []string `protobuf:"bytes,2,rep,name=commit_ids,json=commitIds" json:"commit_ids,omitempty"` -} - -func (m *GetCommitMessagesRequest) Reset() { *m = GetCommitMessagesRequest{} } -func (m *GetCommitMessagesRequest) String() string { return proto.CompactTextString(m) } -func (*GetCommitMessagesRequest) ProtoMessage() {} -func (*GetCommitMessagesRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{37} } - -func (m *GetCommitMessagesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *GetCommitMessagesRequest) GetCommitIds() []string { - if m != nil { - return m.CommitIds - } - return nil -} - -type GetCommitMessagesResponse struct { - // Only present for a new commit message - CommitId string `protobuf:"bytes,1,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` - Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` -} - -func (m *GetCommitMessagesResponse) Reset() { *m = GetCommitMessagesResponse{} } -func (m *GetCommitMessagesResponse) String() string { return proto.CompactTextString(m) } -func (*GetCommitMessagesResponse) ProtoMessage() {} -func (*GetCommitMessagesResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{38} } - -func (m *GetCommitMessagesResponse) GetCommitId() string { - if m != nil { - return m.CommitId - } - return "" -} - -func (m *GetCommitMessagesResponse) GetMessage() []byte { - if m != nil { - return m.Message - } - return nil -} - -func init() { - proto.RegisterType((*CommitStatsRequest)(nil), "gitaly.CommitStatsRequest") - proto.RegisterType((*CommitStatsResponse)(nil), "gitaly.CommitStatsResponse") - proto.RegisterType((*CommitIsAncestorRequest)(nil), "gitaly.CommitIsAncestorRequest") - proto.RegisterType((*CommitIsAncestorResponse)(nil), "gitaly.CommitIsAncestorResponse") - proto.RegisterType((*TreeEntryRequest)(nil), "gitaly.TreeEntryRequest") - proto.RegisterType((*TreeEntryResponse)(nil), "gitaly.TreeEntryResponse") - proto.RegisterType((*CommitsBetweenRequest)(nil), "gitaly.CommitsBetweenRequest") - proto.RegisterType((*CommitsBetweenResponse)(nil), "gitaly.CommitsBetweenResponse") - proto.RegisterType((*CountCommitsRequest)(nil), "gitaly.CountCommitsRequest") - proto.RegisterType((*CountCommitsResponse)(nil), "gitaly.CountCommitsResponse") - proto.RegisterType((*TreeEntry)(nil), "gitaly.TreeEntry") - proto.RegisterType((*GetTreeEntriesRequest)(nil), "gitaly.GetTreeEntriesRequest") - proto.RegisterType((*GetTreeEntriesResponse)(nil), "gitaly.GetTreeEntriesResponse") - proto.RegisterType((*ListFilesRequest)(nil), "gitaly.ListFilesRequest") - proto.RegisterType((*ListFilesResponse)(nil), "gitaly.ListFilesResponse") - proto.RegisterType((*FindCommitRequest)(nil), "gitaly.FindCommitRequest") - proto.RegisterType((*FindCommitResponse)(nil), "gitaly.FindCommitResponse") - proto.RegisterType((*ListCommitsByOidRequest)(nil), "gitaly.ListCommitsByOidRequest") - proto.RegisterType((*ListCommitsByOidResponse)(nil), "gitaly.ListCommitsByOidResponse") - proto.RegisterType((*FindAllCommitsRequest)(nil), "gitaly.FindAllCommitsRequest") - proto.RegisterType((*FindAllCommitsResponse)(nil), "gitaly.FindAllCommitsResponse") - proto.RegisterType((*FindCommitsRequest)(nil), "gitaly.FindCommitsRequest") - proto.RegisterType((*FindCommitsResponse)(nil), "gitaly.FindCommitsResponse") - proto.RegisterType((*CommitLanguagesRequest)(nil), "gitaly.CommitLanguagesRequest") - proto.RegisterType((*CommitLanguagesResponse)(nil), "gitaly.CommitLanguagesResponse") - proto.RegisterType((*CommitLanguagesResponse_Language)(nil), "gitaly.CommitLanguagesResponse.Language") - proto.RegisterType((*RawBlameRequest)(nil), "gitaly.RawBlameRequest") - proto.RegisterType((*RawBlameResponse)(nil), "gitaly.RawBlameResponse") - proto.RegisterType((*LastCommitForPathRequest)(nil), "gitaly.LastCommitForPathRequest") - proto.RegisterType((*LastCommitForPathResponse)(nil), "gitaly.LastCommitForPathResponse") - proto.RegisterType((*CommitsByMessageRequest)(nil), "gitaly.CommitsByMessageRequest") - proto.RegisterType((*CommitsByMessageResponse)(nil), "gitaly.CommitsByMessageResponse") - proto.RegisterType((*FilterShasWithSignaturesRequest)(nil), "gitaly.FilterShasWithSignaturesRequest") - proto.RegisterType((*FilterShasWithSignaturesResponse)(nil), "gitaly.FilterShasWithSignaturesResponse") - proto.RegisterType((*ExtractCommitSignatureRequest)(nil), "gitaly.ExtractCommitSignatureRequest") - proto.RegisterType((*ExtractCommitSignatureResponse)(nil), "gitaly.ExtractCommitSignatureResponse") - proto.RegisterType((*GetCommitSignaturesRequest)(nil), "gitaly.GetCommitSignaturesRequest") - proto.RegisterType((*GetCommitSignaturesResponse)(nil), "gitaly.GetCommitSignaturesResponse") - proto.RegisterType((*GetCommitMessagesRequest)(nil), "gitaly.GetCommitMessagesRequest") - proto.RegisterType((*GetCommitMessagesResponse)(nil), "gitaly.GetCommitMessagesResponse") - proto.RegisterEnum("gitaly.TreeEntryResponse_ObjectType", TreeEntryResponse_ObjectType_name, TreeEntryResponse_ObjectType_value) - proto.RegisterEnum("gitaly.TreeEntry_EntryType", TreeEntry_EntryType_name, TreeEntry_EntryType_value) - proto.RegisterEnum("gitaly.FindAllCommitsRequest_Order", FindAllCommitsRequest_Order_name, FindAllCommitsRequest_Order_value) -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for CommitService service - -type CommitServiceClient interface { - CommitIsAncestor(ctx context.Context, in *CommitIsAncestorRequest, opts ...grpc.CallOption) (*CommitIsAncestorResponse, error) - TreeEntry(ctx context.Context, in *TreeEntryRequest, opts ...grpc.CallOption) (CommitService_TreeEntryClient, error) - CommitsBetween(ctx context.Context, in *CommitsBetweenRequest, opts ...grpc.CallOption) (CommitService_CommitsBetweenClient, error) - CountCommits(ctx context.Context, in *CountCommitsRequest, opts ...grpc.CallOption) (*CountCommitsResponse, error) - GetTreeEntries(ctx context.Context, in *GetTreeEntriesRequest, opts ...grpc.CallOption) (CommitService_GetTreeEntriesClient, error) - ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (CommitService_ListFilesClient, error) - FindCommit(ctx context.Context, in *FindCommitRequest, opts ...grpc.CallOption) (*FindCommitResponse, error) - CommitStats(ctx context.Context, in *CommitStatsRequest, opts ...grpc.CallOption) (*CommitStatsResponse, error) - // Use a stream to paginate the result set - FindAllCommits(ctx context.Context, in *FindAllCommitsRequest, opts ...grpc.CallOption) (CommitService_FindAllCommitsClient, error) - FindCommits(ctx context.Context, in *FindCommitsRequest, opts ...grpc.CallOption) (CommitService_FindCommitsClient, error) - CommitLanguages(ctx context.Context, in *CommitLanguagesRequest, opts ...grpc.CallOption) (*CommitLanguagesResponse, error) - RawBlame(ctx context.Context, in *RawBlameRequest, opts ...grpc.CallOption) (CommitService_RawBlameClient, error) - LastCommitForPath(ctx context.Context, in *LastCommitForPathRequest, opts ...grpc.CallOption) (*LastCommitForPathResponse, error) - CommitsByMessage(ctx context.Context, in *CommitsByMessageRequest, opts ...grpc.CallOption) (CommitService_CommitsByMessageClient, error) - ListCommitsByOid(ctx context.Context, in *ListCommitsByOidRequest, opts ...grpc.CallOption) (CommitService_ListCommitsByOidClient, error) - FilterShasWithSignatures(ctx context.Context, opts ...grpc.CallOption) (CommitService_FilterShasWithSignaturesClient, error) - // ExtractCommitSignature returns a stream because the signed text may be - // arbitrarily large and signature verification is impossible without the - // full text. - ExtractCommitSignature(ctx context.Context, in *ExtractCommitSignatureRequest, opts ...grpc.CallOption) (CommitService_ExtractCommitSignatureClient, error) - GetCommitSignatures(ctx context.Context, in *GetCommitSignaturesRequest, opts ...grpc.CallOption) (CommitService_GetCommitSignaturesClient, error) - GetCommitMessages(ctx context.Context, in *GetCommitMessagesRequest, opts ...grpc.CallOption) (CommitService_GetCommitMessagesClient, error) -} - -type commitServiceClient struct { - cc *grpc.ClientConn -} - -func NewCommitServiceClient(cc *grpc.ClientConn) CommitServiceClient { - return &commitServiceClient{cc} -} - -func (c *commitServiceClient) CommitIsAncestor(ctx context.Context, in *CommitIsAncestorRequest, opts ...grpc.CallOption) (*CommitIsAncestorResponse, error) { - out := new(CommitIsAncestorResponse) - err := grpc.Invoke(ctx, "/gitaly.CommitService/CommitIsAncestor", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *commitServiceClient) TreeEntry(ctx context.Context, in *TreeEntryRequest, opts ...grpc.CallOption) (CommitService_TreeEntryClient, error) { - stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[0], c.cc, "/gitaly.CommitService/TreeEntry", opts...) - if err != nil { - return nil, err - } - x := &commitServiceTreeEntryClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type CommitService_TreeEntryClient interface { - Recv() (*TreeEntryResponse, error) - grpc.ClientStream -} - -type commitServiceTreeEntryClient struct { - grpc.ClientStream -} - -func (x *commitServiceTreeEntryClient) Recv() (*TreeEntryResponse, error) { - m := new(TreeEntryResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *commitServiceClient) CommitsBetween(ctx context.Context, in *CommitsBetweenRequest, opts ...grpc.CallOption) (CommitService_CommitsBetweenClient, error) { - stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[1], c.cc, "/gitaly.CommitService/CommitsBetween", opts...) - if err != nil { - return nil, err - } - x := &commitServiceCommitsBetweenClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type CommitService_CommitsBetweenClient interface { - Recv() (*CommitsBetweenResponse, error) - grpc.ClientStream -} - -type commitServiceCommitsBetweenClient struct { - grpc.ClientStream -} - -func (x *commitServiceCommitsBetweenClient) Recv() (*CommitsBetweenResponse, error) { - m := new(CommitsBetweenResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *commitServiceClient) CountCommits(ctx context.Context, in *CountCommitsRequest, opts ...grpc.CallOption) (*CountCommitsResponse, error) { - out := new(CountCommitsResponse) - err := grpc.Invoke(ctx, "/gitaly.CommitService/CountCommits", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *commitServiceClient) GetTreeEntries(ctx context.Context, in *GetTreeEntriesRequest, opts ...grpc.CallOption) (CommitService_GetTreeEntriesClient, error) { - stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[2], c.cc, "/gitaly.CommitService/GetTreeEntries", opts...) - if err != nil { - return nil, err - } - x := &commitServiceGetTreeEntriesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type CommitService_GetTreeEntriesClient interface { - Recv() (*GetTreeEntriesResponse, error) - grpc.ClientStream -} - -type commitServiceGetTreeEntriesClient struct { - grpc.ClientStream -} - -func (x *commitServiceGetTreeEntriesClient) Recv() (*GetTreeEntriesResponse, error) { - m := new(GetTreeEntriesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *commitServiceClient) ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (CommitService_ListFilesClient, error) { - stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[3], c.cc, "/gitaly.CommitService/ListFiles", opts...) - if err != nil { - return nil, err - } - x := &commitServiceListFilesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type CommitService_ListFilesClient interface { - Recv() (*ListFilesResponse, error) - grpc.ClientStream -} - -type commitServiceListFilesClient struct { - grpc.ClientStream -} - -func (x *commitServiceListFilesClient) Recv() (*ListFilesResponse, error) { - m := new(ListFilesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *commitServiceClient) FindCommit(ctx context.Context, in *FindCommitRequest, opts ...grpc.CallOption) (*FindCommitResponse, error) { - out := new(FindCommitResponse) - err := grpc.Invoke(ctx, "/gitaly.CommitService/FindCommit", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *commitServiceClient) CommitStats(ctx context.Context, in *CommitStatsRequest, opts ...grpc.CallOption) (*CommitStatsResponse, error) { - out := new(CommitStatsResponse) - err := grpc.Invoke(ctx, "/gitaly.CommitService/CommitStats", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *commitServiceClient) FindAllCommits(ctx context.Context, in *FindAllCommitsRequest, opts ...grpc.CallOption) (CommitService_FindAllCommitsClient, error) { - stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[4], c.cc, "/gitaly.CommitService/FindAllCommits", opts...) - if err != nil { - return nil, err - } - x := &commitServiceFindAllCommitsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type CommitService_FindAllCommitsClient interface { - Recv() (*FindAllCommitsResponse, error) - grpc.ClientStream -} - -type commitServiceFindAllCommitsClient struct { - grpc.ClientStream -} - -func (x *commitServiceFindAllCommitsClient) Recv() (*FindAllCommitsResponse, error) { - m := new(FindAllCommitsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *commitServiceClient) FindCommits(ctx context.Context, in *FindCommitsRequest, opts ...grpc.CallOption) (CommitService_FindCommitsClient, error) { - stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[5], c.cc, "/gitaly.CommitService/FindCommits", opts...) - if err != nil { - return nil, err - } - x := &commitServiceFindCommitsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type CommitService_FindCommitsClient interface { - Recv() (*FindCommitsResponse, error) - grpc.ClientStream -} - -type commitServiceFindCommitsClient struct { - grpc.ClientStream -} - -func (x *commitServiceFindCommitsClient) Recv() (*FindCommitsResponse, error) { - m := new(FindCommitsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *commitServiceClient) CommitLanguages(ctx context.Context, in *CommitLanguagesRequest, opts ...grpc.CallOption) (*CommitLanguagesResponse, error) { - out := new(CommitLanguagesResponse) - err := grpc.Invoke(ctx, "/gitaly.CommitService/CommitLanguages", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *commitServiceClient) RawBlame(ctx context.Context, in *RawBlameRequest, opts ...grpc.CallOption) (CommitService_RawBlameClient, error) { - stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[6], c.cc, "/gitaly.CommitService/RawBlame", opts...) - if err != nil { - return nil, err - } - x := &commitServiceRawBlameClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type CommitService_RawBlameClient interface { - Recv() (*RawBlameResponse, error) - grpc.ClientStream -} - -type commitServiceRawBlameClient struct { - grpc.ClientStream -} - -func (x *commitServiceRawBlameClient) Recv() (*RawBlameResponse, error) { - m := new(RawBlameResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *commitServiceClient) LastCommitForPath(ctx context.Context, in *LastCommitForPathRequest, opts ...grpc.CallOption) (*LastCommitForPathResponse, error) { - out := new(LastCommitForPathResponse) - err := grpc.Invoke(ctx, "/gitaly.CommitService/LastCommitForPath", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *commitServiceClient) CommitsByMessage(ctx context.Context, in *CommitsByMessageRequest, opts ...grpc.CallOption) (CommitService_CommitsByMessageClient, error) { - stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[7], c.cc, "/gitaly.CommitService/CommitsByMessage", opts...) - if err != nil { - return nil, err - } - x := &commitServiceCommitsByMessageClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type CommitService_CommitsByMessageClient interface { - Recv() (*CommitsByMessageResponse, error) - grpc.ClientStream -} - -type commitServiceCommitsByMessageClient struct { - grpc.ClientStream -} - -func (x *commitServiceCommitsByMessageClient) Recv() (*CommitsByMessageResponse, error) { - m := new(CommitsByMessageResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *commitServiceClient) ListCommitsByOid(ctx context.Context, in *ListCommitsByOidRequest, opts ...grpc.CallOption) (CommitService_ListCommitsByOidClient, error) { - stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[8], c.cc, "/gitaly.CommitService/ListCommitsByOid", opts...) - if err != nil { - return nil, err - } - x := &commitServiceListCommitsByOidClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type CommitService_ListCommitsByOidClient interface { - Recv() (*ListCommitsByOidResponse, error) - grpc.ClientStream -} - -type commitServiceListCommitsByOidClient struct { - grpc.ClientStream -} - -func (x *commitServiceListCommitsByOidClient) Recv() (*ListCommitsByOidResponse, error) { - m := new(ListCommitsByOidResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *commitServiceClient) FilterShasWithSignatures(ctx context.Context, opts ...grpc.CallOption) (CommitService_FilterShasWithSignaturesClient, error) { - stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[9], c.cc, "/gitaly.CommitService/FilterShasWithSignatures", opts...) - if err != nil { - return nil, err - } - x := &commitServiceFilterShasWithSignaturesClient{stream} - return x, nil -} - -type CommitService_FilterShasWithSignaturesClient interface { - Send(*FilterShasWithSignaturesRequest) error - Recv() (*FilterShasWithSignaturesResponse, error) - grpc.ClientStream -} - -type commitServiceFilterShasWithSignaturesClient struct { - grpc.ClientStream -} - -func (x *commitServiceFilterShasWithSignaturesClient) Send(m *FilterShasWithSignaturesRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *commitServiceFilterShasWithSignaturesClient) Recv() (*FilterShasWithSignaturesResponse, error) { - m := new(FilterShasWithSignaturesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *commitServiceClient) ExtractCommitSignature(ctx context.Context, in *ExtractCommitSignatureRequest, opts ...grpc.CallOption) (CommitService_ExtractCommitSignatureClient, error) { - stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[10], c.cc, "/gitaly.CommitService/ExtractCommitSignature", opts...) - if err != nil { - return nil, err - } - x := &commitServiceExtractCommitSignatureClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type CommitService_ExtractCommitSignatureClient interface { - Recv() (*ExtractCommitSignatureResponse, error) - grpc.ClientStream -} - -type commitServiceExtractCommitSignatureClient struct { - grpc.ClientStream -} - -func (x *commitServiceExtractCommitSignatureClient) Recv() (*ExtractCommitSignatureResponse, error) { - m := new(ExtractCommitSignatureResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *commitServiceClient) GetCommitSignatures(ctx context.Context, in *GetCommitSignaturesRequest, opts ...grpc.CallOption) (CommitService_GetCommitSignaturesClient, error) { - stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[11], c.cc, "/gitaly.CommitService/GetCommitSignatures", opts...) - if err != nil { - return nil, err - } - x := &commitServiceGetCommitSignaturesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type CommitService_GetCommitSignaturesClient interface { - Recv() (*GetCommitSignaturesResponse, error) - grpc.ClientStream -} - -type commitServiceGetCommitSignaturesClient struct { - grpc.ClientStream -} - -func (x *commitServiceGetCommitSignaturesClient) Recv() (*GetCommitSignaturesResponse, error) { - m := new(GetCommitSignaturesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *commitServiceClient) GetCommitMessages(ctx context.Context, in *GetCommitMessagesRequest, opts ...grpc.CallOption) (CommitService_GetCommitMessagesClient, error) { - stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[12], c.cc, "/gitaly.CommitService/GetCommitMessages", opts...) - if err != nil { - return nil, err - } - x := &commitServiceGetCommitMessagesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type CommitService_GetCommitMessagesClient interface { - Recv() (*GetCommitMessagesResponse, error) - grpc.ClientStream -} - -type commitServiceGetCommitMessagesClient struct { - grpc.ClientStream -} - -func (x *commitServiceGetCommitMessagesClient) Recv() (*GetCommitMessagesResponse, error) { - m := new(GetCommitMessagesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Server API for CommitService service - -type CommitServiceServer interface { - CommitIsAncestor(context.Context, *CommitIsAncestorRequest) (*CommitIsAncestorResponse, error) - TreeEntry(*TreeEntryRequest, CommitService_TreeEntryServer) error - CommitsBetween(*CommitsBetweenRequest, CommitService_CommitsBetweenServer) error - CountCommits(context.Context, *CountCommitsRequest) (*CountCommitsResponse, error) - GetTreeEntries(*GetTreeEntriesRequest, CommitService_GetTreeEntriesServer) error - ListFiles(*ListFilesRequest, CommitService_ListFilesServer) error - FindCommit(context.Context, *FindCommitRequest) (*FindCommitResponse, error) - CommitStats(context.Context, *CommitStatsRequest) (*CommitStatsResponse, error) - // Use a stream to paginate the result set - FindAllCommits(*FindAllCommitsRequest, CommitService_FindAllCommitsServer) error - FindCommits(*FindCommitsRequest, CommitService_FindCommitsServer) error - CommitLanguages(context.Context, *CommitLanguagesRequest) (*CommitLanguagesResponse, error) - RawBlame(*RawBlameRequest, CommitService_RawBlameServer) error - LastCommitForPath(context.Context, *LastCommitForPathRequest) (*LastCommitForPathResponse, error) - CommitsByMessage(*CommitsByMessageRequest, CommitService_CommitsByMessageServer) error - ListCommitsByOid(*ListCommitsByOidRequest, CommitService_ListCommitsByOidServer) error - FilterShasWithSignatures(CommitService_FilterShasWithSignaturesServer) error - // ExtractCommitSignature returns a stream because the signed text may be - // arbitrarily large and signature verification is impossible without the - // full text. - ExtractCommitSignature(*ExtractCommitSignatureRequest, CommitService_ExtractCommitSignatureServer) error - GetCommitSignatures(*GetCommitSignaturesRequest, CommitService_GetCommitSignaturesServer) error - GetCommitMessages(*GetCommitMessagesRequest, CommitService_GetCommitMessagesServer) error -} - -func RegisterCommitServiceServer(s *grpc.Server, srv CommitServiceServer) { - s.RegisterService(&_CommitService_serviceDesc, srv) -} - -func _CommitService_CommitIsAncestor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CommitIsAncestorRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CommitServiceServer).CommitIsAncestor(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.CommitService/CommitIsAncestor", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CommitServiceServer).CommitIsAncestor(ctx, req.(*CommitIsAncestorRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CommitService_TreeEntry_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(TreeEntryRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(CommitServiceServer).TreeEntry(m, &commitServiceTreeEntryServer{stream}) -} - -type CommitService_TreeEntryServer interface { - Send(*TreeEntryResponse) error - grpc.ServerStream -} - -type commitServiceTreeEntryServer struct { - grpc.ServerStream -} - -func (x *commitServiceTreeEntryServer) Send(m *TreeEntryResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _CommitService_CommitsBetween_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(CommitsBetweenRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(CommitServiceServer).CommitsBetween(m, &commitServiceCommitsBetweenServer{stream}) -} - -type CommitService_CommitsBetweenServer interface { - Send(*CommitsBetweenResponse) error - grpc.ServerStream -} - -type commitServiceCommitsBetweenServer struct { - grpc.ServerStream -} - -func (x *commitServiceCommitsBetweenServer) Send(m *CommitsBetweenResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _CommitService_CountCommits_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CountCommitsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CommitServiceServer).CountCommits(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.CommitService/CountCommits", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CommitServiceServer).CountCommits(ctx, req.(*CountCommitsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CommitService_GetTreeEntries_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetTreeEntriesRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(CommitServiceServer).GetTreeEntries(m, &commitServiceGetTreeEntriesServer{stream}) -} - -type CommitService_GetTreeEntriesServer interface { - Send(*GetTreeEntriesResponse) error - grpc.ServerStream -} - -type commitServiceGetTreeEntriesServer struct { - grpc.ServerStream -} - -func (x *commitServiceGetTreeEntriesServer) Send(m *GetTreeEntriesResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _CommitService_ListFiles_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListFilesRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(CommitServiceServer).ListFiles(m, &commitServiceListFilesServer{stream}) -} - -type CommitService_ListFilesServer interface { - Send(*ListFilesResponse) error - grpc.ServerStream -} - -type commitServiceListFilesServer struct { - grpc.ServerStream -} - -func (x *commitServiceListFilesServer) Send(m *ListFilesResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _CommitService_FindCommit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindCommitRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CommitServiceServer).FindCommit(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.CommitService/FindCommit", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CommitServiceServer).FindCommit(ctx, req.(*FindCommitRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CommitService_CommitStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CommitStatsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CommitServiceServer).CommitStats(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.CommitService/CommitStats", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CommitServiceServer).CommitStats(ctx, req.(*CommitStatsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CommitService_FindAllCommits_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(FindAllCommitsRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(CommitServiceServer).FindAllCommits(m, &commitServiceFindAllCommitsServer{stream}) -} - -type CommitService_FindAllCommitsServer interface { - Send(*FindAllCommitsResponse) error - grpc.ServerStream -} - -type commitServiceFindAllCommitsServer struct { - grpc.ServerStream -} - -func (x *commitServiceFindAllCommitsServer) Send(m *FindAllCommitsResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _CommitService_FindCommits_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(FindCommitsRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(CommitServiceServer).FindCommits(m, &commitServiceFindCommitsServer{stream}) -} - -type CommitService_FindCommitsServer interface { - Send(*FindCommitsResponse) error - grpc.ServerStream -} - -type commitServiceFindCommitsServer struct { - grpc.ServerStream -} - -func (x *commitServiceFindCommitsServer) Send(m *FindCommitsResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _CommitService_CommitLanguages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CommitLanguagesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CommitServiceServer).CommitLanguages(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.CommitService/CommitLanguages", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CommitServiceServer).CommitLanguages(ctx, req.(*CommitLanguagesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CommitService_RawBlame_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(RawBlameRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(CommitServiceServer).RawBlame(m, &commitServiceRawBlameServer{stream}) -} - -type CommitService_RawBlameServer interface { - Send(*RawBlameResponse) error - grpc.ServerStream -} - -type commitServiceRawBlameServer struct { - grpc.ServerStream -} - -func (x *commitServiceRawBlameServer) Send(m *RawBlameResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _CommitService_LastCommitForPath_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LastCommitForPathRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CommitServiceServer).LastCommitForPath(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.CommitService/LastCommitForPath", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CommitServiceServer).LastCommitForPath(ctx, req.(*LastCommitForPathRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CommitService_CommitsByMessage_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(CommitsByMessageRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(CommitServiceServer).CommitsByMessage(m, &commitServiceCommitsByMessageServer{stream}) -} - -type CommitService_CommitsByMessageServer interface { - Send(*CommitsByMessageResponse) error - grpc.ServerStream -} - -type commitServiceCommitsByMessageServer struct { - grpc.ServerStream -} - -func (x *commitServiceCommitsByMessageServer) Send(m *CommitsByMessageResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _CommitService_ListCommitsByOid_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListCommitsByOidRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(CommitServiceServer).ListCommitsByOid(m, &commitServiceListCommitsByOidServer{stream}) -} - -type CommitService_ListCommitsByOidServer interface { - Send(*ListCommitsByOidResponse) error - grpc.ServerStream -} - -type commitServiceListCommitsByOidServer struct { - grpc.ServerStream -} - -func (x *commitServiceListCommitsByOidServer) Send(m *ListCommitsByOidResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _CommitService_FilterShasWithSignatures_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(CommitServiceServer).FilterShasWithSignatures(&commitServiceFilterShasWithSignaturesServer{stream}) -} - -type CommitService_FilterShasWithSignaturesServer interface { - Send(*FilterShasWithSignaturesResponse) error - Recv() (*FilterShasWithSignaturesRequest, error) - grpc.ServerStream -} - -type commitServiceFilterShasWithSignaturesServer struct { - grpc.ServerStream -} - -func (x *commitServiceFilterShasWithSignaturesServer) Send(m *FilterShasWithSignaturesResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *commitServiceFilterShasWithSignaturesServer) Recv() (*FilterShasWithSignaturesRequest, error) { - m := new(FilterShasWithSignaturesRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _CommitService_ExtractCommitSignature_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ExtractCommitSignatureRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(CommitServiceServer).ExtractCommitSignature(m, &commitServiceExtractCommitSignatureServer{stream}) -} - -type CommitService_ExtractCommitSignatureServer interface { - Send(*ExtractCommitSignatureResponse) error - grpc.ServerStream -} - -type commitServiceExtractCommitSignatureServer struct { - grpc.ServerStream -} - -func (x *commitServiceExtractCommitSignatureServer) Send(m *ExtractCommitSignatureResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _CommitService_GetCommitSignatures_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetCommitSignaturesRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(CommitServiceServer).GetCommitSignatures(m, &commitServiceGetCommitSignaturesServer{stream}) -} - -type CommitService_GetCommitSignaturesServer interface { - Send(*GetCommitSignaturesResponse) error - grpc.ServerStream -} - -type commitServiceGetCommitSignaturesServer struct { - grpc.ServerStream -} - -func (x *commitServiceGetCommitSignaturesServer) Send(m *GetCommitSignaturesResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _CommitService_GetCommitMessages_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetCommitMessagesRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(CommitServiceServer).GetCommitMessages(m, &commitServiceGetCommitMessagesServer{stream}) -} - -type CommitService_GetCommitMessagesServer interface { - Send(*GetCommitMessagesResponse) error - grpc.ServerStream -} - -type commitServiceGetCommitMessagesServer struct { - grpc.ServerStream -} - -func (x *commitServiceGetCommitMessagesServer) Send(m *GetCommitMessagesResponse) error { - return x.ServerStream.SendMsg(m) -} - -var _CommitService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.CommitService", - HandlerType: (*CommitServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CommitIsAncestor", - Handler: _CommitService_CommitIsAncestor_Handler, - }, - { - MethodName: "CountCommits", - Handler: _CommitService_CountCommits_Handler, - }, - { - MethodName: "FindCommit", - Handler: _CommitService_FindCommit_Handler, - }, - { - MethodName: "CommitStats", - Handler: _CommitService_CommitStats_Handler, - }, - { - MethodName: "CommitLanguages", - Handler: _CommitService_CommitLanguages_Handler, - }, - { - MethodName: "LastCommitForPath", - Handler: _CommitService_LastCommitForPath_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "TreeEntry", - Handler: _CommitService_TreeEntry_Handler, - ServerStreams: true, - }, - { - StreamName: "CommitsBetween", - Handler: _CommitService_CommitsBetween_Handler, - ServerStreams: true, - }, - { - StreamName: "GetTreeEntries", - Handler: _CommitService_GetTreeEntries_Handler, - ServerStreams: true, - }, - { - StreamName: "ListFiles", - Handler: _CommitService_ListFiles_Handler, - ServerStreams: true, - }, - { - StreamName: "FindAllCommits", - Handler: _CommitService_FindAllCommits_Handler, - ServerStreams: true, - }, - { - StreamName: "FindCommits", - Handler: _CommitService_FindCommits_Handler, - ServerStreams: true, - }, - { - StreamName: "RawBlame", - Handler: _CommitService_RawBlame_Handler, - ServerStreams: true, - }, - { - StreamName: "CommitsByMessage", - Handler: _CommitService_CommitsByMessage_Handler, - ServerStreams: true, - }, - { - StreamName: "ListCommitsByOid", - Handler: _CommitService_ListCommitsByOid_Handler, - ServerStreams: true, - }, - { - StreamName: "FilterShasWithSignatures", - Handler: _CommitService_FilterShasWithSignatures_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "ExtractCommitSignature", - Handler: _CommitService_ExtractCommitSignature_Handler, - ServerStreams: true, - }, - { - StreamName: "GetCommitSignatures", - Handler: _CommitService_GetCommitSignatures_Handler, - ServerStreams: true, - }, - { - StreamName: "GetCommitMessages", - Handler: _CommitService_GetCommitMessages_Handler, - ServerStreams: true, - }, - }, - Metadata: "commit.proto", -} - -func init() { proto.RegisterFile("commit.proto", fileDescriptor1) } - -var fileDescriptor1 = []byte{ - // 1697 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xdd, 0x6e, 0xdb, 0x46, - 0x16, 0x36, 0x25, 0x4b, 0x96, 0x8e, 0xb4, 0x8e, 0x3c, 0xf9, 0xa3, 0x69, 0x27, 0x76, 0x98, 0x4d, - 0xd6, 0x41, 0x16, 0x8a, 0xa1, 0xc5, 0x2e, 0x76, 0xaf, 0x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 0xbf, 0xfe, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xb7, 0xe0, 0x5d, 0x22, 0x19, 0x19, 0x00, - 0x00, -} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/conflicts.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/conflicts.pb.go deleted file mode 100644 index 8fc1470..0000000 --- a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/conflicts.pb.go +++ /dev/null @@ -1,650 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: conflicts.proto - -package gitaly - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -type ListConflictFilesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - OurCommitOid string `protobuf:"bytes,2,opt,name=our_commit_oid,json=ourCommitOid" json:"our_commit_oid,omitempty"` - TheirCommitOid string `protobuf:"bytes,3,opt,name=their_commit_oid,json=theirCommitOid" json:"their_commit_oid,omitempty"` -} - -func (m *ListConflictFilesRequest) Reset() { *m = ListConflictFilesRequest{} } -func (m *ListConflictFilesRequest) String() string { return proto.CompactTextString(m) } -func (*ListConflictFilesRequest) ProtoMessage() {} -func (*ListConflictFilesRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} } - -func (m *ListConflictFilesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *ListConflictFilesRequest) GetOurCommitOid() string { - if m != nil { - return m.OurCommitOid - } - return "" -} - -func (m *ListConflictFilesRequest) GetTheirCommitOid() string { - if m != nil { - return m.TheirCommitOid - } - return "" -} - -type ConflictFileHeader struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - CommitOid string `protobuf:"bytes,2,opt,name=commit_oid,json=commitOid" json:"commit_oid,omitempty"` - TheirPath []byte `protobuf:"bytes,3,opt,name=their_path,json=theirPath,proto3" json:"their_path,omitempty"` - OurPath []byte `protobuf:"bytes,4,opt,name=our_path,json=ourPath,proto3" json:"our_path,omitempty"` - OurMode int32 `protobuf:"varint,5,opt,name=our_mode,json=ourMode" json:"our_mode,omitempty"` -} - -func (m *ConflictFileHeader) Reset() { *m = ConflictFileHeader{} } -func (m *ConflictFileHeader) String() string { return proto.CompactTextString(m) } -func (*ConflictFileHeader) ProtoMessage() {} -func (*ConflictFileHeader) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} } - -func (m *ConflictFileHeader) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *ConflictFileHeader) GetCommitOid() string { - if m != nil { - return m.CommitOid - } - return "" -} - -func (m *ConflictFileHeader) GetTheirPath() []byte { - if m != nil { - return m.TheirPath - } - return nil -} - -func (m *ConflictFileHeader) GetOurPath() []byte { - if m != nil { - return m.OurPath - } - return nil -} - -func (m *ConflictFileHeader) GetOurMode() int32 { - if m != nil { - return m.OurMode - } - return 0 -} - -type ConflictFile struct { - // Types that are valid to be assigned to ConflictFilePayload: - // *ConflictFile_Header - // *ConflictFile_Content - ConflictFilePayload isConflictFile_ConflictFilePayload `protobuf_oneof:"conflict_file_payload"` -} - -func (m *ConflictFile) Reset() { *m = ConflictFile{} } -func (m *ConflictFile) String() string { return proto.CompactTextString(m) } -func (*ConflictFile) ProtoMessage() {} -func (*ConflictFile) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} } - -type isConflictFile_ConflictFilePayload interface{ isConflictFile_ConflictFilePayload() } - -type ConflictFile_Header struct { - Header *ConflictFileHeader `protobuf:"bytes,1,opt,name=header,oneof"` -} -type ConflictFile_Content struct { - Content []byte `protobuf:"bytes,2,opt,name=content,proto3,oneof"` -} - -func (*ConflictFile_Header) isConflictFile_ConflictFilePayload() {} -func (*ConflictFile_Content) isConflictFile_ConflictFilePayload() {} - -func (m *ConflictFile) GetConflictFilePayload() isConflictFile_ConflictFilePayload { - if m != nil { - return m.ConflictFilePayload - } - return nil -} - -func (m *ConflictFile) GetHeader() *ConflictFileHeader { - if x, ok := m.GetConflictFilePayload().(*ConflictFile_Header); ok { - return x.Header - } - return nil -} - -func (m *ConflictFile) GetContent() []byte { - if x, ok := m.GetConflictFilePayload().(*ConflictFile_Content); ok { - return x.Content - } - return nil -} - -// XXX_OneofFuncs is for the internal use of the proto package. -func (*ConflictFile) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _ConflictFile_OneofMarshaler, _ConflictFile_OneofUnmarshaler, _ConflictFile_OneofSizer, []interface{}{ - (*ConflictFile_Header)(nil), - (*ConflictFile_Content)(nil), - } -} - -func _ConflictFile_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*ConflictFile) - // conflict_file_payload - switch x := m.ConflictFilePayload.(type) { - case *ConflictFile_Header: - b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Header); err != nil { - return err - } - case *ConflictFile_Content: - b.EncodeVarint(2<<3 | proto.WireBytes) - b.EncodeRawBytes(x.Content) - case nil: - default: - return fmt.Errorf("ConflictFile.ConflictFilePayload has unexpected type %T", x) - } - return nil -} - -func _ConflictFile_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*ConflictFile) - switch tag { - case 1: // conflict_file_payload.header - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(ConflictFileHeader) - err := b.DecodeMessage(msg) - m.ConflictFilePayload = &ConflictFile_Header{msg} - return true, err - case 2: // conflict_file_payload.content - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeRawBytes(true) - m.ConflictFilePayload = &ConflictFile_Content{x} - return true, err - default: - return false, nil - } -} - -func _ConflictFile_OneofSizer(msg proto.Message) (n int) { - m := msg.(*ConflictFile) - // conflict_file_payload - switch x := m.ConflictFilePayload.(type) { - case *ConflictFile_Header: - s := proto.Size(x.Header) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *ConflictFile_Content: - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(len(x.Content))) - n += len(x.Content) - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - -type ListConflictFilesResponse struct { - Files []*ConflictFile `protobuf:"bytes,1,rep,name=files" json:"files,omitempty"` -} - -func (m *ListConflictFilesResponse) Reset() { *m = ListConflictFilesResponse{} } -func (m *ListConflictFilesResponse) String() string { return proto.CompactTextString(m) } -func (*ListConflictFilesResponse) ProtoMessage() {} -func (*ListConflictFilesResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} } - -func (m *ListConflictFilesResponse) GetFiles() []*ConflictFile { - if m != nil { - return m.Files - } - return nil -} - -type ResolveConflictsRequestHeader struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - OurCommitOid string `protobuf:"bytes,2,opt,name=our_commit_oid,json=ourCommitOid" json:"our_commit_oid,omitempty"` - TargetRepository *Repository `protobuf:"bytes,3,opt,name=target_repository,json=targetRepository" json:"target_repository,omitempty"` - TheirCommitOid string `protobuf:"bytes,4,opt,name=their_commit_oid,json=theirCommitOid" json:"their_commit_oid,omitempty"` - SourceBranch []byte `protobuf:"bytes,5,opt,name=source_branch,json=sourceBranch,proto3" json:"source_branch,omitempty"` - TargetBranch []byte `protobuf:"bytes,6,opt,name=target_branch,json=targetBranch,proto3" json:"target_branch,omitempty"` - CommitMessage []byte `protobuf:"bytes,7,opt,name=commit_message,json=commitMessage,proto3" json:"commit_message,omitempty"` - User *User `protobuf:"bytes,8,opt,name=user" json:"user,omitempty"` -} - -func (m *ResolveConflictsRequestHeader) Reset() { *m = ResolveConflictsRequestHeader{} } -func (m *ResolveConflictsRequestHeader) String() string { return proto.CompactTextString(m) } -func (*ResolveConflictsRequestHeader) ProtoMessage() {} -func (*ResolveConflictsRequestHeader) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{4} } - -func (m *ResolveConflictsRequestHeader) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *ResolveConflictsRequestHeader) GetOurCommitOid() string { - if m != nil { - return m.OurCommitOid - } - return "" -} - -func (m *ResolveConflictsRequestHeader) GetTargetRepository() *Repository { - if m != nil { - return m.TargetRepository - } - return nil -} - -func (m *ResolveConflictsRequestHeader) GetTheirCommitOid() string { - if m != nil { - return m.TheirCommitOid - } - return "" -} - -func (m *ResolveConflictsRequestHeader) GetSourceBranch() []byte { - if m != nil { - return m.SourceBranch - } - return nil -} - -func (m *ResolveConflictsRequestHeader) GetTargetBranch() []byte { - if m != nil { - return m.TargetBranch - } - return nil -} - -func (m *ResolveConflictsRequestHeader) GetCommitMessage() []byte { - if m != nil { - return m.CommitMessage - } - return nil -} - -func (m *ResolveConflictsRequestHeader) GetUser() *User { - if m != nil { - return m.User - } - return nil -} - -type ResolveConflictsRequest struct { - // Types that are valid to be assigned to ResolveConflictsRequestPayload: - // *ResolveConflictsRequest_Header - // *ResolveConflictsRequest_FilesJson - ResolveConflictsRequestPayload isResolveConflictsRequest_ResolveConflictsRequestPayload `protobuf_oneof:"resolve_conflicts_request_payload"` -} - -func (m *ResolveConflictsRequest) Reset() { *m = ResolveConflictsRequest{} } -func (m *ResolveConflictsRequest) String() string { return proto.CompactTextString(m) } -func (*ResolveConflictsRequest) ProtoMessage() {} -func (*ResolveConflictsRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{5} } - -type isResolveConflictsRequest_ResolveConflictsRequestPayload interface{ isResolveConflictsRequest_ResolveConflictsRequestPayload() } - -type ResolveConflictsRequest_Header struct { - Header *ResolveConflictsRequestHeader `protobuf:"bytes,1,opt,name=header,oneof"` -} -type ResolveConflictsRequest_FilesJson struct { - FilesJson []byte `protobuf:"bytes,2,opt,name=files_json,json=filesJson,proto3,oneof"` -} - -func (*ResolveConflictsRequest_Header) isResolveConflictsRequest_ResolveConflictsRequestPayload() {} -func (*ResolveConflictsRequest_FilesJson) isResolveConflictsRequest_ResolveConflictsRequestPayload() {} - -func (m *ResolveConflictsRequest) GetResolveConflictsRequestPayload() isResolveConflictsRequest_ResolveConflictsRequestPayload { - if m != nil { - return m.ResolveConflictsRequestPayload - } - return nil -} - -func (m *ResolveConflictsRequest) GetHeader() *ResolveConflictsRequestHeader { - if x, ok := m.GetResolveConflictsRequestPayload().(*ResolveConflictsRequest_Header); ok { - return x.Header - } - return nil -} - -func (m *ResolveConflictsRequest) GetFilesJson() []byte { - if x, ok := m.GetResolveConflictsRequestPayload().(*ResolveConflictsRequest_FilesJson); ok { - return x.FilesJson - } - return nil -} - -// XXX_OneofFuncs is for the internal use of the proto package. -func (*ResolveConflictsRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _ResolveConflictsRequest_OneofMarshaler, _ResolveConflictsRequest_OneofUnmarshaler, _ResolveConflictsRequest_OneofSizer, []interface{}{ - (*ResolveConflictsRequest_Header)(nil), - (*ResolveConflictsRequest_FilesJson)(nil), - } -} - -func _ResolveConflictsRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*ResolveConflictsRequest) - // resolve_conflicts_request_payload - switch x := m.ResolveConflictsRequestPayload.(type) { - case *ResolveConflictsRequest_Header: - b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Header); err != nil { - return err - } - case *ResolveConflictsRequest_FilesJson: - b.EncodeVarint(2<<3 | proto.WireBytes) - b.EncodeRawBytes(x.FilesJson) - case nil: - default: - return fmt.Errorf("ResolveConflictsRequest.ResolveConflictsRequestPayload has unexpected type %T", x) - } - return nil -} - -func _ResolveConflictsRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*ResolveConflictsRequest) - switch tag { - case 1: // resolve_conflicts_request_payload.header - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(ResolveConflictsRequestHeader) - err := b.DecodeMessage(msg) - m.ResolveConflictsRequestPayload = &ResolveConflictsRequest_Header{msg} - return true, err - case 2: // resolve_conflicts_request_payload.files_json - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeRawBytes(true) - m.ResolveConflictsRequestPayload = &ResolveConflictsRequest_FilesJson{x} - return true, err - default: - return false, nil - } -} - -func _ResolveConflictsRequest_OneofSizer(msg proto.Message) (n int) { - m := msg.(*ResolveConflictsRequest) - // resolve_conflicts_request_payload - switch x := m.ResolveConflictsRequestPayload.(type) { - case *ResolveConflictsRequest_Header: - s := proto.Size(x.Header) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *ResolveConflictsRequest_FilesJson: - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(len(x.FilesJson))) - n += len(x.FilesJson) - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - -type ResolveConflictsResponse struct { - ResolutionError string `protobuf:"bytes,1,opt,name=resolution_error,json=resolutionError" json:"resolution_error,omitempty"` -} - -func (m *ResolveConflictsResponse) Reset() { *m = ResolveConflictsResponse{} } -func (m *ResolveConflictsResponse) String() string { return proto.CompactTextString(m) } -func (*ResolveConflictsResponse) ProtoMessage() {} -func (*ResolveConflictsResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{6} } - -func (m *ResolveConflictsResponse) GetResolutionError() string { - if m != nil { - return m.ResolutionError - } - return "" -} - -func init() { - proto.RegisterType((*ListConflictFilesRequest)(nil), "gitaly.ListConflictFilesRequest") - proto.RegisterType((*ConflictFileHeader)(nil), "gitaly.ConflictFileHeader") - proto.RegisterType((*ConflictFile)(nil), "gitaly.ConflictFile") - proto.RegisterType((*ListConflictFilesResponse)(nil), "gitaly.ListConflictFilesResponse") - proto.RegisterType((*ResolveConflictsRequestHeader)(nil), "gitaly.ResolveConflictsRequestHeader") - proto.RegisterType((*ResolveConflictsRequest)(nil), "gitaly.ResolveConflictsRequest") - proto.RegisterType((*ResolveConflictsResponse)(nil), "gitaly.ResolveConflictsResponse") -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for ConflictsService service - -type ConflictsServiceClient interface { - ListConflictFiles(ctx context.Context, in *ListConflictFilesRequest, opts ...grpc.CallOption) (ConflictsService_ListConflictFilesClient, error) - ResolveConflicts(ctx context.Context, opts ...grpc.CallOption) (ConflictsService_ResolveConflictsClient, error) -} - -type conflictsServiceClient struct { - cc *grpc.ClientConn -} - -func NewConflictsServiceClient(cc *grpc.ClientConn) ConflictsServiceClient { - return &conflictsServiceClient{cc} -} - -func (c *conflictsServiceClient) ListConflictFiles(ctx context.Context, in *ListConflictFilesRequest, opts ...grpc.CallOption) (ConflictsService_ListConflictFilesClient, error) { - stream, err := grpc.NewClientStream(ctx, &_ConflictsService_serviceDesc.Streams[0], c.cc, "/gitaly.ConflictsService/ListConflictFiles", opts...) - if err != nil { - return nil, err - } - x := &conflictsServiceListConflictFilesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type ConflictsService_ListConflictFilesClient interface { - Recv() (*ListConflictFilesResponse, error) - grpc.ClientStream -} - -type conflictsServiceListConflictFilesClient struct { - grpc.ClientStream -} - -func (x *conflictsServiceListConflictFilesClient) Recv() (*ListConflictFilesResponse, error) { - m := new(ListConflictFilesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *conflictsServiceClient) ResolveConflicts(ctx context.Context, opts ...grpc.CallOption) (ConflictsService_ResolveConflictsClient, error) { - stream, err := grpc.NewClientStream(ctx, &_ConflictsService_serviceDesc.Streams[1], c.cc, "/gitaly.ConflictsService/ResolveConflicts", opts...) - if err != nil { - return nil, err - } - x := &conflictsServiceResolveConflictsClient{stream} - return x, nil -} - -type ConflictsService_ResolveConflictsClient interface { - Send(*ResolveConflictsRequest) error - CloseAndRecv() (*ResolveConflictsResponse, error) - grpc.ClientStream -} - -type conflictsServiceResolveConflictsClient struct { - grpc.ClientStream -} - -func (x *conflictsServiceResolveConflictsClient) Send(m *ResolveConflictsRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *conflictsServiceResolveConflictsClient) CloseAndRecv() (*ResolveConflictsResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(ResolveConflictsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Server API for ConflictsService service - -type ConflictsServiceServer interface { - ListConflictFiles(*ListConflictFilesRequest, ConflictsService_ListConflictFilesServer) error - ResolveConflicts(ConflictsService_ResolveConflictsServer) error -} - -func RegisterConflictsServiceServer(s *grpc.Server, srv ConflictsServiceServer) { - s.RegisterService(&_ConflictsService_serviceDesc, srv) -} - -func _ConflictsService_ListConflictFiles_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListConflictFilesRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ConflictsServiceServer).ListConflictFiles(m, &conflictsServiceListConflictFilesServer{stream}) -} - -type ConflictsService_ListConflictFilesServer interface { - Send(*ListConflictFilesResponse) error - grpc.ServerStream -} - -type conflictsServiceListConflictFilesServer struct { - grpc.ServerStream -} - -func (x *conflictsServiceListConflictFilesServer) Send(m *ListConflictFilesResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _ConflictsService_ResolveConflicts_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(ConflictsServiceServer).ResolveConflicts(&conflictsServiceResolveConflictsServer{stream}) -} - -type ConflictsService_ResolveConflictsServer interface { - SendAndClose(*ResolveConflictsResponse) error - Recv() (*ResolveConflictsRequest, error) - grpc.ServerStream -} - -type conflictsServiceResolveConflictsServer struct { - grpc.ServerStream -} - -func (x *conflictsServiceResolveConflictsServer) SendAndClose(m *ResolveConflictsResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *conflictsServiceResolveConflictsServer) Recv() (*ResolveConflictsRequest, error) { - m := new(ResolveConflictsRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -var _ConflictsService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.ConflictsService", - HandlerType: (*ConflictsServiceServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "ListConflictFiles", - Handler: _ConflictsService_ListConflictFiles_Handler, - ServerStreams: true, - }, - { - StreamName: "ResolveConflicts", - Handler: _ConflictsService_ResolveConflicts_Handler, - ClientStreams: true, - }, - }, - Metadata: "conflicts.proto", -} - -func init() { proto.RegisterFile("conflicts.proto", fileDescriptor2) } - -var fileDescriptor2 = []byte{ - // 575 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0xd1, 0x6a, 0x13, 0x41, - 0x14, 0x86, 0xbb, 0x6d, 0x93, 0x34, 0xa7, 0xdb, 0x34, 0x1d, 0x94, 0x6e, 0x03, 0xa1, 0xdb, 0xad, - 0x85, 0xd5, 0x8b, 0x20, 0xd1, 0xfb, 0x42, 0x4a, 0x35, 0x88, 0x45, 0x19, 0xf1, 0x42, 0x10, 0x96, - 0xed, 0xee, 0x69, 0x76, 0x64, 0xb3, 0x13, 0x67, 0x66, 0x0b, 0x79, 0x19, 0xf1, 0x41, 0x7c, 0x03, - 0x1f, 0xc8, 0x5b, 0xc9, 0x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 0xf7, 0xdd, 0x82, 0xc3, 0x35, 0x2f, 0x4f, 0xce, 0xef, 0x25, 0xe9, 0x6c, 0xfe, 0x1c, 0x0f, 0x9c, - 0x6a, 0x21, 0x54, 0xc7, 0x00, 0xfa, 0xbe, 0xc1, 0x17, 0xc9, 0xb3, 0x2a, 0x57, 0x4d, 0xad, 0xbd, - 0x91, 0x3c, 0x1b, 0x9c, 0xc2, 0x89, 0x30, 0xbd, 0x82, 0xea, 0x33, 0x09, 0x84, 0xe9, 0x56, 0xa5, - 0xec, 0x12, 0x9c, 0xe5, 0x81, 0x45, 0xc8, 0x9e, 0x42, 0x5b, 0x37, 0xc8, 0x15, 0xe3, 0x59, 0x80, - 0x42, 0x70, 0x63, 0xb6, 0x49, 0xf7, 0xe7, 0xfa, 0xe5, 0x4c, 0xee, 0xff, 0xb4, 0xa0, 0x5d, 0x35, - 0xf8, 0x80, 0xe2, 0x96, 0x45, 0x48, 0x3e, 0xc3, 0xc1, 0x52, 0x82, 0x89, 0x5b, 0xee, 0xb9, 0xee, - 0xdb, 0xea, 0x9c, 0x3c, 0x40, 0x18, 0x67, 0xde, 0xc6, 0x73, 0x8b, 0x7c, 0x82, 0xf6, 0x7d, 0xe7, - 0xe4, 0xf8, 0x0f, 0x8f, 0xd8, 0x71, 0xd7, 0x03, 0x65, 0x6b, 0xdf, 0xba, 0xae, 0xeb, 0xcf, 0xf5, - 0xc5, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x2c, 0xb1, 0x16, 0xeb, 0x85, 0x05, 0x00, 0x00, -} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/deprecated-services.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/deprecated-services.pb.go deleted file mode 100644 index 7253e92..0000000 --- a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/deprecated-services.pb.go +++ /dev/null @@ -1,1146 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: deprecated-services.proto - -package gitaly - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for Commit service - -type CommitClient interface { - CommitIsAncestor(ctx context.Context, in *CommitIsAncestorRequest, opts ...grpc.CallOption) (*CommitIsAncestorResponse, error) - TreeEntry(ctx context.Context, in *TreeEntryRequest, opts ...grpc.CallOption) (Commit_TreeEntryClient, error) -} - -type commitClient struct { - cc *grpc.ClientConn -} - -func NewCommitClient(cc *grpc.ClientConn) CommitClient { - return &commitClient{cc} -} - -func (c *commitClient) CommitIsAncestor(ctx context.Context, in *CommitIsAncestorRequest, opts ...grpc.CallOption) (*CommitIsAncestorResponse, error) { - out := new(CommitIsAncestorResponse) - err := grpc.Invoke(ctx, "/gitaly.Commit/CommitIsAncestor", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *commitClient) TreeEntry(ctx context.Context, in *TreeEntryRequest, opts ...grpc.CallOption) (Commit_TreeEntryClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Commit_serviceDesc.Streams[0], c.cc, "/gitaly.Commit/TreeEntry", opts...) - if err != nil { - return nil, err - } - x := &commitTreeEntryClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Commit_TreeEntryClient interface { - Recv() (*TreeEntryResponse, error) - grpc.ClientStream -} - -type commitTreeEntryClient struct { - grpc.ClientStream -} - -func (x *commitTreeEntryClient) Recv() (*TreeEntryResponse, error) { - m := new(TreeEntryResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Server API for Commit service - -type CommitServer interface { - CommitIsAncestor(context.Context, *CommitIsAncestorRequest) (*CommitIsAncestorResponse, error) - TreeEntry(*TreeEntryRequest, Commit_TreeEntryServer) error -} - -func RegisterCommitServer(s *grpc.Server, srv CommitServer) { - s.RegisterService(&_Commit_serviceDesc, srv) -} - -func _Commit_CommitIsAncestor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CommitIsAncestorRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CommitServer).CommitIsAncestor(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.Commit/CommitIsAncestor", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CommitServer).CommitIsAncestor(ctx, req.(*CommitIsAncestorRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Commit_TreeEntry_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(TreeEntryRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(CommitServer).TreeEntry(m, &commitTreeEntryServer{stream}) -} - -type Commit_TreeEntryServer interface { - Send(*TreeEntryResponse) error - grpc.ServerStream -} - -type commitTreeEntryServer struct { - grpc.ServerStream -} - -func (x *commitTreeEntryServer) Send(m *TreeEntryResponse) error { - return x.ServerStream.SendMsg(m) -} - -var _Commit_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.Commit", - HandlerType: (*CommitServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CommitIsAncestor", - Handler: _Commit_CommitIsAncestor_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "TreeEntry", - Handler: _Commit_TreeEntry_Handler, - ServerStreams: true, - }, - }, - Metadata: "deprecated-services.proto", -} - -// Client API for Diff service - -type DiffClient interface { - // Returns stream of CommitDiffResponse with patches chunked over messages - CommitDiff(ctx context.Context, in *CommitDiffRequest, opts ...grpc.CallOption) (Diff_CommitDiffClient, error) - // Return a stream so we can divide the response in chunks of deltas - CommitDelta(ctx context.Context, in *CommitDeltaRequest, opts ...grpc.CallOption) (Diff_CommitDeltaClient, error) -} - -type diffClient struct { - cc *grpc.ClientConn -} - -func NewDiffClient(cc *grpc.ClientConn) DiffClient { - return &diffClient{cc} -} - -func (c *diffClient) CommitDiff(ctx context.Context, in *CommitDiffRequest, opts ...grpc.CallOption) (Diff_CommitDiffClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Diff_serviceDesc.Streams[0], c.cc, "/gitaly.Diff/CommitDiff", opts...) - if err != nil { - return nil, err - } - x := &diffCommitDiffClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Diff_CommitDiffClient interface { - Recv() (*CommitDiffResponse, error) - grpc.ClientStream -} - -type diffCommitDiffClient struct { - grpc.ClientStream -} - -func (x *diffCommitDiffClient) Recv() (*CommitDiffResponse, error) { - m := new(CommitDiffResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *diffClient) CommitDelta(ctx context.Context, in *CommitDeltaRequest, opts ...grpc.CallOption) (Diff_CommitDeltaClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Diff_serviceDesc.Streams[1], c.cc, "/gitaly.Diff/CommitDelta", opts...) - if err != nil { - return nil, err - } - x := &diffCommitDeltaClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Diff_CommitDeltaClient interface { - Recv() (*CommitDeltaResponse, error) - grpc.ClientStream -} - -type diffCommitDeltaClient struct { - grpc.ClientStream -} - -func (x *diffCommitDeltaClient) Recv() (*CommitDeltaResponse, error) { - m := new(CommitDeltaResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Server API for Diff service - -type DiffServer interface { - // Returns stream of CommitDiffResponse with patches chunked over messages - CommitDiff(*CommitDiffRequest, Diff_CommitDiffServer) error - // Return a stream so we can divide the response in chunks of deltas - CommitDelta(*CommitDeltaRequest, Diff_CommitDeltaServer) error -} - -func RegisterDiffServer(s *grpc.Server, srv DiffServer) { - s.RegisterService(&_Diff_serviceDesc, srv) -} - -func _Diff_CommitDiff_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(CommitDiffRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(DiffServer).CommitDiff(m, &diffCommitDiffServer{stream}) -} - -type Diff_CommitDiffServer interface { - Send(*CommitDiffResponse) error - grpc.ServerStream -} - -type diffCommitDiffServer struct { - grpc.ServerStream -} - -func (x *diffCommitDiffServer) Send(m *CommitDiffResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _Diff_CommitDelta_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(CommitDeltaRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(DiffServer).CommitDelta(m, &diffCommitDeltaServer{stream}) -} - -type Diff_CommitDeltaServer interface { - Send(*CommitDeltaResponse) error - grpc.ServerStream -} - -type diffCommitDeltaServer struct { - grpc.ServerStream -} - -func (x *diffCommitDeltaServer) Send(m *CommitDeltaResponse) error { - return x.ServerStream.SendMsg(m) -} - -var _Diff_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.Diff", - HandlerType: (*DiffServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "CommitDiff", - Handler: _Diff_CommitDiff_Handler, - ServerStreams: true, - }, - { - StreamName: "CommitDelta", - Handler: _Diff_CommitDelta_Handler, - ServerStreams: true, - }, - }, - Metadata: "deprecated-services.proto", -} - -// Client API for Notifications service - -type NotificationsClient interface { - PostReceive(ctx context.Context, in *PostReceiveRequest, opts ...grpc.CallOption) (*PostReceiveResponse, error) -} - -type notificationsClient struct { - cc *grpc.ClientConn -} - -func NewNotificationsClient(cc *grpc.ClientConn) NotificationsClient { - return ¬ificationsClient{cc} -} - -func (c *notificationsClient) PostReceive(ctx context.Context, in *PostReceiveRequest, opts ...grpc.CallOption) (*PostReceiveResponse, error) { - out := new(PostReceiveResponse) - err := grpc.Invoke(ctx, "/gitaly.Notifications/PostReceive", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for Notifications service - -type NotificationsServer interface { - PostReceive(context.Context, *PostReceiveRequest) (*PostReceiveResponse, error) -} - -func RegisterNotificationsServer(s *grpc.Server, srv NotificationsServer) { - s.RegisterService(&_Notifications_serviceDesc, srv) -} - -func _Notifications_PostReceive_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PostReceiveRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(NotificationsServer).PostReceive(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.Notifications/PostReceive", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NotificationsServer).PostReceive(ctx, req.(*PostReceiveRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Notifications_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.Notifications", - HandlerType: (*NotificationsServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "PostReceive", - Handler: _Notifications_PostReceive_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "deprecated-services.proto", -} - -// Client API for Ref service - -type RefClient interface { - FindDefaultBranchName(ctx context.Context, in *FindDefaultBranchNameRequest, opts ...grpc.CallOption) (*FindDefaultBranchNameResponse, error) - FindAllBranchNames(ctx context.Context, in *FindAllBranchNamesRequest, opts ...grpc.CallOption) (Ref_FindAllBranchNamesClient, error) - FindAllTagNames(ctx context.Context, in *FindAllTagNamesRequest, opts ...grpc.CallOption) (Ref_FindAllTagNamesClient, error) - // Find a Ref matching the given constraints. Response may be empty. - FindRefName(ctx context.Context, in *FindRefNameRequest, opts ...grpc.CallOption) (*FindRefNameResponse, error) - // Return a stream so we can divide the response in chunks of branches - FindLocalBranches(ctx context.Context, in *FindLocalBranchesRequest, opts ...grpc.CallOption) (Ref_FindLocalBranchesClient, error) -} - -type refClient struct { - cc *grpc.ClientConn -} - -func NewRefClient(cc *grpc.ClientConn) RefClient { - return &refClient{cc} -} - -func (c *refClient) FindDefaultBranchName(ctx context.Context, in *FindDefaultBranchNameRequest, opts ...grpc.CallOption) (*FindDefaultBranchNameResponse, error) { - out := new(FindDefaultBranchNameResponse) - err := grpc.Invoke(ctx, "/gitaly.Ref/FindDefaultBranchName", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *refClient) FindAllBranchNames(ctx context.Context, in *FindAllBranchNamesRequest, opts ...grpc.CallOption) (Ref_FindAllBranchNamesClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Ref_serviceDesc.Streams[0], c.cc, "/gitaly.Ref/FindAllBranchNames", opts...) - if err != nil { - return nil, err - } - x := &refFindAllBranchNamesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Ref_FindAllBranchNamesClient interface { - Recv() (*FindAllBranchNamesResponse, error) - grpc.ClientStream -} - -type refFindAllBranchNamesClient struct { - grpc.ClientStream -} - -func (x *refFindAllBranchNamesClient) Recv() (*FindAllBranchNamesResponse, error) { - m := new(FindAllBranchNamesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *refClient) FindAllTagNames(ctx context.Context, in *FindAllTagNamesRequest, opts ...grpc.CallOption) (Ref_FindAllTagNamesClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Ref_serviceDesc.Streams[1], c.cc, "/gitaly.Ref/FindAllTagNames", opts...) - if err != nil { - return nil, err - } - x := &refFindAllTagNamesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Ref_FindAllTagNamesClient interface { - Recv() (*FindAllTagNamesResponse, error) - grpc.ClientStream -} - -type refFindAllTagNamesClient struct { - grpc.ClientStream -} - -func (x *refFindAllTagNamesClient) Recv() (*FindAllTagNamesResponse, error) { - m := new(FindAllTagNamesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *refClient) FindRefName(ctx context.Context, in *FindRefNameRequest, opts ...grpc.CallOption) (*FindRefNameResponse, error) { - out := new(FindRefNameResponse) - err := grpc.Invoke(ctx, "/gitaly.Ref/FindRefName", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *refClient) FindLocalBranches(ctx context.Context, in *FindLocalBranchesRequest, opts ...grpc.CallOption) (Ref_FindLocalBranchesClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Ref_serviceDesc.Streams[2], c.cc, "/gitaly.Ref/FindLocalBranches", opts...) - if err != nil { - return nil, err - } - x := &refFindLocalBranchesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Ref_FindLocalBranchesClient interface { - Recv() (*FindLocalBranchesResponse, error) - grpc.ClientStream -} - -type refFindLocalBranchesClient struct { - grpc.ClientStream -} - -func (x *refFindLocalBranchesClient) Recv() (*FindLocalBranchesResponse, error) { - m := new(FindLocalBranchesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Server API for Ref service - -type RefServer interface { - FindDefaultBranchName(context.Context, *FindDefaultBranchNameRequest) (*FindDefaultBranchNameResponse, error) - FindAllBranchNames(*FindAllBranchNamesRequest, Ref_FindAllBranchNamesServer) error - FindAllTagNames(*FindAllTagNamesRequest, Ref_FindAllTagNamesServer) error - // Find a Ref matching the given constraints. Response may be empty. - FindRefName(context.Context, *FindRefNameRequest) (*FindRefNameResponse, error) - // Return a stream so we can divide the response in chunks of branches - FindLocalBranches(*FindLocalBranchesRequest, Ref_FindLocalBranchesServer) error -} - -func RegisterRefServer(s *grpc.Server, srv RefServer) { - s.RegisterService(&_Ref_serviceDesc, srv) -} - -func _Ref_FindDefaultBranchName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindDefaultBranchNameRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RefServer).FindDefaultBranchName(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.Ref/FindDefaultBranchName", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RefServer).FindDefaultBranchName(ctx, req.(*FindDefaultBranchNameRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Ref_FindAllBranchNames_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(FindAllBranchNamesRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(RefServer).FindAllBranchNames(m, &refFindAllBranchNamesServer{stream}) -} - -type Ref_FindAllBranchNamesServer interface { - Send(*FindAllBranchNamesResponse) error - grpc.ServerStream -} - -type refFindAllBranchNamesServer struct { - grpc.ServerStream -} - -func (x *refFindAllBranchNamesServer) Send(m *FindAllBranchNamesResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _Ref_FindAllTagNames_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(FindAllTagNamesRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(RefServer).FindAllTagNames(m, &refFindAllTagNamesServer{stream}) -} - -type Ref_FindAllTagNamesServer interface { - Send(*FindAllTagNamesResponse) error - grpc.ServerStream -} - -type refFindAllTagNamesServer struct { - grpc.ServerStream -} - -func (x *refFindAllTagNamesServer) Send(m *FindAllTagNamesResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _Ref_FindRefName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindRefNameRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RefServer).FindRefName(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.Ref/FindRefName", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RefServer).FindRefName(ctx, req.(*FindRefNameRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Ref_FindLocalBranches_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(FindLocalBranchesRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(RefServer).FindLocalBranches(m, &refFindLocalBranchesServer{stream}) -} - -type Ref_FindLocalBranchesServer interface { - Send(*FindLocalBranchesResponse) error - grpc.ServerStream -} - -type refFindLocalBranchesServer struct { - grpc.ServerStream -} - -func (x *refFindLocalBranchesServer) Send(m *FindLocalBranchesResponse) error { - return x.ServerStream.SendMsg(m) -} - -var _Ref_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.Ref", - HandlerType: (*RefServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "FindDefaultBranchName", - Handler: _Ref_FindDefaultBranchName_Handler, - }, - { - MethodName: "FindRefName", - Handler: _Ref_FindRefName_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "FindAllBranchNames", - Handler: _Ref_FindAllBranchNames_Handler, - ServerStreams: true, - }, - { - StreamName: "FindAllTagNames", - Handler: _Ref_FindAllTagNames_Handler, - ServerStreams: true, - }, - { - StreamName: "FindLocalBranches", - Handler: _Ref_FindLocalBranches_Handler, - ServerStreams: true, - }, - }, - Metadata: "deprecated-services.proto", -} - -// Client API for SmartHTTP service - -type SmartHTTPClient interface { - // The response body for GET /info/refs?service=git-upload-pack - InfoRefsUploadPack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTP_InfoRefsUploadPackClient, error) - // The response body for GET /info/refs?service=git-receive-pack - InfoRefsReceivePack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTP_InfoRefsReceivePackClient, error) - // Request and response body for POST /upload-pack - PostUploadPack(ctx context.Context, opts ...grpc.CallOption) (SmartHTTP_PostUploadPackClient, error) - // Request and response body for POST /receive-pack - PostReceivePack(ctx context.Context, opts ...grpc.CallOption) (SmartHTTP_PostReceivePackClient, error) -} - -type smartHTTPClient struct { - cc *grpc.ClientConn -} - -func NewSmartHTTPClient(cc *grpc.ClientConn) SmartHTTPClient { - return &smartHTTPClient{cc} -} - -func (c *smartHTTPClient) InfoRefsUploadPack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTP_InfoRefsUploadPackClient, error) { - stream, err := grpc.NewClientStream(ctx, &_SmartHTTP_serviceDesc.Streams[0], c.cc, "/gitaly.SmartHTTP/InfoRefsUploadPack", opts...) - if err != nil { - return nil, err - } - x := &smartHTTPInfoRefsUploadPackClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type SmartHTTP_InfoRefsUploadPackClient interface { - Recv() (*InfoRefsResponse, error) - grpc.ClientStream -} - -type smartHTTPInfoRefsUploadPackClient struct { - grpc.ClientStream -} - -func (x *smartHTTPInfoRefsUploadPackClient) Recv() (*InfoRefsResponse, error) { - m := new(InfoRefsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *smartHTTPClient) InfoRefsReceivePack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTP_InfoRefsReceivePackClient, error) { - stream, err := grpc.NewClientStream(ctx, &_SmartHTTP_serviceDesc.Streams[1], c.cc, "/gitaly.SmartHTTP/InfoRefsReceivePack", opts...) - if err != nil { - return nil, err - } - x := &smartHTTPInfoRefsReceivePackClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type SmartHTTP_InfoRefsReceivePackClient interface { - Recv() (*InfoRefsResponse, error) - grpc.ClientStream -} - -type smartHTTPInfoRefsReceivePackClient struct { - grpc.ClientStream -} - -func (x *smartHTTPInfoRefsReceivePackClient) Recv() (*InfoRefsResponse, error) { - m := new(InfoRefsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *smartHTTPClient) PostUploadPack(ctx context.Context, opts ...grpc.CallOption) (SmartHTTP_PostUploadPackClient, error) { - stream, err := grpc.NewClientStream(ctx, &_SmartHTTP_serviceDesc.Streams[2], c.cc, "/gitaly.SmartHTTP/PostUploadPack", opts...) - if err != nil { - return nil, err - } - x := &smartHTTPPostUploadPackClient{stream} - return x, nil -} - -type SmartHTTP_PostUploadPackClient interface { - Send(*PostUploadPackRequest) error - Recv() (*PostUploadPackResponse, error) - grpc.ClientStream -} - -type smartHTTPPostUploadPackClient struct { - grpc.ClientStream -} - -func (x *smartHTTPPostUploadPackClient) Send(m *PostUploadPackRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *smartHTTPPostUploadPackClient) Recv() (*PostUploadPackResponse, error) { - m := new(PostUploadPackResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *smartHTTPClient) PostReceivePack(ctx context.Context, opts ...grpc.CallOption) (SmartHTTP_PostReceivePackClient, error) { - stream, err := grpc.NewClientStream(ctx, &_SmartHTTP_serviceDesc.Streams[3], c.cc, "/gitaly.SmartHTTP/PostReceivePack", opts...) - if err != nil { - return nil, err - } - x := &smartHTTPPostReceivePackClient{stream} - return x, nil -} - -type SmartHTTP_PostReceivePackClient interface { - Send(*PostReceivePackRequest) error - Recv() (*PostReceivePackResponse, error) - grpc.ClientStream -} - -type smartHTTPPostReceivePackClient struct { - grpc.ClientStream -} - -func (x *smartHTTPPostReceivePackClient) Send(m *PostReceivePackRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *smartHTTPPostReceivePackClient) Recv() (*PostReceivePackResponse, error) { - m := new(PostReceivePackResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Server API for SmartHTTP service - -type SmartHTTPServer interface { - // The response body for GET /info/refs?service=git-upload-pack - InfoRefsUploadPack(*InfoRefsRequest, SmartHTTP_InfoRefsUploadPackServer) error - // The response body for GET /info/refs?service=git-receive-pack - InfoRefsReceivePack(*InfoRefsRequest, SmartHTTP_InfoRefsReceivePackServer) error - // Request and response body for POST /upload-pack - PostUploadPack(SmartHTTP_PostUploadPackServer) error - // Request and response body for POST /receive-pack - PostReceivePack(SmartHTTP_PostReceivePackServer) error -} - -func RegisterSmartHTTPServer(s *grpc.Server, srv SmartHTTPServer) { - s.RegisterService(&_SmartHTTP_serviceDesc, srv) -} - -func _SmartHTTP_InfoRefsUploadPack_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(InfoRefsRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(SmartHTTPServer).InfoRefsUploadPack(m, &smartHTTPInfoRefsUploadPackServer{stream}) -} - -type SmartHTTP_InfoRefsUploadPackServer interface { - Send(*InfoRefsResponse) error - grpc.ServerStream -} - -type smartHTTPInfoRefsUploadPackServer struct { - grpc.ServerStream -} - -func (x *smartHTTPInfoRefsUploadPackServer) Send(m *InfoRefsResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _SmartHTTP_InfoRefsReceivePack_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(InfoRefsRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(SmartHTTPServer).InfoRefsReceivePack(m, &smartHTTPInfoRefsReceivePackServer{stream}) -} - -type SmartHTTP_InfoRefsReceivePackServer interface { - Send(*InfoRefsResponse) error - grpc.ServerStream -} - -type smartHTTPInfoRefsReceivePackServer struct { - grpc.ServerStream -} - -func (x *smartHTTPInfoRefsReceivePackServer) Send(m *InfoRefsResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _SmartHTTP_PostUploadPack_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(SmartHTTPServer).PostUploadPack(&smartHTTPPostUploadPackServer{stream}) -} - -type SmartHTTP_PostUploadPackServer interface { - Send(*PostUploadPackResponse) error - Recv() (*PostUploadPackRequest, error) - grpc.ServerStream -} - -type smartHTTPPostUploadPackServer struct { - grpc.ServerStream -} - -func (x *smartHTTPPostUploadPackServer) Send(m *PostUploadPackResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *smartHTTPPostUploadPackServer) Recv() (*PostUploadPackRequest, error) { - m := new(PostUploadPackRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _SmartHTTP_PostReceivePack_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(SmartHTTPServer).PostReceivePack(&smartHTTPPostReceivePackServer{stream}) -} - -type SmartHTTP_PostReceivePackServer interface { - Send(*PostReceivePackResponse) error - Recv() (*PostReceivePackRequest, error) - grpc.ServerStream -} - -type smartHTTPPostReceivePackServer struct { - grpc.ServerStream -} - -func (x *smartHTTPPostReceivePackServer) Send(m *PostReceivePackResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *smartHTTPPostReceivePackServer) Recv() (*PostReceivePackRequest, error) { - m := new(PostReceivePackRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -var _SmartHTTP_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.SmartHTTP", - HandlerType: (*SmartHTTPServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "InfoRefsUploadPack", - Handler: _SmartHTTP_InfoRefsUploadPack_Handler, - ServerStreams: true, - }, - { - StreamName: "InfoRefsReceivePack", - Handler: _SmartHTTP_InfoRefsReceivePack_Handler, - ServerStreams: true, - }, - { - StreamName: "PostUploadPack", - Handler: _SmartHTTP_PostUploadPack_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "PostReceivePack", - Handler: _SmartHTTP_PostReceivePack_Handler, - ServerStreams: true, - ClientStreams: true, - }, - }, - Metadata: "deprecated-services.proto", -} - -// Client API for SSH service - -type SSHClient interface { - // To forward 'git upload-pack' to Gitaly for SSH sessions - SSHUploadPack(ctx context.Context, opts ...grpc.CallOption) (SSH_SSHUploadPackClient, error) - // To forward 'git receive-pack' to Gitaly for SSH sessions - SSHReceivePack(ctx context.Context, opts ...grpc.CallOption) (SSH_SSHReceivePackClient, error) -} - -type sSHClient struct { - cc *grpc.ClientConn -} - -func NewSSHClient(cc *grpc.ClientConn) SSHClient { - return &sSHClient{cc} -} - -func (c *sSHClient) SSHUploadPack(ctx context.Context, opts ...grpc.CallOption) (SSH_SSHUploadPackClient, error) { - stream, err := grpc.NewClientStream(ctx, &_SSH_serviceDesc.Streams[0], c.cc, "/gitaly.SSH/SSHUploadPack", opts...) - if err != nil { - return nil, err - } - x := &sSHSSHUploadPackClient{stream} - return x, nil -} - -type SSH_SSHUploadPackClient interface { - Send(*SSHUploadPackRequest) error - Recv() (*SSHUploadPackResponse, error) - grpc.ClientStream -} - -type sSHSSHUploadPackClient struct { - grpc.ClientStream -} - -func (x *sSHSSHUploadPackClient) Send(m *SSHUploadPackRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *sSHSSHUploadPackClient) Recv() (*SSHUploadPackResponse, error) { - m := new(SSHUploadPackResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *sSHClient) SSHReceivePack(ctx context.Context, opts ...grpc.CallOption) (SSH_SSHReceivePackClient, error) { - stream, err := grpc.NewClientStream(ctx, &_SSH_serviceDesc.Streams[1], c.cc, "/gitaly.SSH/SSHReceivePack", opts...) - if err != nil { - return nil, err - } - x := &sSHSSHReceivePackClient{stream} - return x, nil -} - -type SSH_SSHReceivePackClient interface { - Send(*SSHReceivePackRequest) error - Recv() (*SSHReceivePackResponse, error) - grpc.ClientStream -} - -type sSHSSHReceivePackClient struct { - grpc.ClientStream -} - -func (x *sSHSSHReceivePackClient) Send(m *SSHReceivePackRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *sSHSSHReceivePackClient) Recv() (*SSHReceivePackResponse, error) { - m := new(SSHReceivePackResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Server API for SSH service - -type SSHServer interface { - // To forward 'git upload-pack' to Gitaly for SSH sessions - SSHUploadPack(SSH_SSHUploadPackServer) error - // To forward 'git receive-pack' to Gitaly for SSH sessions - SSHReceivePack(SSH_SSHReceivePackServer) error -} - -func RegisterSSHServer(s *grpc.Server, srv SSHServer) { - s.RegisterService(&_SSH_serviceDesc, srv) -} - -func _SSH_SSHUploadPack_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(SSHServer).SSHUploadPack(&sSHSSHUploadPackServer{stream}) -} - -type SSH_SSHUploadPackServer interface { - Send(*SSHUploadPackResponse) error - Recv() (*SSHUploadPackRequest, error) - grpc.ServerStream -} - -type sSHSSHUploadPackServer struct { - grpc.ServerStream -} - -func (x *sSHSSHUploadPackServer) Send(m *SSHUploadPackResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *sSHSSHUploadPackServer) Recv() (*SSHUploadPackRequest, error) { - m := new(SSHUploadPackRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _SSH_SSHReceivePack_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(SSHServer).SSHReceivePack(&sSHSSHReceivePackServer{stream}) -} - -type SSH_SSHReceivePackServer interface { - Send(*SSHReceivePackResponse) error - Recv() (*SSHReceivePackRequest, error) - grpc.ServerStream -} - -type sSHSSHReceivePackServer struct { - grpc.ServerStream -} - -func (x *sSHSSHReceivePackServer) Send(m *SSHReceivePackResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *sSHSSHReceivePackServer) Recv() (*SSHReceivePackRequest, error) { - m := new(SSHReceivePackRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -var _SSH_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.SSH", - HandlerType: (*SSHServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "SSHUploadPack", - Handler: _SSH_SSHUploadPack_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "SSHReceivePack", - Handler: _SSH_SSHReceivePack_Handler, - ServerStreams: true, - ClientStreams: true, - }, - }, - Metadata: "deprecated-services.proto", -} - -func init() { proto.RegisterFile("deprecated-services.proto", fileDescriptor3) } - -var fileDescriptor3 = []byte{ - // 534 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0x5d, 0x6e, 0xd3, 0x40, - 0x10, 0x80, 0x31, 0x41, 0x91, 0x32, 0xa1, 0x0d, 0x6c, 0x85, 0x68, 0x0c, 0x4d, 0xda, 0x0a, 0x24, - 0x5e, 0x88, 0xaa, 0x70, 0x82, 0x42, 0x00, 0x17, 0xaa, 0x2a, 0xb2, 0x13, 0x7e, 0x24, 0x24, 0xb4, - 0x38, 0xb3, 0x8d, 0x85, 0xe3, 0x0d, 0xde, 0x6d, 0xa5, 0x9e, 0x85, 0x03, 0xf0, 0xca, 0x49, 0x78, - 0xe5, 0x3a, 0xc8, 0x3f, 0x13, 0xaf, 0x13, 0xbb, 0x3c, 0xf4, 0x6d, 0x33, 0xdf, 0xcc, 0xb7, 0x93, - 0xf1, 0xd8, 0xd0, 0x9d, 0xe1, 0x32, 0x46, 0x9f, 0x6b, 0x9c, 0x3d, 0x57, 0x18, 0x5f, 0x06, 0x3e, - 0xaa, 0xc1, 0x32, 0x96, 0x5a, 0xb2, 0xe6, 0x79, 0xa0, 0x79, 0x78, 0x65, 0xdf, 0xf5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, 0xe1, 0x6f, 0x0b, 0x1a, - 0x9e, 0xe7, 0x30, 0x17, 0xb6, 0x3c, 0xcf, 0x31, 0xfa, 0x7e, 0x4c, 0xf5, 0xa5, 0x30, 0xd9, 0xf7, - 0x6a, 0x68, 0xa9, 0xeb, 0x29, 0x6c, 0x7b, 0x9e, 0x63, 0x36, 0x6d, 0x96, 0x55, 0xf4, 0xdc, 0xab, - 0xc3, 0xa6, 0xf6, 0x5b, 0x33, 0xfd, 0x0e, 0xbf, 0xf8, 0x17, 0x00, 0x00, 0xff, 0xff, 0x79, 0x83, - 0xb6, 0xb0, 0x02, 0x06, 0x00, 0x00, -} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/diff.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/diff.pb.go deleted file mode 100644 index a9a6231..0000000 --- a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/diff.pb.go +++ /dev/null @@ -1,1037 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: diff.proto - -package gitaly - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -type CommitDiffRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId" json:"left_commit_id,omitempty"` - RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId" json:"right_commit_id,omitempty"` - IgnoreWhitespaceChange bool `protobuf:"varint,4,opt,name=ignore_whitespace_change,json=ignoreWhitespaceChange" json:"ignore_whitespace_change,omitempty"` - Paths [][]byte `protobuf:"bytes,5,rep,name=paths,proto3" json:"paths,omitempty"` - CollapseDiffs bool `protobuf:"varint,6,opt,name=collapse_diffs,json=collapseDiffs" json:"collapse_diffs,omitempty"` - EnforceLimits bool `protobuf:"varint,7,opt,name=enforce_limits,json=enforceLimits" json:"enforce_limits,omitempty"` - MaxFiles int32 `protobuf:"varint,8,opt,name=max_files,json=maxFiles" json:"max_files,omitempty"` - MaxLines int32 `protobuf:"varint,9,opt,name=max_lines,json=maxLines" json:"max_lines,omitempty"` - MaxBytes int32 `protobuf:"varint,10,opt,name=max_bytes,json=maxBytes" json:"max_bytes,omitempty"` - SafeMaxFiles int32 `protobuf:"varint,11,opt,name=safe_max_files,json=safeMaxFiles" json:"safe_max_files,omitempty"` - SafeMaxLines int32 `protobuf:"varint,12,opt,name=safe_max_lines,json=safeMaxLines" json:"safe_max_lines,omitempty"` - SafeMaxBytes int32 `protobuf:"varint,13,opt,name=safe_max_bytes,json=safeMaxBytes" json:"safe_max_bytes,omitempty"` -} - -func (m *CommitDiffRequest) Reset() { *m = CommitDiffRequest{} } -func (m *CommitDiffRequest) String() string { return proto.CompactTextString(m) } -func (*CommitDiffRequest) ProtoMessage() {} -func (*CommitDiffRequest) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0} } - -func (m *CommitDiffRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *CommitDiffRequest) GetLeftCommitId() string { - if m != nil { - return m.LeftCommitId - } - return "" -} - -func (m *CommitDiffRequest) GetRightCommitId() string { - if m != nil { - return m.RightCommitId - } - return "" -} - -func (m *CommitDiffRequest) GetIgnoreWhitespaceChange() bool { - if m != nil { - return m.IgnoreWhitespaceChange - } - return false -} - -func (m *CommitDiffRequest) GetPaths() [][]byte { - if m != nil { - return m.Paths - } - return nil -} - -func (m *CommitDiffRequest) GetCollapseDiffs() bool { - if m != nil { - return m.CollapseDiffs - } - return false -} - -func (m *CommitDiffRequest) GetEnforceLimits() bool { - if m != nil { - return m.EnforceLimits - } - return false -} - -func (m *CommitDiffRequest) GetMaxFiles() int32 { - if m != nil { - return m.MaxFiles - } - return 0 -} - -func (m *CommitDiffRequest) GetMaxLines() int32 { - if m != nil { - return m.MaxLines - } - return 0 -} - -func (m *CommitDiffRequest) GetMaxBytes() int32 { - if m != nil { - return m.MaxBytes - } - return 0 -} - -func (m *CommitDiffRequest) GetSafeMaxFiles() int32 { - if m != nil { - return m.SafeMaxFiles - } - return 0 -} - -func (m *CommitDiffRequest) GetSafeMaxLines() int32 { - if m != nil { - return m.SafeMaxLines - } - return 0 -} - -func (m *CommitDiffRequest) GetSafeMaxBytes() int32 { - if m != nil { - return m.SafeMaxBytes - } - return 0 -} - -// A CommitDiffResponse corresponds to a single changed file in a commit. -type CommitDiffResponse struct { - FromPath []byte `protobuf:"bytes,1,opt,name=from_path,json=fromPath,proto3" json:"from_path,omitempty"` - ToPath []byte `protobuf:"bytes,2,opt,name=to_path,json=toPath,proto3" json:"to_path,omitempty"` - // Blob ID as returned via `git diff --full-index` - FromId string `protobuf:"bytes,3,opt,name=from_id,json=fromId" json:"from_id,omitempty"` - ToId string `protobuf:"bytes,4,opt,name=to_id,json=toId" json:"to_id,omitempty"` - OldMode int32 `protobuf:"varint,5,opt,name=old_mode,json=oldMode" json:"old_mode,omitempty"` - NewMode int32 `protobuf:"varint,6,opt,name=new_mode,json=newMode" json:"new_mode,omitempty"` - Binary bool `protobuf:"varint,7,opt,name=binary" json:"binary,omitempty"` - RawPatchData []byte `protobuf:"bytes,9,opt,name=raw_patch_data,json=rawPatchData,proto3" json:"raw_patch_data,omitempty"` - EndOfPatch bool `protobuf:"varint,10,opt,name=end_of_patch,json=endOfPatch" json:"end_of_patch,omitempty"` - // Indicates the diff file at which we overflow according to the limitations sent, - // in which case only this attribute will be set. - OverflowMarker bool `protobuf:"varint,11,opt,name=overflow_marker,json=overflowMarker" json:"overflow_marker,omitempty"` - Collapsed bool `protobuf:"varint,12,opt,name=collapsed" json:"collapsed,omitempty"` -} - -func (m *CommitDiffResponse) Reset() { *m = CommitDiffResponse{} } -func (m *CommitDiffResponse) String() string { return proto.CompactTextString(m) } -func (*CommitDiffResponse) ProtoMessage() {} -func (*CommitDiffResponse) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{1} } - -func (m *CommitDiffResponse) GetFromPath() []byte { - if m != nil { - return m.FromPath - } - return nil -} - -func (m *CommitDiffResponse) GetToPath() []byte { - if m != nil { - return m.ToPath - } - return nil -} - -func (m *CommitDiffResponse) GetFromId() string { - if m != nil { - return m.FromId - } - return "" -} - -func (m *CommitDiffResponse) GetToId() string { - if m != nil { - return m.ToId - } - return "" -} - -func (m *CommitDiffResponse) GetOldMode() int32 { - if m != nil { - return m.OldMode - } - return 0 -} - -func (m *CommitDiffResponse) GetNewMode() int32 { - if m != nil { - return m.NewMode - } - return 0 -} - -func (m *CommitDiffResponse) GetBinary() bool { - if m != nil { - return m.Binary - } - return false -} - -func (m *CommitDiffResponse) GetRawPatchData() []byte { - if m != nil { - return m.RawPatchData - } - return nil -} - -func (m *CommitDiffResponse) GetEndOfPatch() bool { - if m != nil { - return m.EndOfPatch - } - return false -} - -func (m *CommitDiffResponse) GetOverflowMarker() bool { - if m != nil { - return m.OverflowMarker - } - return false -} - -func (m *CommitDiffResponse) GetCollapsed() bool { - if m != nil { - return m.Collapsed - } - return false -} - -type CommitDeltaRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId" json:"left_commit_id,omitempty"` - RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId" json:"right_commit_id,omitempty"` - Paths [][]byte `protobuf:"bytes,4,rep,name=paths,proto3" json:"paths,omitempty"` -} - -func (m *CommitDeltaRequest) Reset() { *m = CommitDeltaRequest{} } -func (m *CommitDeltaRequest) String() string { return proto.CompactTextString(m) } -func (*CommitDeltaRequest) ProtoMessage() {} -func (*CommitDeltaRequest) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{2} } - -func (m *CommitDeltaRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *CommitDeltaRequest) GetLeftCommitId() string { - if m != nil { - return m.LeftCommitId - } - return "" -} - -func (m *CommitDeltaRequest) GetRightCommitId() string { - if m != nil { - return m.RightCommitId - } - return "" -} - -func (m *CommitDeltaRequest) GetPaths() [][]byte { - if m != nil { - return m.Paths - } - return nil -} - -type CommitDelta struct { - FromPath []byte `protobuf:"bytes,1,opt,name=from_path,json=fromPath,proto3" json:"from_path,omitempty"` - ToPath []byte `protobuf:"bytes,2,opt,name=to_path,json=toPath,proto3" json:"to_path,omitempty"` - // Blob ID as returned via `git diff --full-index` - FromId string `protobuf:"bytes,3,opt,name=from_id,json=fromId" json:"from_id,omitempty"` - ToId string `protobuf:"bytes,4,opt,name=to_id,json=toId" json:"to_id,omitempty"` - OldMode int32 `protobuf:"varint,5,opt,name=old_mode,json=oldMode" json:"old_mode,omitempty"` - NewMode int32 `protobuf:"varint,6,opt,name=new_mode,json=newMode" json:"new_mode,omitempty"` -} - -func (m *CommitDelta) Reset() { *m = CommitDelta{} } -func (m *CommitDelta) String() string { return proto.CompactTextString(m) } -func (*CommitDelta) ProtoMessage() {} -func (*CommitDelta) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{3} } - -func (m *CommitDelta) GetFromPath() []byte { - if m != nil { - return m.FromPath - } - return nil -} - -func (m *CommitDelta) GetToPath() []byte { - if m != nil { - return m.ToPath - } - return nil -} - -func (m *CommitDelta) GetFromId() string { - if m != nil { - return m.FromId - } - return "" -} - -func (m *CommitDelta) GetToId() string { - if m != nil { - return m.ToId - } - return "" -} - -func (m *CommitDelta) GetOldMode() int32 { - if m != nil { - return m.OldMode - } - return 0 -} - -func (m *CommitDelta) GetNewMode() int32 { - if m != nil { - return m.NewMode - } - return 0 -} - -type CommitDeltaResponse struct { - Deltas []*CommitDelta `protobuf:"bytes,1,rep,name=deltas" json:"deltas,omitempty"` -} - -func (m *CommitDeltaResponse) Reset() { *m = CommitDeltaResponse{} } -func (m *CommitDeltaResponse) String() string { return proto.CompactTextString(m) } -func (*CommitDeltaResponse) ProtoMessage() {} -func (*CommitDeltaResponse) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{4} } - -func (m *CommitDeltaResponse) GetDeltas() []*CommitDelta { - if m != nil { - return m.Deltas - } - return nil -} - -type CommitPatchRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` -} - -func (m *CommitPatchRequest) Reset() { *m = CommitPatchRequest{} } -func (m *CommitPatchRequest) String() string { return proto.CompactTextString(m) } -func (*CommitPatchRequest) ProtoMessage() {} -func (*CommitPatchRequest) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{5} } - -func (m *CommitPatchRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *CommitPatchRequest) GetRevision() []byte { - if m != nil { - return m.Revision - } - return nil -} - -type CommitPatchResponse struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (m *CommitPatchResponse) Reset() { *m = CommitPatchResponse{} } -func (m *CommitPatchResponse) String() string { return proto.CompactTextString(m) } -func (*CommitPatchResponse) ProtoMessage() {} -func (*CommitPatchResponse) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{6} } - -func (m *CommitPatchResponse) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} - -type RawDiffRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId" json:"left_commit_id,omitempty"` - RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId" json:"right_commit_id,omitempty"` -} - -func (m *RawDiffRequest) Reset() { *m = RawDiffRequest{} } -func (m *RawDiffRequest) String() string { return proto.CompactTextString(m) } -func (*RawDiffRequest) ProtoMessage() {} -func (*RawDiffRequest) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{7} } - -func (m *RawDiffRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *RawDiffRequest) GetLeftCommitId() string { - if m != nil { - return m.LeftCommitId - } - return "" -} - -func (m *RawDiffRequest) GetRightCommitId() string { - if m != nil { - return m.RightCommitId - } - return "" -} - -type RawDiffResponse struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (m *RawDiffResponse) Reset() { *m = RawDiffResponse{} } -func (m *RawDiffResponse) String() string { return proto.CompactTextString(m) } -func (*RawDiffResponse) ProtoMessage() {} -func (*RawDiffResponse) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{8} } - -func (m *RawDiffResponse) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} - -type RawPatchRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId" json:"left_commit_id,omitempty"` - RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId" json:"right_commit_id,omitempty"` -} - -func (m *RawPatchRequest) Reset() { *m = RawPatchRequest{} } -func (m *RawPatchRequest) String() string { return proto.CompactTextString(m) } -func (*RawPatchRequest) ProtoMessage() {} -func (*RawPatchRequest) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{9} } - -func (m *RawPatchRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *RawPatchRequest) GetLeftCommitId() string { - if m != nil { - return m.LeftCommitId - } - return "" -} - -func (m *RawPatchRequest) GetRightCommitId() string { - if m != nil { - return m.RightCommitId - } - return "" -} - -type RawPatchResponse struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (m *RawPatchResponse) Reset() { *m = RawPatchResponse{} } -func (m *RawPatchResponse) String() string { return proto.CompactTextString(m) } -func (*RawPatchResponse) ProtoMessage() {} -func (*RawPatchResponse) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{10} } - -func (m *RawPatchResponse) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} - -type DiffStatsRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId" json:"left_commit_id,omitempty"` - RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId" json:"right_commit_id,omitempty"` -} - -func (m *DiffStatsRequest) Reset() { *m = DiffStatsRequest{} } -func (m *DiffStatsRequest) String() string { return proto.CompactTextString(m) } -func (*DiffStatsRequest) ProtoMessage() {} -func (*DiffStatsRequest) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{11} } - -func (m *DiffStatsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *DiffStatsRequest) GetLeftCommitId() string { - if m != nil { - return m.LeftCommitId - } - return "" -} - -func (m *DiffStatsRequest) GetRightCommitId() string { - if m != nil { - return m.RightCommitId - } - return "" -} - -type DiffStats struct { - Path []byte `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - Additions int32 `protobuf:"varint,2,opt,name=additions" json:"additions,omitempty"` - Deletions int32 `protobuf:"varint,3,opt,name=deletions" json:"deletions,omitempty"` -} - -func (m *DiffStats) Reset() { *m = DiffStats{} } -func (m *DiffStats) String() string { return proto.CompactTextString(m) } -func (*DiffStats) ProtoMessage() {} -func (*DiffStats) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{12} } - -func (m *DiffStats) GetPath() []byte { - if m != nil { - return m.Path - } - return nil -} - -func (m *DiffStats) GetAdditions() int32 { - if m != nil { - return m.Additions - } - return 0 -} - -func (m *DiffStats) GetDeletions() int32 { - if m != nil { - return m.Deletions - } - return 0 -} - -type DiffStatsResponse struct { - Stats []*DiffStats `protobuf:"bytes,1,rep,name=stats" json:"stats,omitempty"` -} - -func (m *DiffStatsResponse) Reset() { *m = DiffStatsResponse{} } -func (m *DiffStatsResponse) String() string { return proto.CompactTextString(m) } -func (*DiffStatsResponse) ProtoMessage() {} -func (*DiffStatsResponse) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{13} } - -func (m *DiffStatsResponse) GetStats() []*DiffStats { - if m != nil { - return m.Stats - } - return nil -} - -func init() { - proto.RegisterType((*CommitDiffRequest)(nil), "gitaly.CommitDiffRequest") - proto.RegisterType((*CommitDiffResponse)(nil), "gitaly.CommitDiffResponse") - proto.RegisterType((*CommitDeltaRequest)(nil), "gitaly.CommitDeltaRequest") - proto.RegisterType((*CommitDelta)(nil), "gitaly.CommitDelta") - proto.RegisterType((*CommitDeltaResponse)(nil), "gitaly.CommitDeltaResponse") - proto.RegisterType((*CommitPatchRequest)(nil), "gitaly.CommitPatchRequest") - proto.RegisterType((*CommitPatchResponse)(nil), "gitaly.CommitPatchResponse") - proto.RegisterType((*RawDiffRequest)(nil), "gitaly.RawDiffRequest") - proto.RegisterType((*RawDiffResponse)(nil), "gitaly.RawDiffResponse") - proto.RegisterType((*RawPatchRequest)(nil), "gitaly.RawPatchRequest") - proto.RegisterType((*RawPatchResponse)(nil), "gitaly.RawPatchResponse") - proto.RegisterType((*DiffStatsRequest)(nil), "gitaly.DiffStatsRequest") - proto.RegisterType((*DiffStats)(nil), "gitaly.DiffStats") - proto.RegisterType((*DiffStatsResponse)(nil), "gitaly.DiffStatsResponse") -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for DiffService service - -type DiffServiceClient interface { - // Returns stream of CommitDiffResponse with patches chunked over messages - CommitDiff(ctx context.Context, in *CommitDiffRequest, opts ...grpc.CallOption) (DiffService_CommitDiffClient, error) - // Return a stream so we can divide the response in chunks of deltas - CommitDelta(ctx context.Context, in *CommitDeltaRequest, opts ...grpc.CallOption) (DiffService_CommitDeltaClient, error) - CommitPatch(ctx context.Context, in *CommitPatchRequest, opts ...grpc.CallOption) (DiffService_CommitPatchClient, error) - RawDiff(ctx context.Context, in *RawDiffRequest, opts ...grpc.CallOption) (DiffService_RawDiffClient, error) - RawPatch(ctx context.Context, in *RawPatchRequest, opts ...grpc.CallOption) (DiffService_RawPatchClient, error) - DiffStats(ctx context.Context, in *DiffStatsRequest, opts ...grpc.CallOption) (DiffService_DiffStatsClient, error) -} - -type diffServiceClient struct { - cc *grpc.ClientConn -} - -func NewDiffServiceClient(cc *grpc.ClientConn) DiffServiceClient { - return &diffServiceClient{cc} -} - -func (c *diffServiceClient) CommitDiff(ctx context.Context, in *CommitDiffRequest, opts ...grpc.CallOption) (DiffService_CommitDiffClient, error) { - stream, err := grpc.NewClientStream(ctx, &_DiffService_serviceDesc.Streams[0], c.cc, "/gitaly.DiffService/CommitDiff", opts...) - if err != nil { - return nil, err - } - x := &diffServiceCommitDiffClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type DiffService_CommitDiffClient interface { - Recv() (*CommitDiffResponse, error) - grpc.ClientStream -} - -type diffServiceCommitDiffClient struct { - grpc.ClientStream -} - -func (x *diffServiceCommitDiffClient) Recv() (*CommitDiffResponse, error) { - m := new(CommitDiffResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *diffServiceClient) CommitDelta(ctx context.Context, in *CommitDeltaRequest, opts ...grpc.CallOption) (DiffService_CommitDeltaClient, error) { - stream, err := grpc.NewClientStream(ctx, &_DiffService_serviceDesc.Streams[1], c.cc, "/gitaly.DiffService/CommitDelta", opts...) - if err != nil { - return nil, err - } - x := &diffServiceCommitDeltaClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type DiffService_CommitDeltaClient interface { - Recv() (*CommitDeltaResponse, error) - grpc.ClientStream -} - -type diffServiceCommitDeltaClient struct { - grpc.ClientStream -} - -func (x *diffServiceCommitDeltaClient) Recv() (*CommitDeltaResponse, error) { - m := new(CommitDeltaResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *diffServiceClient) CommitPatch(ctx context.Context, in *CommitPatchRequest, opts ...grpc.CallOption) (DiffService_CommitPatchClient, error) { - stream, err := grpc.NewClientStream(ctx, &_DiffService_serviceDesc.Streams[2], c.cc, "/gitaly.DiffService/CommitPatch", opts...) - if err != nil { - return nil, err - } - x := &diffServiceCommitPatchClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type DiffService_CommitPatchClient interface { - Recv() (*CommitPatchResponse, error) - grpc.ClientStream -} - -type diffServiceCommitPatchClient struct { - grpc.ClientStream -} - -func (x *diffServiceCommitPatchClient) Recv() (*CommitPatchResponse, error) { - m := new(CommitPatchResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *diffServiceClient) RawDiff(ctx context.Context, in *RawDiffRequest, opts ...grpc.CallOption) (DiffService_RawDiffClient, error) { - stream, err := grpc.NewClientStream(ctx, &_DiffService_serviceDesc.Streams[3], c.cc, "/gitaly.DiffService/RawDiff", opts...) - if err != nil { - return nil, err - } - x := &diffServiceRawDiffClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type DiffService_RawDiffClient interface { - Recv() (*RawDiffResponse, error) - grpc.ClientStream -} - -type diffServiceRawDiffClient struct { - grpc.ClientStream -} - -func (x *diffServiceRawDiffClient) Recv() (*RawDiffResponse, error) { - m := new(RawDiffResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *diffServiceClient) RawPatch(ctx context.Context, in *RawPatchRequest, opts ...grpc.CallOption) (DiffService_RawPatchClient, error) { - stream, err := grpc.NewClientStream(ctx, &_DiffService_serviceDesc.Streams[4], c.cc, "/gitaly.DiffService/RawPatch", opts...) - if err != nil { - return nil, err - } - x := &diffServiceRawPatchClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type DiffService_RawPatchClient interface { - Recv() (*RawPatchResponse, error) - grpc.ClientStream -} - -type diffServiceRawPatchClient struct { - grpc.ClientStream -} - -func (x *diffServiceRawPatchClient) Recv() (*RawPatchResponse, error) { - m := new(RawPatchResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *diffServiceClient) DiffStats(ctx context.Context, in *DiffStatsRequest, opts ...grpc.CallOption) (DiffService_DiffStatsClient, error) { - stream, err := grpc.NewClientStream(ctx, &_DiffService_serviceDesc.Streams[5], c.cc, "/gitaly.DiffService/DiffStats", opts...) - if err != nil { - return nil, err - } - x := &diffServiceDiffStatsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type DiffService_DiffStatsClient interface { - Recv() (*DiffStatsResponse, error) - grpc.ClientStream -} - -type diffServiceDiffStatsClient struct { - grpc.ClientStream -} - -func (x *diffServiceDiffStatsClient) Recv() (*DiffStatsResponse, error) { - m := new(DiffStatsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Server API for DiffService service - -type DiffServiceServer interface { - // Returns stream of CommitDiffResponse with patches chunked over messages - CommitDiff(*CommitDiffRequest, DiffService_CommitDiffServer) error - // Return a stream so we can divide the response in chunks of deltas - CommitDelta(*CommitDeltaRequest, DiffService_CommitDeltaServer) error - CommitPatch(*CommitPatchRequest, DiffService_CommitPatchServer) error - RawDiff(*RawDiffRequest, DiffService_RawDiffServer) error - RawPatch(*RawPatchRequest, DiffService_RawPatchServer) error - DiffStats(*DiffStatsRequest, DiffService_DiffStatsServer) error -} - -func RegisterDiffServiceServer(s *grpc.Server, srv DiffServiceServer) { - s.RegisterService(&_DiffService_serviceDesc, srv) -} - -func _DiffService_CommitDiff_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(CommitDiffRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(DiffServiceServer).CommitDiff(m, &diffServiceCommitDiffServer{stream}) -} - -type DiffService_CommitDiffServer interface { - Send(*CommitDiffResponse) error - grpc.ServerStream -} - -type diffServiceCommitDiffServer struct { - grpc.ServerStream -} - -func (x *diffServiceCommitDiffServer) Send(m *CommitDiffResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _DiffService_CommitDelta_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(CommitDeltaRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(DiffServiceServer).CommitDelta(m, &diffServiceCommitDeltaServer{stream}) -} - -type DiffService_CommitDeltaServer interface { - Send(*CommitDeltaResponse) error - grpc.ServerStream -} - -type diffServiceCommitDeltaServer struct { - grpc.ServerStream -} - -func (x *diffServiceCommitDeltaServer) Send(m *CommitDeltaResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _DiffService_CommitPatch_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(CommitPatchRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(DiffServiceServer).CommitPatch(m, &diffServiceCommitPatchServer{stream}) -} - -type DiffService_CommitPatchServer interface { - Send(*CommitPatchResponse) error - grpc.ServerStream -} - -type diffServiceCommitPatchServer struct { - grpc.ServerStream -} - -func (x *diffServiceCommitPatchServer) Send(m *CommitPatchResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _DiffService_RawDiff_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(RawDiffRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(DiffServiceServer).RawDiff(m, &diffServiceRawDiffServer{stream}) -} - -type DiffService_RawDiffServer interface { - Send(*RawDiffResponse) error - grpc.ServerStream -} - -type diffServiceRawDiffServer struct { - grpc.ServerStream -} - -func (x *diffServiceRawDiffServer) Send(m *RawDiffResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _DiffService_RawPatch_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(RawPatchRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(DiffServiceServer).RawPatch(m, &diffServiceRawPatchServer{stream}) -} - -type DiffService_RawPatchServer interface { - Send(*RawPatchResponse) error - grpc.ServerStream -} - -type diffServiceRawPatchServer struct { - grpc.ServerStream -} - -func (x *diffServiceRawPatchServer) Send(m *RawPatchResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _DiffService_DiffStats_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(DiffStatsRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(DiffServiceServer).DiffStats(m, &diffServiceDiffStatsServer{stream}) -} - -type DiffService_DiffStatsServer interface { - Send(*DiffStatsResponse) error - grpc.ServerStream -} - -type diffServiceDiffStatsServer struct { - grpc.ServerStream -} - -func (x *diffServiceDiffStatsServer) Send(m *DiffStatsResponse) error { - return x.ServerStream.SendMsg(m) -} - -var _DiffService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.DiffService", - HandlerType: (*DiffServiceServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "CommitDiff", - Handler: _DiffService_CommitDiff_Handler, - ServerStreams: true, - }, - { - StreamName: "CommitDelta", - Handler: _DiffService_CommitDelta_Handler, - ServerStreams: true, - }, - { - StreamName: "CommitPatch", - Handler: _DiffService_CommitPatch_Handler, - ServerStreams: true, - }, - { - StreamName: "RawDiff", - Handler: _DiffService_RawDiff_Handler, - ServerStreams: true, - }, - { - StreamName: "RawPatch", - Handler: _DiffService_RawPatch_Handler, - ServerStreams: true, - }, - { - StreamName: "DiffStats", - Handler: _DiffService_DiffStats_Handler, - ServerStreams: true, - }, - }, - Metadata: "diff.proto", -} - -func init() { proto.RegisterFile("diff.proto", fileDescriptor4) } - -var fileDescriptor4 = []byte{ - // 831 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcd, 0x6e, 0x33, 0x35, - 0x14, 0x65, 0x9a, 0x64, 0x32, 0xb9, 0x99, 0xa6, 0xad, 0x8b, 0xfa, 0x4d, 0xf3, 0xb1, 0x88, 0x46, - 0xb4, 0x0d, 0x42, 0xaa, 0x50, 0xd8, 0xb0, 0x40, 0x48, 0xb4, 0x15, 0xa8, 0x55, 0x2b, 0xaa, 0x61, - 0xc1, 0x82, 0xc5, 0xc8, 0x8d, 0x3d, 0x89, 0xc5, 0xcc, 0x38, 0xd8, 0xa6, 0x69, 0x5e, 0x03, 0x78, - 0x07, 0x36, 0xec, 0x79, 0x18, 0x5e, 0x85, 0x05, 0xb2, 0x3d, 0x7f, 0x69, 0xa3, 0x6e, 0xfa, 0x2d, - 0xb2, 0x8b, 0xcf, 0x39, 0x73, 0xef, 0xf1, 0xfd, 0x71, 0x0b, 0x40, 0x58, 0x92, 0x9c, 0x2f, 0x04, - 0x57, 0x1c, 0xb9, 0x33, 0xa6, 0x70, 0xba, 0x1a, 0xfa, 0x72, 0x8e, 0x05, 0x25, 0x16, 0x0d, 0xff, - 0x6b, 0xc1, 0xc1, 0x25, 0xcf, 0x32, 0xa6, 0xae, 0x58, 0x92, 0x44, 0xf4, 0xd7, 0xdf, 0xa8, 0x54, - 0x68, 0x02, 0x20, 0xe8, 0x82, 0x4b, 0xa6, 0xb8, 0x58, 0x05, 0xce, 0xc8, 0x19, 0xf7, 0x27, 0xe8, - 0xdc, 0x06, 0x38, 0x8f, 0x2a, 0x26, 0x6a, 0xa8, 0xd0, 0xa7, 0x30, 0x48, 0x69, 0xa2, 0xe2, 0xa9, - 0x89, 0x16, 0x33, 0x12, 0xec, 0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a, 0x1e, 0xd9, 0x94, 0xa2, 0xef, 0x01, 0xea, - 0x3f, 0x23, 0xe8, 0xf8, 0xd9, 0xde, 0xd5, 0x13, 0x3d, 0x1c, 0x6e, 0xa2, 0x6c, 0xf6, 0xf0, 0xa3, - 0x2f, 0x1c, 0x74, 0xb3, 0xfe, 0x04, 0x0d, 0x37, 0x6d, 0x70, 0x11, 0xea, 0xfd, 0x46, 0x6e, 0x53, - 0x2c, 0xfb, 0xb4, 0x3f, 0x8b, 0xd5, 0x9c, 0xd5, 0xe7, 0xb1, 0xd6, 0x46, 0xc6, 0xc4, 0xfa, 0x06, - 0xba, 0xc5, 0x1e, 0xa0, 0xa3, 0x6a, 0x08, 0xd6, 0x96, 0x75, 0xf8, 0xee, 0x05, 0xde, 0xf8, 0xfe, - 0x5b, 0xf0, 0xca, 0x51, 0x44, 0x4d, 0xe1, 0x9a, 0x8b, 0xe0, 0x25, 0xd1, 0x08, 0x71, 0xd5, 0x1c, - 0x87, 0xe0, 0x65, 0x6b, 0x8a, 0x20, 0xc7, 0x1b, 0x98, 0x3a, 0xca, 0x83, 0x6b, 0xfe, 0xef, 0xfb, - 0xf2, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x5d, 0xc8, 0xdc, 0x4e, 0x1b, 0x0a, 0x00, 0x00, -} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/blob.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/blob.pb.go new file mode 100644 index 0000000..60b0871 --- /dev/null +++ b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/blob.pb.go @@ -0,0 +1,1146 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: blob.proto + +/* +Package gitalypb is a generated protocol buffer package. + +It is generated from these files: + blob.proto + cleanup.proto + commit.proto + conflicts.proto + diff.proto + namespace.proto + notifications.proto + objectpool.proto + operations.proto + ref.proto + remote.proto + repository-service.proto + server.proto + shared.proto + smarthttp.proto + ssh.proto + storage.proto + wiki.proto + +It has these top-level messages: + GetBlobRequest + GetBlobResponse + GetBlobsRequest + GetBlobsResponse + LFSPointer + NewBlobObject + GetLFSPointersRequest + GetLFSPointersResponse + GetNewLFSPointersRequest + GetNewLFSPointersResponse + GetAllLFSPointersRequest + GetAllLFSPointersResponse + ApplyBfgObjectMapRequest + ApplyBfgObjectMapResponse + CommitStatsRequest + CommitStatsResponse + CommitIsAncestorRequest + CommitIsAncestorResponse + TreeEntryRequest + TreeEntryResponse + CommitsBetweenRequest + CommitsBetweenResponse + CountCommitsRequest + CountCommitsResponse + TreeEntry + GetTreeEntriesRequest + GetTreeEntriesResponse + ListFilesRequest + ListFilesResponse + FindCommitRequest + FindCommitResponse + ListCommitsByOidRequest + ListCommitsByOidResponse + FindAllCommitsRequest + FindAllCommitsResponse + FindCommitsRequest + FindCommitsResponse + CommitLanguagesRequest + CommitLanguagesResponse + RawBlameRequest + RawBlameResponse + LastCommitForPathRequest + LastCommitForPathResponse + ListLastCommitsForTreeRequest + ListLastCommitsForTreeResponse + CommitsByMessageRequest + CommitsByMessageResponse + FilterShasWithSignaturesRequest + FilterShasWithSignaturesResponse + ExtractCommitSignatureRequest + ExtractCommitSignatureResponse + GetCommitSignaturesRequest + GetCommitSignaturesResponse + GetCommitMessagesRequest + GetCommitMessagesResponse + ListConflictFilesRequest + ConflictFileHeader + ConflictFile + ListConflictFilesResponse + ResolveConflictsRequestHeader + ResolveConflictsRequest + ResolveConflictsResponse + CommitDiffRequest + CommitDiffResponse + CommitDeltaRequest + CommitDelta + CommitDeltaResponse + CommitPatchRequest + CommitPatchResponse + RawDiffRequest + RawDiffResponse + RawPatchRequest + RawPatchResponse + DiffStatsRequest + DiffStats + DiffStatsResponse + AddNamespaceRequest + RemoveNamespaceRequest + RenameNamespaceRequest + NamespaceExistsRequest + NamespaceExistsResponse + AddNamespaceResponse + RemoveNamespaceResponse + RenameNamespaceResponse + PostReceiveRequest + PostReceiveResponse + ObjectPool + CreateObjectPoolRequest + CreateObjectPoolResponse + DeleteObjectPoolRequest + DeleteObjectPoolResponse + LinkRepositoryToObjectPoolRequest + LinkRepositoryToObjectPoolResponse + UnlinkRepositoryFromObjectPoolRequest + UnlinkRepositoryFromObjectPoolResponse + UserCreateBranchRequest + UserCreateBranchResponse + UserUpdateBranchRequest + UserUpdateBranchResponse + UserDeleteBranchRequest + UserDeleteBranchResponse + UserDeleteTagRequest + UserDeleteTagResponse + UserCreateTagRequest + UserCreateTagResponse + UserMergeBranchRequest + UserMergeBranchResponse + OperationBranchUpdate + UserFFBranchRequest + UserFFBranchResponse + UserCherryPickRequest + UserCherryPickResponse + UserRevertRequest + UserRevertResponse + UserCommitFilesActionHeader + UserCommitFilesAction + UserCommitFilesRequestHeader + UserCommitFilesRequest + UserCommitFilesResponse + UserRebaseRequest + UserRebaseResponse + UserSquashRequest + UserSquashResponse + UserApplyPatchRequest + UserApplyPatchResponse + UserUpdateSubmoduleRequest + UserUpdateSubmoduleResponse + ListNewBlobsRequest + ListNewBlobsResponse + FindDefaultBranchNameRequest + FindDefaultBranchNameResponse + FindAllBranchNamesRequest + FindAllBranchNamesResponse + FindAllTagNamesRequest + FindAllTagNamesResponse + FindRefNameRequest + FindRefNameResponse + FindLocalBranchesRequest + FindLocalBranchesResponse + FindLocalBranchResponse + FindLocalBranchCommitAuthor + FindAllBranchesRequest + FindAllBranchesResponse + FindAllTagsRequest + FindAllTagsResponse + RefExistsRequest + RefExistsResponse + CreateBranchRequest + CreateBranchResponse + DeleteBranchRequest + DeleteBranchResponse + FindBranchRequest + FindBranchResponse + DeleteRefsRequest + DeleteRefsResponse + ListBranchNamesContainingCommitRequest + ListBranchNamesContainingCommitResponse + ListTagNamesContainingCommitRequest + ListTagNamesContainingCommitResponse + GetTagMessagesRequest + GetTagMessagesResponse + ListNewCommitsRequest + ListNewCommitsResponse + FindAllRemoteBranchesRequest + FindAllRemoteBranchesResponse + AddRemoteRequest + AddRemoteResponse + RemoveRemoteRequest + RemoveRemoteResponse + FetchInternalRemoteRequest + FetchInternalRemoteResponse + UpdateRemoteMirrorRequest + UpdateRemoteMirrorResponse + FindRemoteRepositoryRequest + FindRemoteRepositoryResponse + FindRemoteRootRefRequest + FindRemoteRootRefResponse + RepositoryExistsRequest + RepositoryExistsResponse + RepackIncrementalRequest + RepackIncrementalResponse + RepackFullRequest + RepackFullResponse + GarbageCollectRequest + GarbageCollectResponse + CleanupRequest + CleanupResponse + RepositorySizeRequest + RepositorySizeResponse + ApplyGitattributesRequest + ApplyGitattributesResponse + FetchRemoteRequest + FetchRemoteResponse + CreateRepositoryRequest + CreateRepositoryResponse + GetArchiveRequest + GetArchiveResponse + HasLocalBranchesRequest + HasLocalBranchesResponse + FetchSourceBranchRequest + FetchSourceBranchResponse + FsckRequest + FsckResponse + WriteRefRequest + WriteRefResponse + FindMergeBaseRequest + FindMergeBaseResponse + CreateForkRequest + CreateForkResponse + IsRebaseInProgressRequest + IsRebaseInProgressResponse + IsSquashInProgressRequest + IsSquashInProgressResponse + CreateRepositoryFromURLRequest + CreateRepositoryFromURLResponse + CreateBundleRequest + CreateBundleResponse + WriteConfigRequest + WriteConfigResponse + SetConfigRequest + SetConfigResponse + DeleteConfigRequest + DeleteConfigResponse + RestoreCustomHooksRequest + RestoreCustomHooksResponse + BackupCustomHooksRequest + BackupCustomHooksResponse + CreateRepositoryFromBundleRequest + CreateRepositoryFromBundleResponse + FindLicenseRequest + FindLicenseResponse + GetInfoAttributesRequest + GetInfoAttributesResponse + CalculateChecksumRequest + CalculateChecksumResponse + GetSnapshotRequest + GetSnapshotResponse + CreateRepositoryFromSnapshotRequest + CreateRepositoryFromSnapshotResponse + GetRawChangesRequest + GetRawChangesResponse + SearchFilesByNameRequest + SearchFilesByNameResponse + SearchFilesByContentRequest + SearchFilesByContentResponse + ServerInfoRequest + ServerInfoResponse + Repository + GitCommit + CommitAuthor + ExitStatus + Branch + Tag + User + InfoRefsRequest + InfoRefsResponse + PostUploadPackRequest + PostUploadPackResponse + PostReceivePackRequest + PostReceivePackResponse + SSHUploadPackRequest + SSHUploadPackResponse + SSHReceivePackRequest + SSHReceivePackResponse + SSHUploadArchiveRequest + SSHUploadArchiveResponse + ListDirectoriesRequest + ListDirectoriesResponse + DeleteAllRepositoriesRequest + DeleteAllRepositoriesResponse + WikiCommitDetails + WikiPageVersion + WikiPage + WikiGetPageVersionsRequest + WikiGetPageVersionsResponse + WikiWritePageRequest + WikiWritePageResponse + WikiUpdatePageRequest + WikiUpdatePageResponse + WikiDeletePageRequest + WikiDeletePageResponse + WikiFindPageRequest + WikiFindPageResponse + WikiFindFileRequest + WikiFindFileResponse + WikiGetAllPagesRequest + WikiGetAllPagesResponse + WikiGetFormattedDataRequest + WikiGetFormattedDataResponse +*/ +package gitalypb + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +type GetBlobRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + // Object ID (SHA1) of the blob we want to get + Oid string `protobuf:"bytes,2,opt,name=oid" json:"oid,omitempty"` + // Maximum number of bytes we want to receive. Use '-1' to get the full blob no matter how big. + Limit int64 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"` +} + +func (m *GetBlobRequest) Reset() { *m = GetBlobRequest{} } +func (m *GetBlobRequest) String() string { return proto.CompactTextString(m) } +func (*GetBlobRequest) ProtoMessage() {} +func (*GetBlobRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +func (m *GetBlobRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *GetBlobRequest) GetOid() string { + if m != nil { + return m.Oid + } + return "" +} + +func (m *GetBlobRequest) GetLimit() int64 { + if m != nil { + return m.Limit + } + return 0 +} + +type GetBlobResponse struct { + // Blob size; present only in first response message + Size int64 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"` + // Chunk of blob data + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + // Object ID of the actual blob returned. Empty if no blob was found. + Oid string `protobuf:"bytes,3,opt,name=oid" json:"oid,omitempty"` +} + +func (m *GetBlobResponse) Reset() { *m = GetBlobResponse{} } +func (m *GetBlobResponse) String() string { return proto.CompactTextString(m) } +func (*GetBlobResponse) ProtoMessage() {} +func (*GetBlobResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +func (m *GetBlobResponse) GetSize() int64 { + if m != nil { + return m.Size + } + return 0 +} + +func (m *GetBlobResponse) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +func (m *GetBlobResponse) GetOid() string { + if m != nil { + return m.Oid + } + return "" +} + +type GetBlobsRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + // Revision/Path pairs of the blobs we want to get. + RevisionPaths []*GetBlobsRequest_RevisionPath `protobuf:"bytes,2,rep,name=revision_paths,json=revisionPaths" json:"revision_paths,omitempty"` + // Maximum number of bytes we want to receive. Use '-1' to get the full blobs no matter how big. + Limit int64 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"` +} + +func (m *GetBlobsRequest) Reset() { *m = GetBlobsRequest{} } +func (m *GetBlobsRequest) String() string { return proto.CompactTextString(m) } +func (*GetBlobsRequest) ProtoMessage() {} +func (*GetBlobsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } + +func (m *GetBlobsRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *GetBlobsRequest) GetRevisionPaths() []*GetBlobsRequest_RevisionPath { + if m != nil { + return m.RevisionPaths + } + return nil +} + +func (m *GetBlobsRequest) GetLimit() int64 { + if m != nil { + return m.Limit + } + return 0 +} + +type GetBlobsRequest_RevisionPath struct { + Revision string `protobuf:"bytes,1,opt,name=revision" json:"revision,omitempty"` + Path []byte `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` +} + +func (m *GetBlobsRequest_RevisionPath) Reset() { *m = GetBlobsRequest_RevisionPath{} } +func (m *GetBlobsRequest_RevisionPath) String() string { return proto.CompactTextString(m) } +func (*GetBlobsRequest_RevisionPath) ProtoMessage() {} +func (*GetBlobsRequest_RevisionPath) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} } + +func (m *GetBlobsRequest_RevisionPath) GetRevision() string { + if m != nil { + return m.Revision + } + return "" +} + +func (m *GetBlobsRequest_RevisionPath) GetPath() []byte { + if m != nil { + return m.Path + } + return nil +} + +type GetBlobsResponse struct { + // Blob size; present only on the first message per blob + Size int64 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"` + // Chunk of blob data, could span over multiple messages. + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + // Object ID of the current blob. Only present on the first message per blob. Empty if no blob was found. + Oid string `protobuf:"bytes,3,opt,name=oid" json:"oid,omitempty"` + IsSubmodule bool `protobuf:"varint,4,opt,name=is_submodule,json=isSubmodule" json:"is_submodule,omitempty"` + Mode int32 `protobuf:"varint,5,opt,name=mode" json:"mode,omitempty"` + Revision string `protobuf:"bytes,6,opt,name=revision" json:"revision,omitempty"` + Path []byte `protobuf:"bytes,7,opt,name=path,proto3" json:"path,omitempty"` +} + +func (m *GetBlobsResponse) Reset() { *m = GetBlobsResponse{} } +func (m *GetBlobsResponse) String() string { return proto.CompactTextString(m) } +func (*GetBlobsResponse) ProtoMessage() {} +func (*GetBlobsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } + +func (m *GetBlobsResponse) GetSize() int64 { + if m != nil { + return m.Size + } + return 0 +} + +func (m *GetBlobsResponse) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +func (m *GetBlobsResponse) GetOid() string { + if m != nil { + return m.Oid + } + return "" +} + +func (m *GetBlobsResponse) GetIsSubmodule() bool { + if m != nil { + return m.IsSubmodule + } + return false +} + +func (m *GetBlobsResponse) GetMode() int32 { + if m != nil { + return m.Mode + } + return 0 +} + +func (m *GetBlobsResponse) GetRevision() string { + if m != nil { + return m.Revision + } + return "" +} + +func (m *GetBlobsResponse) GetPath() []byte { + if m != nil { + return m.Path + } + return nil +} + +type LFSPointer struct { + Size int64 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + Oid string `protobuf:"bytes,3,opt,name=oid" json:"oid,omitempty"` +} + +func (m *LFSPointer) Reset() { *m = LFSPointer{} } +func (m *LFSPointer) String() string { return proto.CompactTextString(m) } +func (*LFSPointer) ProtoMessage() {} +func (*LFSPointer) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } + +func (m *LFSPointer) GetSize() int64 { + if m != nil { + return m.Size + } + return 0 +} + +func (m *LFSPointer) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +func (m *LFSPointer) GetOid() string { + if m != nil { + return m.Oid + } + return "" +} + +type NewBlobObject struct { + Size int64 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"` + Oid string `protobuf:"bytes,2,opt,name=oid" json:"oid,omitempty"` + Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` +} + +func (m *NewBlobObject) Reset() { *m = NewBlobObject{} } +func (m *NewBlobObject) String() string { return proto.CompactTextString(m) } +func (*NewBlobObject) ProtoMessage() {} +func (*NewBlobObject) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } + +func (m *NewBlobObject) GetSize() int64 { + if m != nil { + return m.Size + } + return 0 +} + +func (m *NewBlobObject) GetOid() string { + if m != nil { + return m.Oid + } + return "" +} + +func (m *NewBlobObject) GetPath() []byte { + if m != nil { + return m.Path + } + return nil +} + +type GetLFSPointersRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + BlobIds []string `protobuf:"bytes,2,rep,name=blob_ids,json=blobIds" json:"blob_ids,omitempty"` +} + +func (m *GetLFSPointersRequest) Reset() { *m = GetLFSPointersRequest{} } +func (m *GetLFSPointersRequest) String() string { return proto.CompactTextString(m) } +func (*GetLFSPointersRequest) ProtoMessage() {} +func (*GetLFSPointersRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } + +func (m *GetLFSPointersRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *GetLFSPointersRequest) GetBlobIds() []string { + if m != nil { + return m.BlobIds + } + return nil +} + +type GetLFSPointersResponse struct { + LfsPointers []*LFSPointer `protobuf:"bytes,1,rep,name=lfs_pointers,json=lfsPointers" json:"lfs_pointers,omitempty"` +} + +func (m *GetLFSPointersResponse) Reset() { *m = GetLFSPointersResponse{} } +func (m *GetLFSPointersResponse) String() string { return proto.CompactTextString(m) } +func (*GetLFSPointersResponse) ProtoMessage() {} +func (*GetLFSPointersResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } + +func (m *GetLFSPointersResponse) GetLfsPointers() []*LFSPointer { + if m != nil { + return m.LfsPointers + } + return nil +} + +type GetNewLFSPointersRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + Limit int32 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"` + // Note: When `not_in_all` is true, `not_in_refs` is ignored + NotInAll bool `protobuf:"varint,4,opt,name=not_in_all,json=notInAll" json:"not_in_all,omitempty"` + NotInRefs [][]byte `protobuf:"bytes,5,rep,name=not_in_refs,json=notInRefs,proto3" json:"not_in_refs,omitempty"` +} + +func (m *GetNewLFSPointersRequest) Reset() { *m = GetNewLFSPointersRequest{} } +func (m *GetNewLFSPointersRequest) String() string { return proto.CompactTextString(m) } +func (*GetNewLFSPointersRequest) ProtoMessage() {} +func (*GetNewLFSPointersRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } + +func (m *GetNewLFSPointersRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *GetNewLFSPointersRequest) GetRevision() []byte { + if m != nil { + return m.Revision + } + return nil +} + +func (m *GetNewLFSPointersRequest) GetLimit() int32 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *GetNewLFSPointersRequest) GetNotInAll() bool { + if m != nil { + return m.NotInAll + } + return false +} + +func (m *GetNewLFSPointersRequest) GetNotInRefs() [][]byte { + if m != nil { + return m.NotInRefs + } + return nil +} + +type GetNewLFSPointersResponse struct { + LfsPointers []*LFSPointer `protobuf:"bytes,1,rep,name=lfs_pointers,json=lfsPointers" json:"lfs_pointers,omitempty"` +} + +func (m *GetNewLFSPointersResponse) Reset() { *m = GetNewLFSPointersResponse{} } +func (m *GetNewLFSPointersResponse) String() string { return proto.CompactTextString(m) } +func (*GetNewLFSPointersResponse) ProtoMessage() {} +func (*GetNewLFSPointersResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } + +func (m *GetNewLFSPointersResponse) GetLfsPointers() []*LFSPointer { + if m != nil { + return m.LfsPointers + } + return nil +} + +type GetAllLFSPointersRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` +} + +func (m *GetAllLFSPointersRequest) Reset() { *m = GetAllLFSPointersRequest{} } +func (m *GetAllLFSPointersRequest) String() string { return proto.CompactTextString(m) } +func (*GetAllLFSPointersRequest) ProtoMessage() {} +func (*GetAllLFSPointersRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } + +func (m *GetAllLFSPointersRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *GetAllLFSPointersRequest) GetRevision() []byte { + if m != nil { + return m.Revision + } + return nil +} + +type GetAllLFSPointersResponse struct { + LfsPointers []*LFSPointer `protobuf:"bytes,1,rep,name=lfs_pointers,json=lfsPointers" json:"lfs_pointers,omitempty"` +} + +func (m *GetAllLFSPointersResponse) Reset() { *m = GetAllLFSPointersResponse{} } +func (m *GetAllLFSPointersResponse) String() string { return proto.CompactTextString(m) } +func (*GetAllLFSPointersResponse) ProtoMessage() {} +func (*GetAllLFSPointersResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } + +func (m *GetAllLFSPointersResponse) GetLfsPointers() []*LFSPointer { + if m != nil { + return m.LfsPointers + } + return nil +} + +func init() { + proto.RegisterType((*GetBlobRequest)(nil), "gitaly.GetBlobRequest") + proto.RegisterType((*GetBlobResponse)(nil), "gitaly.GetBlobResponse") + proto.RegisterType((*GetBlobsRequest)(nil), "gitaly.GetBlobsRequest") + proto.RegisterType((*GetBlobsRequest_RevisionPath)(nil), "gitaly.GetBlobsRequest.RevisionPath") + proto.RegisterType((*GetBlobsResponse)(nil), "gitaly.GetBlobsResponse") + proto.RegisterType((*LFSPointer)(nil), "gitaly.LFSPointer") + proto.RegisterType((*NewBlobObject)(nil), "gitaly.NewBlobObject") + proto.RegisterType((*GetLFSPointersRequest)(nil), "gitaly.GetLFSPointersRequest") + proto.RegisterType((*GetLFSPointersResponse)(nil), "gitaly.GetLFSPointersResponse") + proto.RegisterType((*GetNewLFSPointersRequest)(nil), "gitaly.GetNewLFSPointersRequest") + proto.RegisterType((*GetNewLFSPointersResponse)(nil), "gitaly.GetNewLFSPointersResponse") + proto.RegisterType((*GetAllLFSPointersRequest)(nil), "gitaly.GetAllLFSPointersRequest") + proto.RegisterType((*GetAllLFSPointersResponse)(nil), "gitaly.GetAllLFSPointersResponse") +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// Client API for BlobService service + +type BlobServiceClient interface { + // GetBlob returns the contents of a blob object referenced by its object + // ID. We use a stream to return a chunked arbitrarily large binary + // response + GetBlob(ctx context.Context, in *GetBlobRequest, opts ...grpc.CallOption) (BlobService_GetBlobClient, error) + GetBlobs(ctx context.Context, in *GetBlobsRequest, opts ...grpc.CallOption) (BlobService_GetBlobsClient, error) + GetLFSPointers(ctx context.Context, in *GetLFSPointersRequest, opts ...grpc.CallOption) (BlobService_GetLFSPointersClient, error) + GetNewLFSPointers(ctx context.Context, in *GetNewLFSPointersRequest, opts ...grpc.CallOption) (BlobService_GetNewLFSPointersClient, error) + GetAllLFSPointers(ctx context.Context, in *GetAllLFSPointersRequest, opts ...grpc.CallOption) (BlobService_GetAllLFSPointersClient, error) +} + +type blobServiceClient struct { + cc *grpc.ClientConn +} + +func NewBlobServiceClient(cc *grpc.ClientConn) BlobServiceClient { + return &blobServiceClient{cc} +} + +func (c *blobServiceClient) GetBlob(ctx context.Context, in *GetBlobRequest, opts ...grpc.CallOption) (BlobService_GetBlobClient, error) { + stream, err := grpc.NewClientStream(ctx, &_BlobService_serviceDesc.Streams[0], c.cc, "/gitaly.BlobService/GetBlob", opts...) + if err != nil { + return nil, err + } + x := &blobServiceGetBlobClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type BlobService_GetBlobClient interface { + Recv() (*GetBlobResponse, error) + grpc.ClientStream +} + +type blobServiceGetBlobClient struct { + grpc.ClientStream +} + +func (x *blobServiceGetBlobClient) Recv() (*GetBlobResponse, error) { + m := new(GetBlobResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *blobServiceClient) GetBlobs(ctx context.Context, in *GetBlobsRequest, opts ...grpc.CallOption) (BlobService_GetBlobsClient, error) { + stream, err := grpc.NewClientStream(ctx, &_BlobService_serviceDesc.Streams[1], c.cc, "/gitaly.BlobService/GetBlobs", opts...) + if err != nil { + return nil, err + } + x := &blobServiceGetBlobsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type BlobService_GetBlobsClient interface { + Recv() (*GetBlobsResponse, error) + grpc.ClientStream +} + +type blobServiceGetBlobsClient struct { + grpc.ClientStream +} + +func (x *blobServiceGetBlobsClient) Recv() (*GetBlobsResponse, error) { + m := new(GetBlobsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *blobServiceClient) GetLFSPointers(ctx context.Context, in *GetLFSPointersRequest, opts ...grpc.CallOption) (BlobService_GetLFSPointersClient, error) { + stream, err := grpc.NewClientStream(ctx, &_BlobService_serviceDesc.Streams[2], c.cc, "/gitaly.BlobService/GetLFSPointers", opts...) + if err != nil { + return nil, err + } + x := &blobServiceGetLFSPointersClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type BlobService_GetLFSPointersClient interface { + Recv() (*GetLFSPointersResponse, error) + grpc.ClientStream +} + +type blobServiceGetLFSPointersClient struct { + grpc.ClientStream +} + +func (x *blobServiceGetLFSPointersClient) Recv() (*GetLFSPointersResponse, error) { + m := new(GetLFSPointersResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *blobServiceClient) GetNewLFSPointers(ctx context.Context, in *GetNewLFSPointersRequest, opts ...grpc.CallOption) (BlobService_GetNewLFSPointersClient, error) { + stream, err := grpc.NewClientStream(ctx, &_BlobService_serviceDesc.Streams[3], c.cc, "/gitaly.BlobService/GetNewLFSPointers", opts...) + if err != nil { + return nil, err + } + x := &blobServiceGetNewLFSPointersClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type BlobService_GetNewLFSPointersClient interface { + Recv() (*GetNewLFSPointersResponse, error) + grpc.ClientStream +} + +type blobServiceGetNewLFSPointersClient struct { + grpc.ClientStream +} + +func (x *blobServiceGetNewLFSPointersClient) Recv() (*GetNewLFSPointersResponse, error) { + m := new(GetNewLFSPointersResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *blobServiceClient) GetAllLFSPointers(ctx context.Context, in *GetAllLFSPointersRequest, opts ...grpc.CallOption) (BlobService_GetAllLFSPointersClient, error) { + stream, err := grpc.NewClientStream(ctx, &_BlobService_serviceDesc.Streams[4], c.cc, "/gitaly.BlobService/GetAllLFSPointers", opts...) + if err != nil { + return nil, err + } + x := &blobServiceGetAllLFSPointersClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type BlobService_GetAllLFSPointersClient interface { + Recv() (*GetAllLFSPointersResponse, error) + grpc.ClientStream +} + +type blobServiceGetAllLFSPointersClient struct { + grpc.ClientStream +} + +func (x *blobServiceGetAllLFSPointersClient) Recv() (*GetAllLFSPointersResponse, error) { + m := new(GetAllLFSPointersResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// Server API for BlobService service + +type BlobServiceServer interface { + // GetBlob returns the contents of a blob object referenced by its object + // ID. We use a stream to return a chunked arbitrarily large binary + // response + GetBlob(*GetBlobRequest, BlobService_GetBlobServer) error + GetBlobs(*GetBlobsRequest, BlobService_GetBlobsServer) error + GetLFSPointers(*GetLFSPointersRequest, BlobService_GetLFSPointersServer) error + GetNewLFSPointers(*GetNewLFSPointersRequest, BlobService_GetNewLFSPointersServer) error + GetAllLFSPointers(*GetAllLFSPointersRequest, BlobService_GetAllLFSPointersServer) error +} + +func RegisterBlobServiceServer(s *grpc.Server, srv BlobServiceServer) { + s.RegisterService(&_BlobService_serviceDesc, srv) +} + +func _BlobService_GetBlob_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetBlobRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(BlobServiceServer).GetBlob(m, &blobServiceGetBlobServer{stream}) +} + +type BlobService_GetBlobServer interface { + Send(*GetBlobResponse) error + grpc.ServerStream +} + +type blobServiceGetBlobServer struct { + grpc.ServerStream +} + +func (x *blobServiceGetBlobServer) Send(m *GetBlobResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _BlobService_GetBlobs_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetBlobsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(BlobServiceServer).GetBlobs(m, &blobServiceGetBlobsServer{stream}) +} + +type BlobService_GetBlobsServer interface { + Send(*GetBlobsResponse) error + grpc.ServerStream +} + +type blobServiceGetBlobsServer struct { + grpc.ServerStream +} + +func (x *blobServiceGetBlobsServer) Send(m *GetBlobsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _BlobService_GetLFSPointers_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetLFSPointersRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(BlobServiceServer).GetLFSPointers(m, &blobServiceGetLFSPointersServer{stream}) +} + +type BlobService_GetLFSPointersServer interface { + Send(*GetLFSPointersResponse) error + grpc.ServerStream +} + +type blobServiceGetLFSPointersServer struct { + grpc.ServerStream +} + +func (x *blobServiceGetLFSPointersServer) Send(m *GetLFSPointersResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _BlobService_GetNewLFSPointers_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetNewLFSPointersRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(BlobServiceServer).GetNewLFSPointers(m, &blobServiceGetNewLFSPointersServer{stream}) +} + +type BlobService_GetNewLFSPointersServer interface { + Send(*GetNewLFSPointersResponse) error + grpc.ServerStream +} + +type blobServiceGetNewLFSPointersServer struct { + grpc.ServerStream +} + +func (x *blobServiceGetNewLFSPointersServer) Send(m *GetNewLFSPointersResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _BlobService_GetAllLFSPointers_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetAllLFSPointersRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(BlobServiceServer).GetAllLFSPointers(m, &blobServiceGetAllLFSPointersServer{stream}) +} + +type BlobService_GetAllLFSPointersServer interface { + Send(*GetAllLFSPointersResponse) error + grpc.ServerStream +} + +type blobServiceGetAllLFSPointersServer struct { + grpc.ServerStream +} + +func (x *blobServiceGetAllLFSPointersServer) Send(m *GetAllLFSPointersResponse) error { + return x.ServerStream.SendMsg(m) +} + +var _BlobService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.BlobService", + HandlerType: (*BlobServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "GetBlob", + Handler: _BlobService_GetBlob_Handler, + ServerStreams: true, + }, + { + StreamName: "GetBlobs", + Handler: _BlobService_GetBlobs_Handler, + ServerStreams: true, + }, + { + StreamName: "GetLFSPointers", + Handler: _BlobService_GetLFSPointers_Handler, + ServerStreams: true, + }, + { + StreamName: "GetNewLFSPointers", + Handler: _BlobService_GetNewLFSPointers_Handler, + ServerStreams: true, + }, + { + StreamName: "GetAllLFSPointers", + Handler: _BlobService_GetAllLFSPointers_Handler, + ServerStreams: true, + }, + }, + Metadata: "blob.proto", +} + +func init() { proto.RegisterFile("blob.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 596 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcf, 0x6e, 0xd3, 0x4e, + 0x10, 0xfe, 0xb9, 0x6e, 0x9a, 0x64, 0xec, 0xf6, 0x57, 0x56, 0xd0, 0xba, 0x16, 0x54, 0xae, 0xc5, + 0xc1, 0xa7, 0x08, 0x05, 0x71, 0xad, 0x14, 0x0e, 0x8d, 0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0xff, 0x0d, 0x42, 0xa0, 0x80, + 0x4b, 0x07, 0x00, 0x00, +} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/cleanup.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/cleanup.pb.go new file mode 100644 index 0000000..1a6de95 --- /dev/null +++ b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/cleanup.pb.go @@ -0,0 +1,183 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: cleanup.proto + +package gitalypb + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +type ApplyBfgObjectMapRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + // A raw object-map file as generated by BFG: https://rtyley.github.io/bfg-repo-cleaner + // Each line in the file has two object SHAs, space-separated - the original + // SHA of the object, and the SHA after BFG has rewritten the object. + ObjectMap []byte `protobuf:"bytes,2,opt,name=object_map,json=objectMap,proto3" json:"object_map,omitempty"` +} + +func (m *ApplyBfgObjectMapRequest) Reset() { *m = ApplyBfgObjectMapRequest{} } +func (m *ApplyBfgObjectMapRequest) String() string { return proto.CompactTextString(m) } +func (*ApplyBfgObjectMapRequest) ProtoMessage() {} +func (*ApplyBfgObjectMapRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} } + +func (m *ApplyBfgObjectMapRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *ApplyBfgObjectMapRequest) GetObjectMap() []byte { + if m != nil { + return m.ObjectMap + } + return nil +} + +type ApplyBfgObjectMapResponse struct { +} + +func (m *ApplyBfgObjectMapResponse) Reset() { *m = ApplyBfgObjectMapResponse{} } +func (m *ApplyBfgObjectMapResponse) String() string { return proto.CompactTextString(m) } +func (*ApplyBfgObjectMapResponse) ProtoMessage() {} +func (*ApplyBfgObjectMapResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} } + +func init() { + proto.RegisterType((*ApplyBfgObjectMapRequest)(nil), "gitaly.ApplyBfgObjectMapRequest") + proto.RegisterType((*ApplyBfgObjectMapResponse)(nil), "gitaly.ApplyBfgObjectMapResponse") +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// Client API for CleanupService service + +type CleanupServiceClient interface { + ApplyBfgObjectMap(ctx context.Context, opts ...grpc.CallOption) (CleanupService_ApplyBfgObjectMapClient, error) +} + +type cleanupServiceClient struct { + cc *grpc.ClientConn +} + +func NewCleanupServiceClient(cc *grpc.ClientConn) CleanupServiceClient { + return &cleanupServiceClient{cc} +} + +func (c *cleanupServiceClient) ApplyBfgObjectMap(ctx context.Context, opts ...grpc.CallOption) (CleanupService_ApplyBfgObjectMapClient, error) { + stream, err := grpc.NewClientStream(ctx, &_CleanupService_serviceDesc.Streams[0], c.cc, "/gitaly.CleanupService/ApplyBfgObjectMap", opts...) + if err != nil { + return nil, err + } + x := &cleanupServiceApplyBfgObjectMapClient{stream} + return x, nil +} + +type CleanupService_ApplyBfgObjectMapClient interface { + Send(*ApplyBfgObjectMapRequest) error + CloseAndRecv() (*ApplyBfgObjectMapResponse, error) + grpc.ClientStream +} + +type cleanupServiceApplyBfgObjectMapClient struct { + grpc.ClientStream +} + +func (x *cleanupServiceApplyBfgObjectMapClient) Send(m *ApplyBfgObjectMapRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *cleanupServiceApplyBfgObjectMapClient) CloseAndRecv() (*ApplyBfgObjectMapResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(ApplyBfgObjectMapResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// Server API for CleanupService service + +type CleanupServiceServer interface { + ApplyBfgObjectMap(CleanupService_ApplyBfgObjectMapServer) error +} + +func RegisterCleanupServiceServer(s *grpc.Server, srv CleanupServiceServer) { + s.RegisterService(&_CleanupService_serviceDesc, srv) +} + +func _CleanupService_ApplyBfgObjectMap_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(CleanupServiceServer).ApplyBfgObjectMap(&cleanupServiceApplyBfgObjectMapServer{stream}) +} + +type CleanupService_ApplyBfgObjectMapServer interface { + SendAndClose(*ApplyBfgObjectMapResponse) error + Recv() (*ApplyBfgObjectMapRequest, error) + grpc.ServerStream +} + +type cleanupServiceApplyBfgObjectMapServer struct { + grpc.ServerStream +} + +func (x *cleanupServiceApplyBfgObjectMapServer) SendAndClose(m *ApplyBfgObjectMapResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *cleanupServiceApplyBfgObjectMapServer) Recv() (*ApplyBfgObjectMapRequest, error) { + m := new(ApplyBfgObjectMapRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +var _CleanupService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.CleanupService", + HandlerType: (*CleanupServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "ApplyBfgObjectMap", + Handler: _CleanupService_ApplyBfgObjectMap_Handler, + ClientStreams: true, + }, + }, + Metadata: "cleanup.proto", +} + +func init() { proto.RegisterFile("cleanup.proto", fileDescriptor1) } + +var fileDescriptor1 = []byte{ + // 195 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4d, 0xce, 0x49, 0x4d, + 0xcc, 0x2b, 0x2d, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x4b, 0xcf, 0x2c, 0x49, 0xcc, + 0xa9, 0x94, 0xe2, 0x29, 0xce, 0x48, 0x2c, 0x4a, 0x4d, 0x81, 0x88, 0x2a, 0xe5, 0x72, 0x49, 0x38, + 0x16, 0x14, 0xe4, 0x54, 0x3a, 0xa5, 0xa5, 0xfb, 0x27, 0x65, 0xa5, 0x26, 0x97, 0xf8, 0x26, 0x16, + 0x04, 0xa5, 0x16, 0x96, 0xa6, 0x16, 0x97, 0x08, 0x19, 0x71, 0x71, 0x15, 0xa5, 0x16, 0xe4, 0x17, + 0x67, 0x96, 0xe4, 0x17, 0x55, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0x09, 0xe9, 0x41, 0x8c, + 0xd1, 0x0b, 0x82, 0xcb, 0x04, 0x21, 0xa9, 0x12, 0x92, 0xe5, 0xe2, 0xca, 0x07, 0x9b, 0x13, 0x9f, + 0x9b, 0x58, 0x20, 0xc1, 0xa4, 0xc0, 0xa8, 0xc1, 0x13, 0xc4, 0x99, 0x0f, 0x33, 0x59, 0x49, 0x9a, + 0x4b, 0x12, 0x8b, 0x75, 0xc5, 0x05, 0xf9, 0x79, 0xc5, 0xa9, 0x46, 0x79, 0x5c, 0x7c, 0xce, 0x10, + 0x27, 0x07, 0xa7, 0x16, 0x95, 0x65, 0x26, 0xa7, 0x0a, 0xc5, 0x70, 0x09, 0x62, 0x28, 0x17, 0x52, + 0x80, 0x39, 0x01, 0x97, 0xc3, 0xa5, 0x14, 0xf1, 0xa8, 0x80, 0xd8, 0xa5, 0xc4, 0xa0, 0xc1, 0x98, + 0xc4, 0x06, 0x0e, 0x02, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x9b, 0x2a, 0x94, 0xb4, 0x29, + 0x01, 0x00, 0x00, +} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/commit.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/commit.pb.go new file mode 100644 index 0000000..d294124 --- /dev/null +++ b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/commit.pb.go @@ -0,0 +1,2652 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: commit.proto + +package gitalypb + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import google_protobuf "github.com/golang/protobuf/ptypes/timestamp" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +type TreeEntryResponse_ObjectType int32 + +const ( + TreeEntryResponse_COMMIT TreeEntryResponse_ObjectType = 0 + TreeEntryResponse_BLOB TreeEntryResponse_ObjectType = 1 + TreeEntryResponse_TREE TreeEntryResponse_ObjectType = 2 + TreeEntryResponse_TAG TreeEntryResponse_ObjectType = 3 +) + +var TreeEntryResponse_ObjectType_name = map[int32]string{ + 0: "COMMIT", + 1: "BLOB", + 2: "TREE", + 3: "TAG", +} +var TreeEntryResponse_ObjectType_value = map[string]int32{ + "COMMIT": 0, + "BLOB": 1, + "TREE": 2, + "TAG": 3, +} + +func (x TreeEntryResponse_ObjectType) String() string { + return proto.EnumName(TreeEntryResponse_ObjectType_name, int32(x)) +} +func (TreeEntryResponse_ObjectType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor2, []int{5, 0} +} + +type TreeEntry_EntryType int32 + +const ( + TreeEntry_BLOB TreeEntry_EntryType = 0 + TreeEntry_TREE TreeEntry_EntryType = 1 + TreeEntry_COMMIT TreeEntry_EntryType = 3 +) + +var TreeEntry_EntryType_name = map[int32]string{ + 0: "BLOB", + 1: "TREE", + 3: "COMMIT", +} +var TreeEntry_EntryType_value = map[string]int32{ + "BLOB": 0, + "TREE": 1, + "COMMIT": 3, +} + +func (x TreeEntry_EntryType) String() string { + return proto.EnumName(TreeEntry_EntryType_name, int32(x)) +} +func (TreeEntry_EntryType) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{10, 0} } + +type FindAllCommitsRequest_Order int32 + +const ( + FindAllCommitsRequest_NONE FindAllCommitsRequest_Order = 0 + FindAllCommitsRequest_TOPO FindAllCommitsRequest_Order = 1 + FindAllCommitsRequest_DATE FindAllCommitsRequest_Order = 2 +) + +var FindAllCommitsRequest_Order_name = map[int32]string{ + 0: "NONE", + 1: "TOPO", + 2: "DATE", +} +var FindAllCommitsRequest_Order_value = map[string]int32{ + "NONE": 0, + "TOPO": 1, + "DATE": 2, +} + +func (x FindAllCommitsRequest_Order) String() string { + return proto.EnumName(FindAllCommitsRequest_Order_name, int32(x)) +} +func (FindAllCommitsRequest_Order) EnumDescriptor() ([]byte, []int) { + return fileDescriptor2, []int{19, 0} +} + +type CommitStatsRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` +} + +func (m *CommitStatsRequest) Reset() { *m = CommitStatsRequest{} } +func (m *CommitStatsRequest) String() string { return proto.CompactTextString(m) } +func (*CommitStatsRequest) ProtoMessage() {} +func (*CommitStatsRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} } + +func (m *CommitStatsRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *CommitStatsRequest) GetRevision() []byte { + if m != nil { + return m.Revision + } + return nil +} + +type CommitStatsResponse struct { + // OID is the commit. Empty means not found + Oid string `protobuf:"bytes,1,opt,name=oid" json:"oid,omitempty"` + Additions int32 `protobuf:"varint,2,opt,name=additions" json:"additions,omitempty"` + Deletions int32 `protobuf:"varint,3,opt,name=deletions" json:"deletions,omitempty"` +} + +func (m *CommitStatsResponse) Reset() { *m = CommitStatsResponse{} } +func (m *CommitStatsResponse) String() string { return proto.CompactTextString(m) } +func (*CommitStatsResponse) ProtoMessage() {} +func (*CommitStatsResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} } + +func (m *CommitStatsResponse) GetOid() string { + if m != nil { + return m.Oid + } + return "" +} + +func (m *CommitStatsResponse) GetAdditions() int32 { + if m != nil { + return m.Additions + } + return 0 +} + +func (m *CommitStatsResponse) GetDeletions() int32 { + if m != nil { + return m.Deletions + } + return 0 +} + +type CommitIsAncestorRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + AncestorId string `protobuf:"bytes,2,opt,name=ancestor_id,json=ancestorId" json:"ancestor_id,omitempty"` + ChildId string `protobuf:"bytes,3,opt,name=child_id,json=childId" json:"child_id,omitempty"` +} + +func (m *CommitIsAncestorRequest) Reset() { *m = CommitIsAncestorRequest{} } +func (m *CommitIsAncestorRequest) String() string { return proto.CompactTextString(m) } +func (*CommitIsAncestorRequest) ProtoMessage() {} +func (*CommitIsAncestorRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} } + +func (m *CommitIsAncestorRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *CommitIsAncestorRequest) GetAncestorId() string { + if m != nil { + return m.AncestorId + } + return "" +} + +func (m *CommitIsAncestorRequest) GetChildId() string { + if m != nil { + return m.ChildId + } + return "" +} + +type CommitIsAncestorResponse struct { + Value bool `protobuf:"varint,1,opt,name=value" json:"value,omitempty"` +} + +func (m *CommitIsAncestorResponse) Reset() { *m = CommitIsAncestorResponse{} } +func (m *CommitIsAncestorResponse) String() string { return proto.CompactTextString(m) } +func (*CommitIsAncestorResponse) ProtoMessage() {} +func (*CommitIsAncestorResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} } + +func (m *CommitIsAncestorResponse) GetValue() bool { + if m != nil { + return m.Value + } + return false +} + +type TreeEntryRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + // commit ID or refname + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + // entry path relative to repository root + Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` + Limit int64 `protobuf:"varint,4,opt,name=limit" json:"limit,omitempty"` +} + +func (m *TreeEntryRequest) Reset() { *m = TreeEntryRequest{} } +func (m *TreeEntryRequest) String() string { return proto.CompactTextString(m) } +func (*TreeEntryRequest) ProtoMessage() {} +func (*TreeEntryRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{4} } + +func (m *TreeEntryRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *TreeEntryRequest) GetRevision() []byte { + if m != nil { + return m.Revision + } + return nil +} + +func (m *TreeEntryRequest) GetPath() []byte { + if m != nil { + return m.Path + } + return nil +} + +func (m *TreeEntryRequest) GetLimit() int64 { + if m != nil { + return m.Limit + } + return 0 +} + +type TreeEntryResponse struct { + Type TreeEntryResponse_ObjectType `protobuf:"varint,1,opt,name=type,enum=gitaly.TreeEntryResponse_ObjectType" json:"type,omitempty"` + // SHA1 object ID + Oid string `protobuf:"bytes,2,opt,name=oid" json:"oid,omitempty"` + Size int64 `protobuf:"varint,3,opt,name=size" json:"size,omitempty"` + // file mode + Mode int32 `protobuf:"varint,4,opt,name=mode" json:"mode,omitempty"` + // raw object contents + Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` +} + +func (m *TreeEntryResponse) Reset() { *m = TreeEntryResponse{} } +func (m *TreeEntryResponse) String() string { return proto.CompactTextString(m) } +func (*TreeEntryResponse) ProtoMessage() {} +func (*TreeEntryResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{5} } + +func (m *TreeEntryResponse) GetType() TreeEntryResponse_ObjectType { + if m != nil { + return m.Type + } + return TreeEntryResponse_COMMIT +} + +func (m *TreeEntryResponse) GetOid() string { + if m != nil { + return m.Oid + } + return "" +} + +func (m *TreeEntryResponse) GetSize() int64 { + if m != nil { + return m.Size + } + return 0 +} + +func (m *TreeEntryResponse) GetMode() int32 { + if m != nil { + return m.Mode + } + return 0 +} + +func (m *TreeEntryResponse) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +type CommitsBetweenRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + From []byte `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` + To []byte `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` +} + +func (m *CommitsBetweenRequest) Reset() { *m = CommitsBetweenRequest{} } +func (m *CommitsBetweenRequest) String() string { return proto.CompactTextString(m) } +func (*CommitsBetweenRequest) ProtoMessage() {} +func (*CommitsBetweenRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{6} } + +func (m *CommitsBetweenRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *CommitsBetweenRequest) GetFrom() []byte { + if m != nil { + return m.From + } + return nil +} + +func (m *CommitsBetweenRequest) GetTo() []byte { + if m != nil { + return m.To + } + return nil +} + +type CommitsBetweenResponse struct { + Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits" json:"commits,omitempty"` +} + +func (m *CommitsBetweenResponse) Reset() { *m = CommitsBetweenResponse{} } +func (m *CommitsBetweenResponse) String() string { return proto.CompactTextString(m) } +func (*CommitsBetweenResponse) ProtoMessage() {} +func (*CommitsBetweenResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{7} } + +func (m *CommitsBetweenResponse) GetCommits() []*GitCommit { + if m != nil { + return m.Commits + } + return nil +} + +type CountCommitsRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + After *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=after" json:"after,omitempty"` + Before *google_protobuf.Timestamp `protobuf:"bytes,4,opt,name=before" json:"before,omitempty"` + Path []byte `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` + MaxCount int32 `protobuf:"varint,6,opt,name=max_count,json=maxCount" json:"max_count,omitempty"` + // all and revision are mutually exclusive + All bool `protobuf:"varint,7,opt,name=all" json:"all,omitempty"` +} + +func (m *CountCommitsRequest) Reset() { *m = CountCommitsRequest{} } +func (m *CountCommitsRequest) String() string { return proto.CompactTextString(m) } +func (*CountCommitsRequest) ProtoMessage() {} +func (*CountCommitsRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{8} } + +func (m *CountCommitsRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *CountCommitsRequest) GetRevision() []byte { + if m != nil { + return m.Revision + } + return nil +} + +func (m *CountCommitsRequest) GetAfter() *google_protobuf.Timestamp { + if m != nil { + return m.After + } + return nil +} + +func (m *CountCommitsRequest) GetBefore() *google_protobuf.Timestamp { + if m != nil { + return m.Before + } + return nil +} + +func (m *CountCommitsRequest) GetPath() []byte { + if m != nil { + return m.Path + } + return nil +} + +func (m *CountCommitsRequest) GetMaxCount() int32 { + if m != nil { + return m.MaxCount + } + return 0 +} + +func (m *CountCommitsRequest) GetAll() bool { + if m != nil { + return m.All + } + return false +} + +type CountCommitsResponse struct { + Count int32 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"` +} + +func (m *CountCommitsResponse) Reset() { *m = CountCommitsResponse{} } +func (m *CountCommitsResponse) String() string { return proto.CompactTextString(m) } +func (*CountCommitsResponse) ProtoMessage() {} +func (*CountCommitsResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{9} } + +func (m *CountCommitsResponse) GetCount() int32 { + if m != nil { + return m.Count + } + return 0 +} + +type TreeEntry struct { + // OID of the object this tree entry points to + Oid string `protobuf:"bytes,1,opt,name=oid" json:"oid,omitempty"` + // OID of the tree attached to commit_oid + RootOid string `protobuf:"bytes,2,opt,name=root_oid,json=rootOid" json:"root_oid,omitempty"` + // Path relative to repository root + Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` + Type TreeEntry_EntryType `protobuf:"varint,4,opt,name=type,enum=gitaly.TreeEntry_EntryType" json:"type,omitempty"` + // File mode e.g. 0644 + Mode int32 `protobuf:"varint,5,opt,name=mode" json:"mode,omitempty"` + // The commit object via which this entry was retrieved + CommitOid string `protobuf:"bytes,6,opt,name=commit_oid,json=commitOid" json:"commit_oid,omitempty"` + // Relative path of the first subdir that doesn't have only one directory descendant + FlatPath []byte `protobuf:"bytes,7,opt,name=flat_path,json=flatPath,proto3" json:"flat_path,omitempty"` +} + +func (m *TreeEntry) Reset() { *m = TreeEntry{} } +func (m *TreeEntry) String() string { return proto.CompactTextString(m) } +func (*TreeEntry) ProtoMessage() {} +func (*TreeEntry) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{10} } + +func (m *TreeEntry) GetOid() string { + if m != nil { + return m.Oid + } + return "" +} + +func (m *TreeEntry) GetRootOid() string { + if m != nil { + return m.RootOid + } + return "" +} + +func (m *TreeEntry) GetPath() []byte { + if m != nil { + return m.Path + } + return nil +} + +func (m *TreeEntry) GetType() TreeEntry_EntryType { + if m != nil { + return m.Type + } + return TreeEntry_BLOB +} + +func (m *TreeEntry) GetMode() int32 { + if m != nil { + return m.Mode + } + return 0 +} + +func (m *TreeEntry) GetCommitOid() string { + if m != nil { + return m.CommitOid + } + return "" +} + +func (m *TreeEntry) GetFlatPath() []byte { + if m != nil { + return m.FlatPath + } + return nil +} + +type GetTreeEntriesRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` + Recursive bool `protobuf:"varint,4,opt,name=recursive" json:"recursive,omitempty"` +} + +func (m *GetTreeEntriesRequest) Reset() { *m = GetTreeEntriesRequest{} } +func (m *GetTreeEntriesRequest) String() string { return proto.CompactTextString(m) } +func (*GetTreeEntriesRequest) ProtoMessage() {} +func (*GetTreeEntriesRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{11} } + +func (m *GetTreeEntriesRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *GetTreeEntriesRequest) GetRevision() []byte { + if m != nil { + return m.Revision + } + return nil +} + +func (m *GetTreeEntriesRequest) GetPath() []byte { + if m != nil { + return m.Path + } + return nil +} + +func (m *GetTreeEntriesRequest) GetRecursive() bool { + if m != nil { + return m.Recursive + } + return false +} + +type GetTreeEntriesResponse struct { + Entries []*TreeEntry `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"` +} + +func (m *GetTreeEntriesResponse) Reset() { *m = GetTreeEntriesResponse{} } +func (m *GetTreeEntriesResponse) String() string { return proto.CompactTextString(m) } +func (*GetTreeEntriesResponse) ProtoMessage() {} +func (*GetTreeEntriesResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{12} } + +func (m *GetTreeEntriesResponse) GetEntries() []*TreeEntry { + if m != nil { + return m.Entries + } + return nil +} + +type ListFilesRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` +} + +func (m *ListFilesRequest) Reset() { *m = ListFilesRequest{} } +func (m *ListFilesRequest) String() string { return proto.CompactTextString(m) } +func (*ListFilesRequest) ProtoMessage() {} +func (*ListFilesRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{13} } + +func (m *ListFilesRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *ListFilesRequest) GetRevision() []byte { + if m != nil { + return m.Revision + } + return nil +} + +// A single 'page' of the paginated response +type ListFilesResponse struct { + // Remember to force encoding utf-8 on the client side + Paths [][]byte `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"` +} + +func (m *ListFilesResponse) Reset() { *m = ListFilesResponse{} } +func (m *ListFilesResponse) String() string { return proto.CompactTextString(m) } +func (*ListFilesResponse) ProtoMessage() {} +func (*ListFilesResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{14} } + +func (m *ListFilesResponse) GetPaths() [][]byte { + if m != nil { + return m.Paths + } + return nil +} + +type FindCommitRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` +} + +func (m *FindCommitRequest) Reset() { *m = FindCommitRequest{} } +func (m *FindCommitRequest) String() string { return proto.CompactTextString(m) } +func (*FindCommitRequest) ProtoMessage() {} +func (*FindCommitRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{15} } + +func (m *FindCommitRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *FindCommitRequest) GetRevision() []byte { + if m != nil { + return m.Revision + } + return nil +} + +type FindCommitResponse struct { + // commit is nil when the commit was not found + Commit *GitCommit `protobuf:"bytes,1,opt,name=commit" json:"commit,omitempty"` +} + +func (m *FindCommitResponse) Reset() { *m = FindCommitResponse{} } +func (m *FindCommitResponse) String() string { return proto.CompactTextString(m) } +func (*FindCommitResponse) ProtoMessage() {} +func (*FindCommitResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{16} } + +func (m *FindCommitResponse) GetCommit() *GitCommit { + if m != nil { + return m.Commit + } + return nil +} + +type ListCommitsByOidRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Oid []string `protobuf:"bytes,2,rep,name=oid" json:"oid,omitempty"` +} + +func (m *ListCommitsByOidRequest) Reset() { *m = ListCommitsByOidRequest{} } +func (m *ListCommitsByOidRequest) String() string { return proto.CompactTextString(m) } +func (*ListCommitsByOidRequest) ProtoMessage() {} +func (*ListCommitsByOidRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{17} } + +func (m *ListCommitsByOidRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *ListCommitsByOidRequest) GetOid() []string { + if m != nil { + return m.Oid + } + return nil +} + +type ListCommitsByOidResponse struct { + Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits" json:"commits,omitempty"` +} + +func (m *ListCommitsByOidResponse) Reset() { *m = ListCommitsByOidResponse{} } +func (m *ListCommitsByOidResponse) String() string { return proto.CompactTextString(m) } +func (*ListCommitsByOidResponse) ProtoMessage() {} +func (*ListCommitsByOidResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{18} } + +func (m *ListCommitsByOidResponse) GetCommits() []*GitCommit { + if m != nil { + return m.Commits + } + return nil +} + +type FindAllCommitsRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + // When nil, return all commits reachable by any branch in the repo + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + MaxCount int32 `protobuf:"varint,3,opt,name=max_count,json=maxCount" json:"max_count,omitempty"` + Skip int32 `protobuf:"varint,4,opt,name=skip" json:"skip,omitempty"` + Order FindAllCommitsRequest_Order `protobuf:"varint,5,opt,name=order,enum=gitaly.FindAllCommitsRequest_Order" json:"order,omitempty"` +} + +func (m *FindAllCommitsRequest) Reset() { *m = FindAllCommitsRequest{} } +func (m *FindAllCommitsRequest) String() string { return proto.CompactTextString(m) } +func (*FindAllCommitsRequest) ProtoMessage() {} +func (*FindAllCommitsRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{19} } + +func (m *FindAllCommitsRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *FindAllCommitsRequest) GetRevision() []byte { + if m != nil { + return m.Revision + } + return nil +} + +func (m *FindAllCommitsRequest) GetMaxCount() int32 { + if m != nil { + return m.MaxCount + } + return 0 +} + +func (m *FindAllCommitsRequest) GetSkip() int32 { + if m != nil { + return m.Skip + } + return 0 +} + +func (m *FindAllCommitsRequest) GetOrder() FindAllCommitsRequest_Order { + if m != nil { + return m.Order + } + return FindAllCommitsRequest_NONE +} + +// A single 'page' of the result set +type FindAllCommitsResponse struct { + Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits" json:"commits,omitempty"` +} + +func (m *FindAllCommitsResponse) Reset() { *m = FindAllCommitsResponse{} } +func (m *FindAllCommitsResponse) String() string { return proto.CompactTextString(m) } +func (*FindAllCommitsResponse) ProtoMessage() {} +func (*FindAllCommitsResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{20} } + +func (m *FindAllCommitsResponse) GetCommits() []*GitCommit { + if m != nil { + return m.Commits + } + return nil +} + +type FindCommitsRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + Limit int32 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"` + Offset int32 `protobuf:"varint,4,opt,name=offset" json:"offset,omitempty"` + Paths [][]byte `protobuf:"bytes,5,rep,name=paths,proto3" json:"paths,omitempty"` + Follow bool `protobuf:"varint,6,opt,name=follow" json:"follow,omitempty"` + SkipMerges bool `protobuf:"varint,7,opt,name=skip_merges,json=skipMerges" json:"skip_merges,omitempty"` + DisableWalk bool `protobuf:"varint,8,opt,name=disable_walk,json=disableWalk" json:"disable_walk,omitempty"` + After *google_protobuf.Timestamp `protobuf:"bytes,9,opt,name=after" json:"after,omitempty"` + Before *google_protobuf.Timestamp `protobuf:"bytes,10,opt,name=before" json:"before,omitempty"` + // all and revision are mutually exclusive + All bool `protobuf:"varint,11,opt,name=all" json:"all,omitempty"` +} + +func (m *FindCommitsRequest) Reset() { *m = FindCommitsRequest{} } +func (m *FindCommitsRequest) String() string { return proto.CompactTextString(m) } +func (*FindCommitsRequest) ProtoMessage() {} +func (*FindCommitsRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{21} } + +func (m *FindCommitsRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *FindCommitsRequest) GetRevision() []byte { + if m != nil { + return m.Revision + } + return nil +} + +func (m *FindCommitsRequest) GetLimit() int32 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *FindCommitsRequest) GetOffset() int32 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *FindCommitsRequest) GetPaths() [][]byte { + if m != nil { + return m.Paths + } + return nil +} + +func (m *FindCommitsRequest) GetFollow() bool { + if m != nil { + return m.Follow + } + return false +} + +func (m *FindCommitsRequest) GetSkipMerges() bool { + if m != nil { + return m.SkipMerges + } + return false +} + +func (m *FindCommitsRequest) GetDisableWalk() bool { + if m != nil { + return m.DisableWalk + } + return false +} + +func (m *FindCommitsRequest) GetAfter() *google_protobuf.Timestamp { + if m != nil { + return m.After + } + return nil +} + +func (m *FindCommitsRequest) GetBefore() *google_protobuf.Timestamp { + if m != nil { + return m.Before + } + return nil +} + +func (m *FindCommitsRequest) GetAll() bool { + if m != nil { + return m.All + } + return false +} + +// A single 'page' of the result set +type FindCommitsResponse struct { + Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits" json:"commits,omitempty"` +} + +func (m *FindCommitsResponse) Reset() { *m = FindCommitsResponse{} } +func (m *FindCommitsResponse) String() string { return proto.CompactTextString(m) } +func (*FindCommitsResponse) ProtoMessage() {} +func (*FindCommitsResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{22} } + +func (m *FindCommitsResponse) GetCommits() []*GitCommit { + if m != nil { + return m.Commits + } + return nil +} + +type CommitLanguagesRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` +} + +func (m *CommitLanguagesRequest) Reset() { *m = CommitLanguagesRequest{} } +func (m *CommitLanguagesRequest) String() string { return proto.CompactTextString(m) } +func (*CommitLanguagesRequest) ProtoMessage() {} +func (*CommitLanguagesRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{23} } + +func (m *CommitLanguagesRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *CommitLanguagesRequest) GetRevision() []byte { + if m != nil { + return m.Revision + } + return nil +} + +type CommitLanguagesResponse struct { + Languages []*CommitLanguagesResponse_Language `protobuf:"bytes,1,rep,name=languages" json:"languages,omitempty"` +} + +func (m *CommitLanguagesResponse) Reset() { *m = CommitLanguagesResponse{} } +func (m *CommitLanguagesResponse) String() string { return proto.CompactTextString(m) } +func (*CommitLanguagesResponse) ProtoMessage() {} +func (*CommitLanguagesResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{24} } + +func (m *CommitLanguagesResponse) GetLanguages() []*CommitLanguagesResponse_Language { + if m != nil { + return m.Languages + } + return nil +} + +type CommitLanguagesResponse_Language struct { + Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Share float32 `protobuf:"fixed32,2,opt,name=share" json:"share,omitempty"` + Color string `protobuf:"bytes,3,opt,name=color" json:"color,omitempty"` +} + +func (m *CommitLanguagesResponse_Language) Reset() { *m = CommitLanguagesResponse_Language{} } +func (m *CommitLanguagesResponse_Language) String() string { return proto.CompactTextString(m) } +func (*CommitLanguagesResponse_Language) ProtoMessage() {} +func (*CommitLanguagesResponse_Language) Descriptor() ([]byte, []int) { + return fileDescriptor2, []int{24, 0} +} + +func (m *CommitLanguagesResponse_Language) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *CommitLanguagesResponse_Language) GetShare() float32 { + if m != nil { + return m.Share + } + return 0 +} + +func (m *CommitLanguagesResponse_Language) GetColor() string { + if m != nil { + return m.Color + } + return "" +} + +type RawBlameRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` +} + +func (m *RawBlameRequest) Reset() { *m = RawBlameRequest{} } +func (m *RawBlameRequest) String() string { return proto.CompactTextString(m) } +func (*RawBlameRequest) ProtoMessage() {} +func (*RawBlameRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{25} } + +func (m *RawBlameRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *RawBlameRequest) GetRevision() []byte { + if m != nil { + return m.Revision + } + return nil +} + +func (m *RawBlameRequest) GetPath() []byte { + if m != nil { + return m.Path + } + return nil +} + +type RawBlameResponse struct { + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` +} + +func (m *RawBlameResponse) Reset() { *m = RawBlameResponse{} } +func (m *RawBlameResponse) String() string { return proto.CompactTextString(m) } +func (*RawBlameResponse) ProtoMessage() {} +func (*RawBlameResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{26} } + +func (m *RawBlameResponse) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +type LastCommitForPathRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` +} + +func (m *LastCommitForPathRequest) Reset() { *m = LastCommitForPathRequest{} } +func (m *LastCommitForPathRequest) String() string { return proto.CompactTextString(m) } +func (*LastCommitForPathRequest) ProtoMessage() {} +func (*LastCommitForPathRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{27} } + +func (m *LastCommitForPathRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *LastCommitForPathRequest) GetRevision() []byte { + if m != nil { + return m.Revision + } + return nil +} + +func (m *LastCommitForPathRequest) GetPath() []byte { + if m != nil { + return m.Path + } + return nil +} + +type LastCommitForPathResponse struct { + // commit is nil when the commit was not found + Commit *GitCommit `protobuf:"bytes,1,opt,name=commit" json:"commit,omitempty"` +} + +func (m *LastCommitForPathResponse) Reset() { *m = LastCommitForPathResponse{} } +func (m *LastCommitForPathResponse) String() string { return proto.CompactTextString(m) } +func (*LastCommitForPathResponse) ProtoMessage() {} +func (*LastCommitForPathResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{28} } + +func (m *LastCommitForPathResponse) GetCommit() *GitCommit { + if m != nil { + return m.Commit + } + return nil +} + +type ListLastCommitsForTreeRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Revision string `protobuf:"bytes,2,opt,name=revision" json:"revision,omitempty"` + Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` + // limit == -1 will get the last commit for all paths + Limit int32 `protobuf:"varint,4,opt,name=limit" json:"limit,omitempty"` + Offset int32 `protobuf:"varint,5,opt,name=offset" json:"offset,omitempty"` +} + +func (m *ListLastCommitsForTreeRequest) Reset() { *m = ListLastCommitsForTreeRequest{} } +func (m *ListLastCommitsForTreeRequest) String() string { return proto.CompactTextString(m) } +func (*ListLastCommitsForTreeRequest) ProtoMessage() {} +func (*ListLastCommitsForTreeRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{29} } + +func (m *ListLastCommitsForTreeRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *ListLastCommitsForTreeRequest) GetRevision() string { + if m != nil { + return m.Revision + } + return "" +} + +func (m *ListLastCommitsForTreeRequest) GetPath() []byte { + if m != nil { + return m.Path + } + return nil +} + +func (m *ListLastCommitsForTreeRequest) GetLimit() int32 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *ListLastCommitsForTreeRequest) GetOffset() int32 { + if m != nil { + return m.Offset + } + return 0 +} + +type ListLastCommitsForTreeResponse struct { + Commits []*ListLastCommitsForTreeResponse_CommitForTree `protobuf:"bytes,1,rep,name=commits" json:"commits,omitempty"` +} + +func (m *ListLastCommitsForTreeResponse) Reset() { *m = ListLastCommitsForTreeResponse{} } +func (m *ListLastCommitsForTreeResponse) String() string { return proto.CompactTextString(m) } +func (*ListLastCommitsForTreeResponse) ProtoMessage() {} +func (*ListLastCommitsForTreeResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{30} } + +func (m *ListLastCommitsForTreeResponse) GetCommits() []*ListLastCommitsForTreeResponse_CommitForTree { + if m != nil { + return m.Commits + } + return nil +} + +type ListLastCommitsForTreeResponse_CommitForTree struct { + Commit *GitCommit `protobuf:"bytes,2,opt,name=commit" json:"commit,omitempty"` + Path string `protobuf:"bytes,3,opt,name=path" json:"path,omitempty"` +} + +func (m *ListLastCommitsForTreeResponse_CommitForTree) Reset() { + *m = ListLastCommitsForTreeResponse_CommitForTree{} +} +func (m *ListLastCommitsForTreeResponse_CommitForTree) String() string { + return proto.CompactTextString(m) +} +func (*ListLastCommitsForTreeResponse_CommitForTree) ProtoMessage() {} +func (*ListLastCommitsForTreeResponse_CommitForTree) Descriptor() ([]byte, []int) { + return fileDescriptor2, []int{30, 0} +} + +func (m *ListLastCommitsForTreeResponse_CommitForTree) GetCommit() *GitCommit { + if m != nil { + return m.Commit + } + return nil +} + +func (m *ListLastCommitsForTreeResponse_CommitForTree) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +type CommitsByMessageRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` + Offset int32 `protobuf:"varint,3,opt,name=offset" json:"offset,omitempty"` + Limit int32 `protobuf:"varint,4,opt,name=limit" json:"limit,omitempty"` + Path []byte `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` + Query string `protobuf:"bytes,6,opt,name=query" json:"query,omitempty"` +} + +func (m *CommitsByMessageRequest) Reset() { *m = CommitsByMessageRequest{} } +func (m *CommitsByMessageRequest) String() string { return proto.CompactTextString(m) } +func (*CommitsByMessageRequest) ProtoMessage() {} +func (*CommitsByMessageRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{31} } + +func (m *CommitsByMessageRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *CommitsByMessageRequest) GetRevision() []byte { + if m != nil { + return m.Revision + } + return nil +} + +func (m *CommitsByMessageRequest) GetOffset() int32 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *CommitsByMessageRequest) GetLimit() int32 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *CommitsByMessageRequest) GetPath() []byte { + if m != nil { + return m.Path + } + return nil +} + +func (m *CommitsByMessageRequest) GetQuery() string { + if m != nil { + return m.Query + } + return "" +} + +// One 'page' of the paginated response of CommitsByMessage +type CommitsByMessageResponse struct { + Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits" json:"commits,omitempty"` +} + +func (m *CommitsByMessageResponse) Reset() { *m = CommitsByMessageResponse{} } +func (m *CommitsByMessageResponse) String() string { return proto.CompactTextString(m) } +func (*CommitsByMessageResponse) ProtoMessage() {} +func (*CommitsByMessageResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{32} } + +func (m *CommitsByMessageResponse) GetCommits() []*GitCommit { + if m != nil { + return m.Commits + } + return nil +} + +type FilterShasWithSignaturesRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Shas [][]byte `protobuf:"bytes,2,rep,name=shas,proto3" json:"shas,omitempty"` +} + +func (m *FilterShasWithSignaturesRequest) Reset() { *m = FilterShasWithSignaturesRequest{} } +func (m *FilterShasWithSignaturesRequest) String() string { return proto.CompactTextString(m) } +func (*FilterShasWithSignaturesRequest) ProtoMessage() {} +func (*FilterShasWithSignaturesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor2, []int{33} +} + +func (m *FilterShasWithSignaturesRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *FilterShasWithSignaturesRequest) GetShas() [][]byte { + if m != nil { + return m.Shas + } + return nil +} + +type FilterShasWithSignaturesResponse struct { + Shas [][]byte `protobuf:"bytes,1,rep,name=shas,proto3" json:"shas,omitempty"` +} + +func (m *FilterShasWithSignaturesResponse) Reset() { *m = FilterShasWithSignaturesResponse{} } +func (m *FilterShasWithSignaturesResponse) String() string { return proto.CompactTextString(m) } +func (*FilterShasWithSignaturesResponse) ProtoMessage() {} +func (*FilterShasWithSignaturesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor2, []int{34} +} + +func (m *FilterShasWithSignaturesResponse) GetShas() [][]byte { + if m != nil { + return m.Shas + } + return nil +} + +type ExtractCommitSignatureRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` +} + +func (m *ExtractCommitSignatureRequest) Reset() { *m = ExtractCommitSignatureRequest{} } +func (m *ExtractCommitSignatureRequest) String() string { return proto.CompactTextString(m) } +func (*ExtractCommitSignatureRequest) ProtoMessage() {} +func (*ExtractCommitSignatureRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{35} } + +func (m *ExtractCommitSignatureRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *ExtractCommitSignatureRequest) GetCommitId() string { + if m != nil { + return m.CommitId + } + return "" +} + +// Either of the 'signature' and 'signed_text' fields may be present. It +// is up to the caller to stitch them together. +type ExtractCommitSignatureResponse struct { + Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` + SignedText []byte `protobuf:"bytes,2,opt,name=signed_text,json=signedText,proto3" json:"signed_text,omitempty"` +} + +func (m *ExtractCommitSignatureResponse) Reset() { *m = ExtractCommitSignatureResponse{} } +func (m *ExtractCommitSignatureResponse) String() string { return proto.CompactTextString(m) } +func (*ExtractCommitSignatureResponse) ProtoMessage() {} +func (*ExtractCommitSignatureResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{36} } + +func (m *ExtractCommitSignatureResponse) GetSignature() []byte { + if m != nil { + return m.Signature + } + return nil +} + +func (m *ExtractCommitSignatureResponse) GetSignedText() []byte { + if m != nil { + return m.SignedText + } + return nil +} + +type GetCommitSignaturesRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + CommitIds []string `protobuf:"bytes,2,rep,name=commit_ids,json=commitIds" json:"commit_ids,omitempty"` +} + +func (m *GetCommitSignaturesRequest) Reset() { *m = GetCommitSignaturesRequest{} } +func (m *GetCommitSignaturesRequest) String() string { return proto.CompactTextString(m) } +func (*GetCommitSignaturesRequest) ProtoMessage() {} +func (*GetCommitSignaturesRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{37} } + +func (m *GetCommitSignaturesRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *GetCommitSignaturesRequest) GetCommitIds() []string { + if m != nil { + return m.CommitIds + } + return nil +} + +type GetCommitSignaturesResponse struct { + // Only present for a new commit signature data. + CommitId string `protobuf:"bytes,1,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` + // See ExtractCommitSignatureResponse above for how these fields should be handled. + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` + SignedText []byte `protobuf:"bytes,3,opt,name=signed_text,json=signedText,proto3" json:"signed_text,omitempty"` +} + +func (m *GetCommitSignaturesResponse) Reset() { *m = GetCommitSignaturesResponse{} } +func (m *GetCommitSignaturesResponse) String() string { return proto.CompactTextString(m) } +func (*GetCommitSignaturesResponse) ProtoMessage() {} +func (*GetCommitSignaturesResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{38} } + +func (m *GetCommitSignaturesResponse) GetCommitId() string { + if m != nil { + return m.CommitId + } + return "" +} + +func (m *GetCommitSignaturesResponse) GetSignature() []byte { + if m != nil { + return m.Signature + } + return nil +} + +func (m *GetCommitSignaturesResponse) GetSignedText() []byte { + if m != nil { + return m.SignedText + } + return nil +} + +type GetCommitMessagesRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + CommitIds []string `protobuf:"bytes,2,rep,name=commit_ids,json=commitIds" json:"commit_ids,omitempty"` +} + +func (m *GetCommitMessagesRequest) Reset() { *m = GetCommitMessagesRequest{} } +func (m *GetCommitMessagesRequest) String() string { return proto.CompactTextString(m) } +func (*GetCommitMessagesRequest) ProtoMessage() {} +func (*GetCommitMessagesRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{39} } + +func (m *GetCommitMessagesRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *GetCommitMessagesRequest) GetCommitIds() []string { + if m != nil { + return m.CommitIds + } + return nil +} + +type GetCommitMessagesResponse struct { + // Only present for a new commit message + CommitId string `protobuf:"bytes,1,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` + Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` +} + +func (m *GetCommitMessagesResponse) Reset() { *m = GetCommitMessagesResponse{} } +func (m *GetCommitMessagesResponse) String() string { return proto.CompactTextString(m) } +func (*GetCommitMessagesResponse) ProtoMessage() {} +func (*GetCommitMessagesResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{40} } + +func (m *GetCommitMessagesResponse) GetCommitId() string { + if m != nil { + return m.CommitId + } + return "" +} + +func (m *GetCommitMessagesResponse) GetMessage() []byte { + if m != nil { + return m.Message + } + return nil +} + +func init() { + proto.RegisterType((*CommitStatsRequest)(nil), "gitaly.CommitStatsRequest") + proto.RegisterType((*CommitStatsResponse)(nil), "gitaly.CommitStatsResponse") + proto.RegisterType((*CommitIsAncestorRequest)(nil), "gitaly.CommitIsAncestorRequest") + proto.RegisterType((*CommitIsAncestorResponse)(nil), "gitaly.CommitIsAncestorResponse") + proto.RegisterType((*TreeEntryRequest)(nil), "gitaly.TreeEntryRequest") + proto.RegisterType((*TreeEntryResponse)(nil), "gitaly.TreeEntryResponse") + proto.RegisterType((*CommitsBetweenRequest)(nil), "gitaly.CommitsBetweenRequest") + proto.RegisterType((*CommitsBetweenResponse)(nil), "gitaly.CommitsBetweenResponse") + proto.RegisterType((*CountCommitsRequest)(nil), "gitaly.CountCommitsRequest") + proto.RegisterType((*CountCommitsResponse)(nil), "gitaly.CountCommitsResponse") + proto.RegisterType((*TreeEntry)(nil), "gitaly.TreeEntry") + proto.RegisterType((*GetTreeEntriesRequest)(nil), "gitaly.GetTreeEntriesRequest") + proto.RegisterType((*GetTreeEntriesResponse)(nil), "gitaly.GetTreeEntriesResponse") + proto.RegisterType((*ListFilesRequest)(nil), "gitaly.ListFilesRequest") + proto.RegisterType((*ListFilesResponse)(nil), "gitaly.ListFilesResponse") + proto.RegisterType((*FindCommitRequest)(nil), "gitaly.FindCommitRequest") + proto.RegisterType((*FindCommitResponse)(nil), "gitaly.FindCommitResponse") + proto.RegisterType((*ListCommitsByOidRequest)(nil), "gitaly.ListCommitsByOidRequest") + proto.RegisterType((*ListCommitsByOidResponse)(nil), "gitaly.ListCommitsByOidResponse") + proto.RegisterType((*FindAllCommitsRequest)(nil), "gitaly.FindAllCommitsRequest") + proto.RegisterType((*FindAllCommitsResponse)(nil), "gitaly.FindAllCommitsResponse") + proto.RegisterType((*FindCommitsRequest)(nil), "gitaly.FindCommitsRequest") + proto.RegisterType((*FindCommitsResponse)(nil), "gitaly.FindCommitsResponse") + proto.RegisterType((*CommitLanguagesRequest)(nil), "gitaly.CommitLanguagesRequest") + proto.RegisterType((*CommitLanguagesResponse)(nil), "gitaly.CommitLanguagesResponse") + proto.RegisterType((*CommitLanguagesResponse_Language)(nil), "gitaly.CommitLanguagesResponse.Language") + proto.RegisterType((*RawBlameRequest)(nil), "gitaly.RawBlameRequest") + proto.RegisterType((*RawBlameResponse)(nil), "gitaly.RawBlameResponse") + proto.RegisterType((*LastCommitForPathRequest)(nil), "gitaly.LastCommitForPathRequest") + proto.RegisterType((*LastCommitForPathResponse)(nil), "gitaly.LastCommitForPathResponse") + proto.RegisterType((*ListLastCommitsForTreeRequest)(nil), "gitaly.ListLastCommitsForTreeRequest") + proto.RegisterType((*ListLastCommitsForTreeResponse)(nil), "gitaly.ListLastCommitsForTreeResponse") + proto.RegisterType((*ListLastCommitsForTreeResponse_CommitForTree)(nil), "gitaly.ListLastCommitsForTreeResponse.CommitForTree") + proto.RegisterType((*CommitsByMessageRequest)(nil), "gitaly.CommitsByMessageRequest") + proto.RegisterType((*CommitsByMessageResponse)(nil), "gitaly.CommitsByMessageResponse") + proto.RegisterType((*FilterShasWithSignaturesRequest)(nil), "gitaly.FilterShasWithSignaturesRequest") + proto.RegisterType((*FilterShasWithSignaturesResponse)(nil), "gitaly.FilterShasWithSignaturesResponse") + proto.RegisterType((*ExtractCommitSignatureRequest)(nil), "gitaly.ExtractCommitSignatureRequest") + proto.RegisterType((*ExtractCommitSignatureResponse)(nil), "gitaly.ExtractCommitSignatureResponse") + proto.RegisterType((*GetCommitSignaturesRequest)(nil), "gitaly.GetCommitSignaturesRequest") + proto.RegisterType((*GetCommitSignaturesResponse)(nil), "gitaly.GetCommitSignaturesResponse") + proto.RegisterType((*GetCommitMessagesRequest)(nil), "gitaly.GetCommitMessagesRequest") + proto.RegisterType((*GetCommitMessagesResponse)(nil), "gitaly.GetCommitMessagesResponse") + proto.RegisterEnum("gitaly.TreeEntryResponse_ObjectType", TreeEntryResponse_ObjectType_name, TreeEntryResponse_ObjectType_value) + proto.RegisterEnum("gitaly.TreeEntry_EntryType", TreeEntry_EntryType_name, TreeEntry_EntryType_value) + proto.RegisterEnum("gitaly.FindAllCommitsRequest_Order", FindAllCommitsRequest_Order_name, FindAllCommitsRequest_Order_value) +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// Client API for CommitService service + +type CommitServiceClient interface { + CommitIsAncestor(ctx context.Context, in *CommitIsAncestorRequest, opts ...grpc.CallOption) (*CommitIsAncestorResponse, error) + TreeEntry(ctx context.Context, in *TreeEntryRequest, opts ...grpc.CallOption) (CommitService_TreeEntryClient, error) + CommitsBetween(ctx context.Context, in *CommitsBetweenRequest, opts ...grpc.CallOption) (CommitService_CommitsBetweenClient, error) + CountCommits(ctx context.Context, in *CountCommitsRequest, opts ...grpc.CallOption) (*CountCommitsResponse, error) + GetTreeEntries(ctx context.Context, in *GetTreeEntriesRequest, opts ...grpc.CallOption) (CommitService_GetTreeEntriesClient, error) + ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (CommitService_ListFilesClient, error) + FindCommit(ctx context.Context, in *FindCommitRequest, opts ...grpc.CallOption) (*FindCommitResponse, error) + CommitStats(ctx context.Context, in *CommitStatsRequest, opts ...grpc.CallOption) (*CommitStatsResponse, error) + // Use a stream to paginate the result set + FindAllCommits(ctx context.Context, in *FindAllCommitsRequest, opts ...grpc.CallOption) (CommitService_FindAllCommitsClient, error) + FindCommits(ctx context.Context, in *FindCommitsRequest, opts ...grpc.CallOption) (CommitService_FindCommitsClient, error) + CommitLanguages(ctx context.Context, in *CommitLanguagesRequest, opts ...grpc.CallOption) (*CommitLanguagesResponse, error) + RawBlame(ctx context.Context, in *RawBlameRequest, opts ...grpc.CallOption) (CommitService_RawBlameClient, error) + LastCommitForPath(ctx context.Context, in *LastCommitForPathRequest, opts ...grpc.CallOption) (*LastCommitForPathResponse, error) + ListLastCommitsForTree(ctx context.Context, in *ListLastCommitsForTreeRequest, opts ...grpc.CallOption) (CommitService_ListLastCommitsForTreeClient, error) + CommitsByMessage(ctx context.Context, in *CommitsByMessageRequest, opts ...grpc.CallOption) (CommitService_CommitsByMessageClient, error) + ListCommitsByOid(ctx context.Context, in *ListCommitsByOidRequest, opts ...grpc.CallOption) (CommitService_ListCommitsByOidClient, error) + FilterShasWithSignatures(ctx context.Context, opts ...grpc.CallOption) (CommitService_FilterShasWithSignaturesClient, error) + // ExtractCommitSignature returns a stream because the signed text may be + // arbitrarily large and signature verification is impossible without the + // full text. + ExtractCommitSignature(ctx context.Context, in *ExtractCommitSignatureRequest, opts ...grpc.CallOption) (CommitService_ExtractCommitSignatureClient, error) + GetCommitSignatures(ctx context.Context, in *GetCommitSignaturesRequest, opts ...grpc.CallOption) (CommitService_GetCommitSignaturesClient, error) + GetCommitMessages(ctx context.Context, in *GetCommitMessagesRequest, opts ...grpc.CallOption) (CommitService_GetCommitMessagesClient, error) +} + +type commitServiceClient struct { + cc *grpc.ClientConn +} + +func NewCommitServiceClient(cc *grpc.ClientConn) CommitServiceClient { + return &commitServiceClient{cc} +} + +func (c *commitServiceClient) CommitIsAncestor(ctx context.Context, in *CommitIsAncestorRequest, opts ...grpc.CallOption) (*CommitIsAncestorResponse, error) { + out := new(CommitIsAncestorResponse) + err := grpc.Invoke(ctx, "/gitaly.CommitService/CommitIsAncestor", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *commitServiceClient) TreeEntry(ctx context.Context, in *TreeEntryRequest, opts ...grpc.CallOption) (CommitService_TreeEntryClient, error) { + stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[0], c.cc, "/gitaly.CommitService/TreeEntry", opts...) + if err != nil { + return nil, err + } + x := &commitServiceTreeEntryClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CommitService_TreeEntryClient interface { + Recv() (*TreeEntryResponse, error) + grpc.ClientStream +} + +type commitServiceTreeEntryClient struct { + grpc.ClientStream +} + +func (x *commitServiceTreeEntryClient) Recv() (*TreeEntryResponse, error) { + m := new(TreeEntryResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *commitServiceClient) CommitsBetween(ctx context.Context, in *CommitsBetweenRequest, opts ...grpc.CallOption) (CommitService_CommitsBetweenClient, error) { + stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[1], c.cc, "/gitaly.CommitService/CommitsBetween", opts...) + if err != nil { + return nil, err + } + x := &commitServiceCommitsBetweenClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CommitService_CommitsBetweenClient interface { + Recv() (*CommitsBetweenResponse, error) + grpc.ClientStream +} + +type commitServiceCommitsBetweenClient struct { + grpc.ClientStream +} + +func (x *commitServiceCommitsBetweenClient) Recv() (*CommitsBetweenResponse, error) { + m := new(CommitsBetweenResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *commitServiceClient) CountCommits(ctx context.Context, in *CountCommitsRequest, opts ...grpc.CallOption) (*CountCommitsResponse, error) { + out := new(CountCommitsResponse) + err := grpc.Invoke(ctx, "/gitaly.CommitService/CountCommits", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *commitServiceClient) GetTreeEntries(ctx context.Context, in *GetTreeEntriesRequest, opts ...grpc.CallOption) (CommitService_GetTreeEntriesClient, error) { + stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[2], c.cc, "/gitaly.CommitService/GetTreeEntries", opts...) + if err != nil { + return nil, err + } + x := &commitServiceGetTreeEntriesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CommitService_GetTreeEntriesClient interface { + Recv() (*GetTreeEntriesResponse, error) + grpc.ClientStream +} + +type commitServiceGetTreeEntriesClient struct { + grpc.ClientStream +} + +func (x *commitServiceGetTreeEntriesClient) Recv() (*GetTreeEntriesResponse, error) { + m := new(GetTreeEntriesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *commitServiceClient) ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (CommitService_ListFilesClient, error) { + stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[3], c.cc, "/gitaly.CommitService/ListFiles", opts...) + if err != nil { + return nil, err + } + x := &commitServiceListFilesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CommitService_ListFilesClient interface { + Recv() (*ListFilesResponse, error) + grpc.ClientStream +} + +type commitServiceListFilesClient struct { + grpc.ClientStream +} + +func (x *commitServiceListFilesClient) Recv() (*ListFilesResponse, error) { + m := new(ListFilesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *commitServiceClient) FindCommit(ctx context.Context, in *FindCommitRequest, opts ...grpc.CallOption) (*FindCommitResponse, error) { + out := new(FindCommitResponse) + err := grpc.Invoke(ctx, "/gitaly.CommitService/FindCommit", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *commitServiceClient) CommitStats(ctx context.Context, in *CommitStatsRequest, opts ...grpc.CallOption) (*CommitStatsResponse, error) { + out := new(CommitStatsResponse) + err := grpc.Invoke(ctx, "/gitaly.CommitService/CommitStats", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *commitServiceClient) FindAllCommits(ctx context.Context, in *FindAllCommitsRequest, opts ...grpc.CallOption) (CommitService_FindAllCommitsClient, error) { + stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[4], c.cc, "/gitaly.CommitService/FindAllCommits", opts...) + if err != nil { + return nil, err + } + x := &commitServiceFindAllCommitsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CommitService_FindAllCommitsClient interface { + Recv() (*FindAllCommitsResponse, error) + grpc.ClientStream +} + +type commitServiceFindAllCommitsClient struct { + grpc.ClientStream +} + +func (x *commitServiceFindAllCommitsClient) Recv() (*FindAllCommitsResponse, error) { + m := new(FindAllCommitsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *commitServiceClient) FindCommits(ctx context.Context, in *FindCommitsRequest, opts ...grpc.CallOption) (CommitService_FindCommitsClient, error) { + stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[5], c.cc, "/gitaly.CommitService/FindCommits", opts...) + if err != nil { + return nil, err + } + x := &commitServiceFindCommitsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CommitService_FindCommitsClient interface { + Recv() (*FindCommitsResponse, error) + grpc.ClientStream +} + +type commitServiceFindCommitsClient struct { + grpc.ClientStream +} + +func (x *commitServiceFindCommitsClient) Recv() (*FindCommitsResponse, error) { + m := new(FindCommitsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *commitServiceClient) CommitLanguages(ctx context.Context, in *CommitLanguagesRequest, opts ...grpc.CallOption) (*CommitLanguagesResponse, error) { + out := new(CommitLanguagesResponse) + err := grpc.Invoke(ctx, "/gitaly.CommitService/CommitLanguages", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *commitServiceClient) RawBlame(ctx context.Context, in *RawBlameRequest, opts ...grpc.CallOption) (CommitService_RawBlameClient, error) { + stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[6], c.cc, "/gitaly.CommitService/RawBlame", opts...) + if err != nil { + return nil, err + } + x := &commitServiceRawBlameClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CommitService_RawBlameClient interface { + Recv() (*RawBlameResponse, error) + grpc.ClientStream +} + +type commitServiceRawBlameClient struct { + grpc.ClientStream +} + +func (x *commitServiceRawBlameClient) Recv() (*RawBlameResponse, error) { + m := new(RawBlameResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *commitServiceClient) LastCommitForPath(ctx context.Context, in *LastCommitForPathRequest, opts ...grpc.CallOption) (*LastCommitForPathResponse, error) { + out := new(LastCommitForPathResponse) + err := grpc.Invoke(ctx, "/gitaly.CommitService/LastCommitForPath", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *commitServiceClient) ListLastCommitsForTree(ctx context.Context, in *ListLastCommitsForTreeRequest, opts ...grpc.CallOption) (CommitService_ListLastCommitsForTreeClient, error) { + stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[7], c.cc, "/gitaly.CommitService/ListLastCommitsForTree", opts...) + if err != nil { + return nil, err + } + x := &commitServiceListLastCommitsForTreeClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CommitService_ListLastCommitsForTreeClient interface { + Recv() (*ListLastCommitsForTreeResponse, error) + grpc.ClientStream +} + +type commitServiceListLastCommitsForTreeClient struct { + grpc.ClientStream +} + +func (x *commitServiceListLastCommitsForTreeClient) Recv() (*ListLastCommitsForTreeResponse, error) { + m := new(ListLastCommitsForTreeResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *commitServiceClient) CommitsByMessage(ctx context.Context, in *CommitsByMessageRequest, opts ...grpc.CallOption) (CommitService_CommitsByMessageClient, error) { + stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[8], c.cc, "/gitaly.CommitService/CommitsByMessage", opts...) + if err != nil { + return nil, err + } + x := &commitServiceCommitsByMessageClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CommitService_CommitsByMessageClient interface { + Recv() (*CommitsByMessageResponse, error) + grpc.ClientStream +} + +type commitServiceCommitsByMessageClient struct { + grpc.ClientStream +} + +func (x *commitServiceCommitsByMessageClient) Recv() (*CommitsByMessageResponse, error) { + m := new(CommitsByMessageResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *commitServiceClient) ListCommitsByOid(ctx context.Context, in *ListCommitsByOidRequest, opts ...grpc.CallOption) (CommitService_ListCommitsByOidClient, error) { + stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[9], c.cc, "/gitaly.CommitService/ListCommitsByOid", opts...) + if err != nil { + return nil, err + } + x := &commitServiceListCommitsByOidClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CommitService_ListCommitsByOidClient interface { + Recv() (*ListCommitsByOidResponse, error) + grpc.ClientStream +} + +type commitServiceListCommitsByOidClient struct { + grpc.ClientStream +} + +func (x *commitServiceListCommitsByOidClient) Recv() (*ListCommitsByOidResponse, error) { + m := new(ListCommitsByOidResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *commitServiceClient) FilterShasWithSignatures(ctx context.Context, opts ...grpc.CallOption) (CommitService_FilterShasWithSignaturesClient, error) { + stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[10], c.cc, "/gitaly.CommitService/FilterShasWithSignatures", opts...) + if err != nil { + return nil, err + } + x := &commitServiceFilterShasWithSignaturesClient{stream} + return x, nil +} + +type CommitService_FilterShasWithSignaturesClient interface { + Send(*FilterShasWithSignaturesRequest) error + Recv() (*FilterShasWithSignaturesResponse, error) + grpc.ClientStream +} + +type commitServiceFilterShasWithSignaturesClient struct { + grpc.ClientStream +} + +func (x *commitServiceFilterShasWithSignaturesClient) Send(m *FilterShasWithSignaturesRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *commitServiceFilterShasWithSignaturesClient) Recv() (*FilterShasWithSignaturesResponse, error) { + m := new(FilterShasWithSignaturesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *commitServiceClient) ExtractCommitSignature(ctx context.Context, in *ExtractCommitSignatureRequest, opts ...grpc.CallOption) (CommitService_ExtractCommitSignatureClient, error) { + stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[11], c.cc, "/gitaly.CommitService/ExtractCommitSignature", opts...) + if err != nil { + return nil, err + } + x := &commitServiceExtractCommitSignatureClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CommitService_ExtractCommitSignatureClient interface { + Recv() (*ExtractCommitSignatureResponse, error) + grpc.ClientStream +} + +type commitServiceExtractCommitSignatureClient struct { + grpc.ClientStream +} + +func (x *commitServiceExtractCommitSignatureClient) Recv() (*ExtractCommitSignatureResponse, error) { + m := new(ExtractCommitSignatureResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *commitServiceClient) GetCommitSignatures(ctx context.Context, in *GetCommitSignaturesRequest, opts ...grpc.CallOption) (CommitService_GetCommitSignaturesClient, error) { + stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[12], c.cc, "/gitaly.CommitService/GetCommitSignatures", opts...) + if err != nil { + return nil, err + } + x := &commitServiceGetCommitSignaturesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CommitService_GetCommitSignaturesClient interface { + Recv() (*GetCommitSignaturesResponse, error) + grpc.ClientStream +} + +type commitServiceGetCommitSignaturesClient struct { + grpc.ClientStream +} + +func (x *commitServiceGetCommitSignaturesClient) Recv() (*GetCommitSignaturesResponse, error) { + m := new(GetCommitSignaturesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *commitServiceClient) GetCommitMessages(ctx context.Context, in *GetCommitMessagesRequest, opts ...grpc.CallOption) (CommitService_GetCommitMessagesClient, error) { + stream, err := grpc.NewClientStream(ctx, &_CommitService_serviceDesc.Streams[13], c.cc, "/gitaly.CommitService/GetCommitMessages", opts...) + if err != nil { + return nil, err + } + x := &commitServiceGetCommitMessagesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type CommitService_GetCommitMessagesClient interface { + Recv() (*GetCommitMessagesResponse, error) + grpc.ClientStream +} + +type commitServiceGetCommitMessagesClient struct { + grpc.ClientStream +} + +func (x *commitServiceGetCommitMessagesClient) Recv() (*GetCommitMessagesResponse, error) { + m := new(GetCommitMessagesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// Server API for CommitService service + +type CommitServiceServer interface { + CommitIsAncestor(context.Context, *CommitIsAncestorRequest) (*CommitIsAncestorResponse, error) + TreeEntry(*TreeEntryRequest, CommitService_TreeEntryServer) error + CommitsBetween(*CommitsBetweenRequest, CommitService_CommitsBetweenServer) error + CountCommits(context.Context, *CountCommitsRequest) (*CountCommitsResponse, error) + GetTreeEntries(*GetTreeEntriesRequest, CommitService_GetTreeEntriesServer) error + ListFiles(*ListFilesRequest, CommitService_ListFilesServer) error + FindCommit(context.Context, *FindCommitRequest) (*FindCommitResponse, error) + CommitStats(context.Context, *CommitStatsRequest) (*CommitStatsResponse, error) + // Use a stream to paginate the result set + FindAllCommits(*FindAllCommitsRequest, CommitService_FindAllCommitsServer) error + FindCommits(*FindCommitsRequest, CommitService_FindCommitsServer) error + CommitLanguages(context.Context, *CommitLanguagesRequest) (*CommitLanguagesResponse, error) + RawBlame(*RawBlameRequest, CommitService_RawBlameServer) error + LastCommitForPath(context.Context, *LastCommitForPathRequest) (*LastCommitForPathResponse, error) + ListLastCommitsForTree(*ListLastCommitsForTreeRequest, CommitService_ListLastCommitsForTreeServer) error + CommitsByMessage(*CommitsByMessageRequest, CommitService_CommitsByMessageServer) error + ListCommitsByOid(*ListCommitsByOidRequest, CommitService_ListCommitsByOidServer) error + FilterShasWithSignatures(CommitService_FilterShasWithSignaturesServer) error + // ExtractCommitSignature returns a stream because the signed text may be + // arbitrarily large and signature verification is impossible without the + // full text. + ExtractCommitSignature(*ExtractCommitSignatureRequest, CommitService_ExtractCommitSignatureServer) error + GetCommitSignatures(*GetCommitSignaturesRequest, CommitService_GetCommitSignaturesServer) error + GetCommitMessages(*GetCommitMessagesRequest, CommitService_GetCommitMessagesServer) error +} + +func RegisterCommitServiceServer(s *grpc.Server, srv CommitServiceServer) { + s.RegisterService(&_CommitService_serviceDesc, srv) +} + +func _CommitService_CommitIsAncestor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CommitIsAncestorRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CommitServiceServer).CommitIsAncestor(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.CommitService/CommitIsAncestor", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CommitServiceServer).CommitIsAncestor(ctx, req.(*CommitIsAncestorRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CommitService_TreeEntry_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(TreeEntryRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CommitServiceServer).TreeEntry(m, &commitServiceTreeEntryServer{stream}) +} + +type CommitService_TreeEntryServer interface { + Send(*TreeEntryResponse) error + grpc.ServerStream +} + +type commitServiceTreeEntryServer struct { + grpc.ServerStream +} + +func (x *commitServiceTreeEntryServer) Send(m *TreeEntryResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _CommitService_CommitsBetween_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(CommitsBetweenRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CommitServiceServer).CommitsBetween(m, &commitServiceCommitsBetweenServer{stream}) +} + +type CommitService_CommitsBetweenServer interface { + Send(*CommitsBetweenResponse) error + grpc.ServerStream +} + +type commitServiceCommitsBetweenServer struct { + grpc.ServerStream +} + +func (x *commitServiceCommitsBetweenServer) Send(m *CommitsBetweenResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _CommitService_CountCommits_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CountCommitsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CommitServiceServer).CountCommits(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.CommitService/CountCommits", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CommitServiceServer).CountCommits(ctx, req.(*CountCommitsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CommitService_GetTreeEntries_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetTreeEntriesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CommitServiceServer).GetTreeEntries(m, &commitServiceGetTreeEntriesServer{stream}) +} + +type CommitService_GetTreeEntriesServer interface { + Send(*GetTreeEntriesResponse) error + grpc.ServerStream +} + +type commitServiceGetTreeEntriesServer struct { + grpc.ServerStream +} + +func (x *commitServiceGetTreeEntriesServer) Send(m *GetTreeEntriesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _CommitService_ListFiles_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListFilesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CommitServiceServer).ListFiles(m, &commitServiceListFilesServer{stream}) +} + +type CommitService_ListFilesServer interface { + Send(*ListFilesResponse) error + grpc.ServerStream +} + +type commitServiceListFilesServer struct { + grpc.ServerStream +} + +func (x *commitServiceListFilesServer) Send(m *ListFilesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _CommitService_FindCommit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindCommitRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CommitServiceServer).FindCommit(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.CommitService/FindCommit", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CommitServiceServer).FindCommit(ctx, req.(*FindCommitRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CommitService_CommitStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CommitStatsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CommitServiceServer).CommitStats(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.CommitService/CommitStats", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CommitServiceServer).CommitStats(ctx, req.(*CommitStatsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CommitService_FindAllCommits_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(FindAllCommitsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CommitServiceServer).FindAllCommits(m, &commitServiceFindAllCommitsServer{stream}) +} + +type CommitService_FindAllCommitsServer interface { + Send(*FindAllCommitsResponse) error + grpc.ServerStream +} + +type commitServiceFindAllCommitsServer struct { + grpc.ServerStream +} + +func (x *commitServiceFindAllCommitsServer) Send(m *FindAllCommitsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _CommitService_FindCommits_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(FindCommitsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CommitServiceServer).FindCommits(m, &commitServiceFindCommitsServer{stream}) +} + +type CommitService_FindCommitsServer interface { + Send(*FindCommitsResponse) error + grpc.ServerStream +} + +type commitServiceFindCommitsServer struct { + grpc.ServerStream +} + +func (x *commitServiceFindCommitsServer) Send(m *FindCommitsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _CommitService_CommitLanguages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CommitLanguagesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CommitServiceServer).CommitLanguages(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.CommitService/CommitLanguages", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CommitServiceServer).CommitLanguages(ctx, req.(*CommitLanguagesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CommitService_RawBlame_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(RawBlameRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CommitServiceServer).RawBlame(m, &commitServiceRawBlameServer{stream}) +} + +type CommitService_RawBlameServer interface { + Send(*RawBlameResponse) error + grpc.ServerStream +} + +type commitServiceRawBlameServer struct { + grpc.ServerStream +} + +func (x *commitServiceRawBlameServer) Send(m *RawBlameResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _CommitService_LastCommitForPath_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LastCommitForPathRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CommitServiceServer).LastCommitForPath(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.CommitService/LastCommitForPath", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CommitServiceServer).LastCommitForPath(ctx, req.(*LastCommitForPathRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CommitService_ListLastCommitsForTree_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListLastCommitsForTreeRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CommitServiceServer).ListLastCommitsForTree(m, &commitServiceListLastCommitsForTreeServer{stream}) +} + +type CommitService_ListLastCommitsForTreeServer interface { + Send(*ListLastCommitsForTreeResponse) error + grpc.ServerStream +} + +type commitServiceListLastCommitsForTreeServer struct { + grpc.ServerStream +} + +func (x *commitServiceListLastCommitsForTreeServer) Send(m *ListLastCommitsForTreeResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _CommitService_CommitsByMessage_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(CommitsByMessageRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CommitServiceServer).CommitsByMessage(m, &commitServiceCommitsByMessageServer{stream}) +} + +type CommitService_CommitsByMessageServer interface { + Send(*CommitsByMessageResponse) error + grpc.ServerStream +} + +type commitServiceCommitsByMessageServer struct { + grpc.ServerStream +} + +func (x *commitServiceCommitsByMessageServer) Send(m *CommitsByMessageResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _CommitService_ListCommitsByOid_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListCommitsByOidRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CommitServiceServer).ListCommitsByOid(m, &commitServiceListCommitsByOidServer{stream}) +} + +type CommitService_ListCommitsByOidServer interface { + Send(*ListCommitsByOidResponse) error + grpc.ServerStream +} + +type commitServiceListCommitsByOidServer struct { + grpc.ServerStream +} + +func (x *commitServiceListCommitsByOidServer) Send(m *ListCommitsByOidResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _CommitService_FilterShasWithSignatures_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(CommitServiceServer).FilterShasWithSignatures(&commitServiceFilterShasWithSignaturesServer{stream}) +} + +type CommitService_FilterShasWithSignaturesServer interface { + Send(*FilterShasWithSignaturesResponse) error + Recv() (*FilterShasWithSignaturesRequest, error) + grpc.ServerStream +} + +type commitServiceFilterShasWithSignaturesServer struct { + grpc.ServerStream +} + +func (x *commitServiceFilterShasWithSignaturesServer) Send(m *FilterShasWithSignaturesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *commitServiceFilterShasWithSignaturesServer) Recv() (*FilterShasWithSignaturesRequest, error) { + m := new(FilterShasWithSignaturesRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _CommitService_ExtractCommitSignature_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ExtractCommitSignatureRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CommitServiceServer).ExtractCommitSignature(m, &commitServiceExtractCommitSignatureServer{stream}) +} + +type CommitService_ExtractCommitSignatureServer interface { + Send(*ExtractCommitSignatureResponse) error + grpc.ServerStream +} + +type commitServiceExtractCommitSignatureServer struct { + grpc.ServerStream +} + +func (x *commitServiceExtractCommitSignatureServer) Send(m *ExtractCommitSignatureResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _CommitService_GetCommitSignatures_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetCommitSignaturesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CommitServiceServer).GetCommitSignatures(m, &commitServiceGetCommitSignaturesServer{stream}) +} + +type CommitService_GetCommitSignaturesServer interface { + Send(*GetCommitSignaturesResponse) error + grpc.ServerStream +} + +type commitServiceGetCommitSignaturesServer struct { + grpc.ServerStream +} + +func (x *commitServiceGetCommitSignaturesServer) Send(m *GetCommitSignaturesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _CommitService_GetCommitMessages_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetCommitMessagesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(CommitServiceServer).GetCommitMessages(m, &commitServiceGetCommitMessagesServer{stream}) +} + +type CommitService_GetCommitMessagesServer interface { + Send(*GetCommitMessagesResponse) error + grpc.ServerStream +} + +type commitServiceGetCommitMessagesServer struct { + grpc.ServerStream +} + +func (x *commitServiceGetCommitMessagesServer) Send(m *GetCommitMessagesResponse) error { + return x.ServerStream.SendMsg(m) +} + +var _CommitService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.CommitService", + HandlerType: (*CommitServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CommitIsAncestor", + Handler: _CommitService_CommitIsAncestor_Handler, + }, + { + MethodName: "CountCommits", + Handler: _CommitService_CountCommits_Handler, + }, + { + MethodName: "FindCommit", + Handler: _CommitService_FindCommit_Handler, + }, + { + MethodName: "CommitStats", + Handler: _CommitService_CommitStats_Handler, + }, + { + MethodName: "CommitLanguages", + Handler: _CommitService_CommitLanguages_Handler, + }, + { + MethodName: "LastCommitForPath", + Handler: _CommitService_LastCommitForPath_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "TreeEntry", + Handler: _CommitService_TreeEntry_Handler, + ServerStreams: true, + }, + { + StreamName: "CommitsBetween", + Handler: _CommitService_CommitsBetween_Handler, + ServerStreams: true, + }, + { + StreamName: "GetTreeEntries", + Handler: _CommitService_GetTreeEntries_Handler, + ServerStreams: true, + }, + { + StreamName: "ListFiles", + Handler: _CommitService_ListFiles_Handler, + ServerStreams: true, + }, + { + StreamName: "FindAllCommits", + Handler: _CommitService_FindAllCommits_Handler, + ServerStreams: true, + }, + { + StreamName: "FindCommits", + Handler: _CommitService_FindCommits_Handler, + ServerStreams: true, + }, + { + StreamName: "RawBlame", + Handler: _CommitService_RawBlame_Handler, + ServerStreams: true, + }, + { + StreamName: "ListLastCommitsForTree", + Handler: _CommitService_ListLastCommitsForTree_Handler, + ServerStreams: true, + }, + { + StreamName: "CommitsByMessage", + Handler: _CommitService_CommitsByMessage_Handler, + ServerStreams: true, + }, + { + StreamName: "ListCommitsByOid", + Handler: _CommitService_ListCommitsByOid_Handler, + ServerStreams: true, + }, + { + StreamName: "FilterShasWithSignatures", + Handler: _CommitService_FilterShasWithSignatures_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "ExtractCommitSignature", + Handler: _CommitService_ExtractCommitSignature_Handler, + ServerStreams: true, + }, + { + StreamName: "GetCommitSignatures", + Handler: _CommitService_GetCommitSignatures_Handler, + ServerStreams: true, + }, + { + StreamName: "GetCommitMessages", + Handler: _CommitService_GetCommitMessages_Handler, + ServerStreams: true, + }, + }, + Metadata: "commit.proto", +} + +func init() { proto.RegisterFile("commit.proto", fileDescriptor2) } + +var fileDescriptor2 = []byte{ + // 1786 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb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xe6, 0x77, 0x35, 0xe8, + 0x8b, 0xbb, 0xba, 0x1e, 0x21, 0xe5, 0xcb, 0xf7, 0x6b, 0x8e, 0xb8, 0x22, 0xbf, 0x8b, 0xf2, 0x8d, + 0xaa, 0xf7, 0x8b, 0xf9, 0x26, 0xd3, 0xcc, 0x2c, 0xe6, 0x9b, 0x6c, 0xab, 0x10, 0xb1, 0x5e, 0x7c, + 0x5c, 0x50, 0xac, 0x97, 0xbc, 0x6b, 0x28, 0xd6, 0xcb, 0xde, 0x25, 0x38, 0xeb, 0x10, 0x8c, 0x65, + 0x15, 0x1f, 0xfd, 0x58, 0x39, 0xd5, 0xad, 0xed, 0x87, 0xb9, 0x77, 0xf7, 0xc2, 0x48, 0xe4, 0x9e, + 0xb6, 0xaf, 0xb1, 0x73, 0xc9, 0x2f, 0xde, 0xea, 0x5c, 0x6e, 0x6d, 0x27, 0xd4, 0xb9, 0xdc, 0xde, + 0x03, 0x70, 0x0d, 0x2f, 0xe0, 0x51, 0x4e, 0x5d, 0x45, 0x38, 0x91, 0xac, 0x96, 0x54, 0x79, 0xf3, + 0xf3, 0x5b, 0xd7, 0x24, 0x64, 0xfc, 0x01, 0x36, 0x33, 0x15, 0x4d, 0x39, 0xf1, 0xb2, 0xda, 0xaa, + 0x9c, 0x78, 0x69, 0x39, 0x64, 0xdc, 0x2f, 0x2a, 0xfc, 0xf6, 0xfd, 0xd3, 0xff, 0x07, 0x00, 0x00, + 0xff, 0xff, 0xd1, 0xee, 0x8b, 0xf5, 0x03, 0x1b, 0x00, 0x00, +} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/conflicts.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/conflicts.pb.go new file mode 100644 index 0000000..3963e5f --- /dev/null +++ b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/conflicts.pb.go @@ -0,0 +1,650 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: conflicts.proto + +package gitalypb + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +type ListConflictFilesRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + OurCommitOid string `protobuf:"bytes,2,opt,name=our_commit_oid,json=ourCommitOid" json:"our_commit_oid,omitempty"` + TheirCommitOid string `protobuf:"bytes,3,opt,name=their_commit_oid,json=theirCommitOid" json:"their_commit_oid,omitempty"` +} + +func (m *ListConflictFilesRequest) Reset() { *m = ListConflictFilesRequest{} } +func (m *ListConflictFilesRequest) String() string { return proto.CompactTextString(m) } +func (*ListConflictFilesRequest) ProtoMessage() {} +func (*ListConflictFilesRequest) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} } + +func (m *ListConflictFilesRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *ListConflictFilesRequest) GetOurCommitOid() string { + if m != nil { + return m.OurCommitOid + } + return "" +} + +func (m *ListConflictFilesRequest) GetTheirCommitOid() string { + if m != nil { + return m.TheirCommitOid + } + return "" +} + +type ConflictFileHeader struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + CommitOid string `protobuf:"bytes,2,opt,name=commit_oid,json=commitOid" json:"commit_oid,omitempty"` + TheirPath []byte `protobuf:"bytes,3,opt,name=their_path,json=theirPath,proto3" json:"their_path,omitempty"` + OurPath []byte `protobuf:"bytes,4,opt,name=our_path,json=ourPath,proto3" json:"our_path,omitempty"` + OurMode int32 `protobuf:"varint,5,opt,name=our_mode,json=ourMode" json:"our_mode,omitempty"` +} + +func (m *ConflictFileHeader) Reset() { *m = ConflictFileHeader{} } +func (m *ConflictFileHeader) String() string { return proto.CompactTextString(m) } +func (*ConflictFileHeader) ProtoMessage() {} +func (*ConflictFileHeader) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{1} } + +func (m *ConflictFileHeader) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *ConflictFileHeader) GetCommitOid() string { + if m != nil { + return m.CommitOid + } + return "" +} + +func (m *ConflictFileHeader) GetTheirPath() []byte { + if m != nil { + return m.TheirPath + } + return nil +} + +func (m *ConflictFileHeader) GetOurPath() []byte { + if m != nil { + return m.OurPath + } + return nil +} + +func (m *ConflictFileHeader) GetOurMode() int32 { + if m != nil { + return m.OurMode + } + return 0 +} + +type ConflictFile struct { + // Types that are valid to be assigned to ConflictFilePayload: + // *ConflictFile_Header + // *ConflictFile_Content + ConflictFilePayload isConflictFile_ConflictFilePayload `protobuf_oneof:"conflict_file_payload"` +} + +func (m *ConflictFile) Reset() { *m = ConflictFile{} } +func (m *ConflictFile) String() string { return proto.CompactTextString(m) } +func (*ConflictFile) ProtoMessage() {} +func (*ConflictFile) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{2} } + +type isConflictFile_ConflictFilePayload interface{ isConflictFile_ConflictFilePayload() } + +type ConflictFile_Header struct { + Header *ConflictFileHeader `protobuf:"bytes,1,opt,name=header,oneof"` +} +type ConflictFile_Content struct { + Content []byte `protobuf:"bytes,2,opt,name=content,proto3,oneof"` +} + +func (*ConflictFile_Header) isConflictFile_ConflictFilePayload() {} +func (*ConflictFile_Content) isConflictFile_ConflictFilePayload() {} + +func (m *ConflictFile) GetConflictFilePayload() isConflictFile_ConflictFilePayload { + if m != nil { + return m.ConflictFilePayload + } + return nil +} + +func (m *ConflictFile) GetHeader() *ConflictFileHeader { + if x, ok := m.GetConflictFilePayload().(*ConflictFile_Header); ok { + return x.Header + } + return nil +} + +func (m *ConflictFile) GetContent() []byte { + if x, ok := m.GetConflictFilePayload().(*ConflictFile_Content); ok { + return x.Content + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*ConflictFile) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _ConflictFile_OneofMarshaler, _ConflictFile_OneofUnmarshaler, _ConflictFile_OneofSizer, []interface{}{ + (*ConflictFile_Header)(nil), + (*ConflictFile_Content)(nil), + } +} + +func _ConflictFile_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*ConflictFile) + // conflict_file_payload + switch x := m.ConflictFilePayload.(type) { + case *ConflictFile_Header: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Header); err != nil { + return err + } + case *ConflictFile_Content: + b.EncodeVarint(2<<3 | proto.WireBytes) + b.EncodeRawBytes(x.Content) + case nil: + default: + return fmt.Errorf("ConflictFile.ConflictFilePayload has unexpected type %T", x) + } + return nil +} + +func _ConflictFile_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*ConflictFile) + switch tag { + case 1: // conflict_file_payload.header + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(ConflictFileHeader) + err := b.DecodeMessage(msg) + m.ConflictFilePayload = &ConflictFile_Header{msg} + return true, err + case 2: // conflict_file_payload.content + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeRawBytes(true) + m.ConflictFilePayload = &ConflictFile_Content{x} + return true, err + default: + return false, nil + } +} + +func _ConflictFile_OneofSizer(msg proto.Message) (n int) { + m := msg.(*ConflictFile) + // conflict_file_payload + switch x := m.ConflictFilePayload.(type) { + case *ConflictFile_Header: + s := proto.Size(x.Header) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *ConflictFile_Content: + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(len(x.Content))) + n += len(x.Content) + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +type ListConflictFilesResponse struct { + Files []*ConflictFile `protobuf:"bytes,1,rep,name=files" json:"files,omitempty"` +} + +func (m *ListConflictFilesResponse) Reset() { *m = ListConflictFilesResponse{} } +func (m *ListConflictFilesResponse) String() string { return proto.CompactTextString(m) } +func (*ListConflictFilesResponse) ProtoMessage() {} +func (*ListConflictFilesResponse) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{3} } + +func (m *ListConflictFilesResponse) GetFiles() []*ConflictFile { + if m != nil { + return m.Files + } + return nil +} + +type ResolveConflictsRequestHeader struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + OurCommitOid string `protobuf:"bytes,2,opt,name=our_commit_oid,json=ourCommitOid" json:"our_commit_oid,omitempty"` + TargetRepository *Repository `protobuf:"bytes,3,opt,name=target_repository,json=targetRepository" json:"target_repository,omitempty"` + TheirCommitOid string `protobuf:"bytes,4,opt,name=their_commit_oid,json=theirCommitOid" json:"their_commit_oid,omitempty"` + SourceBranch []byte `protobuf:"bytes,5,opt,name=source_branch,json=sourceBranch,proto3" json:"source_branch,omitempty"` + TargetBranch []byte `protobuf:"bytes,6,opt,name=target_branch,json=targetBranch,proto3" json:"target_branch,omitempty"` + CommitMessage []byte `protobuf:"bytes,7,opt,name=commit_message,json=commitMessage,proto3" json:"commit_message,omitempty"` + User *User `protobuf:"bytes,8,opt,name=user" json:"user,omitempty"` +} + +func (m *ResolveConflictsRequestHeader) Reset() { *m = ResolveConflictsRequestHeader{} } +func (m *ResolveConflictsRequestHeader) String() string { return proto.CompactTextString(m) } +func (*ResolveConflictsRequestHeader) ProtoMessage() {} +func (*ResolveConflictsRequestHeader) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{4} } + +func (m *ResolveConflictsRequestHeader) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *ResolveConflictsRequestHeader) GetOurCommitOid() string { + if m != nil { + return m.OurCommitOid + } + return "" +} + +func (m *ResolveConflictsRequestHeader) GetTargetRepository() *Repository { + if m != nil { + return m.TargetRepository + } + return nil +} + +func (m *ResolveConflictsRequestHeader) GetTheirCommitOid() string { + if m != nil { + return m.TheirCommitOid + } + return "" +} + +func (m *ResolveConflictsRequestHeader) GetSourceBranch() []byte { + if m != nil { + return m.SourceBranch + } + return nil +} + +func (m *ResolveConflictsRequestHeader) GetTargetBranch() []byte { + if m != nil { + return m.TargetBranch + } + return nil +} + +func (m *ResolveConflictsRequestHeader) GetCommitMessage() []byte { + if m != nil { + return m.CommitMessage + } + return nil +} + +func (m *ResolveConflictsRequestHeader) GetUser() *User { + if m != nil { + return m.User + } + return nil +} + +type ResolveConflictsRequest struct { + // Types that are valid to be assigned to ResolveConflictsRequestPayload: + // *ResolveConflictsRequest_Header + // *ResolveConflictsRequest_FilesJson + ResolveConflictsRequestPayload isResolveConflictsRequest_ResolveConflictsRequestPayload `protobuf_oneof:"resolve_conflicts_request_payload"` +} + +func (m *ResolveConflictsRequest) Reset() { *m = ResolveConflictsRequest{} } +func (m *ResolveConflictsRequest) String() string { return proto.CompactTextString(m) } +func (*ResolveConflictsRequest) ProtoMessage() {} +func (*ResolveConflictsRequest) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{5} } + +type isResolveConflictsRequest_ResolveConflictsRequestPayload interface{ isResolveConflictsRequest_ResolveConflictsRequestPayload() } + +type ResolveConflictsRequest_Header struct { + Header *ResolveConflictsRequestHeader `protobuf:"bytes,1,opt,name=header,oneof"` +} +type ResolveConflictsRequest_FilesJson struct { + FilesJson []byte `protobuf:"bytes,2,opt,name=files_json,json=filesJson,proto3,oneof"` +} + +func (*ResolveConflictsRequest_Header) isResolveConflictsRequest_ResolveConflictsRequestPayload() {} +func (*ResolveConflictsRequest_FilesJson) isResolveConflictsRequest_ResolveConflictsRequestPayload() {} + +func (m *ResolveConflictsRequest) GetResolveConflictsRequestPayload() isResolveConflictsRequest_ResolveConflictsRequestPayload { + if m != nil { + return m.ResolveConflictsRequestPayload + } + return nil +} + +func (m *ResolveConflictsRequest) GetHeader() *ResolveConflictsRequestHeader { + if x, ok := m.GetResolveConflictsRequestPayload().(*ResolveConflictsRequest_Header); ok { + return x.Header + } + return nil +} + +func (m *ResolveConflictsRequest) GetFilesJson() []byte { + if x, ok := m.GetResolveConflictsRequestPayload().(*ResolveConflictsRequest_FilesJson); ok { + return x.FilesJson + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*ResolveConflictsRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _ResolveConflictsRequest_OneofMarshaler, _ResolveConflictsRequest_OneofUnmarshaler, _ResolveConflictsRequest_OneofSizer, []interface{}{ + (*ResolveConflictsRequest_Header)(nil), + (*ResolveConflictsRequest_FilesJson)(nil), + } +} + +func _ResolveConflictsRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*ResolveConflictsRequest) + // resolve_conflicts_request_payload + switch x := m.ResolveConflictsRequestPayload.(type) { + case *ResolveConflictsRequest_Header: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Header); err != nil { + return err + } + case *ResolveConflictsRequest_FilesJson: + b.EncodeVarint(2<<3 | proto.WireBytes) + b.EncodeRawBytes(x.FilesJson) + case nil: + default: + return fmt.Errorf("ResolveConflictsRequest.ResolveConflictsRequestPayload has unexpected type %T", x) + } + return nil +} + +func _ResolveConflictsRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*ResolveConflictsRequest) + switch tag { + case 1: // resolve_conflicts_request_payload.header + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(ResolveConflictsRequestHeader) + err := b.DecodeMessage(msg) + m.ResolveConflictsRequestPayload = &ResolveConflictsRequest_Header{msg} + return true, err + case 2: // resolve_conflicts_request_payload.files_json + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeRawBytes(true) + m.ResolveConflictsRequestPayload = &ResolveConflictsRequest_FilesJson{x} + return true, err + default: + return false, nil + } +} + +func _ResolveConflictsRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*ResolveConflictsRequest) + // resolve_conflicts_request_payload + switch x := m.ResolveConflictsRequestPayload.(type) { + case *ResolveConflictsRequest_Header: + s := proto.Size(x.Header) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *ResolveConflictsRequest_FilesJson: + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(len(x.FilesJson))) + n += len(x.FilesJson) + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +type ResolveConflictsResponse struct { + ResolutionError string `protobuf:"bytes,1,opt,name=resolution_error,json=resolutionError" json:"resolution_error,omitempty"` +} + +func (m *ResolveConflictsResponse) Reset() { *m = ResolveConflictsResponse{} } +func (m *ResolveConflictsResponse) String() string { return proto.CompactTextString(m) } +func (*ResolveConflictsResponse) ProtoMessage() {} +func (*ResolveConflictsResponse) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{6} } + +func (m *ResolveConflictsResponse) GetResolutionError() string { + if m != nil { + return m.ResolutionError + } + return "" +} + +func init() { + proto.RegisterType((*ListConflictFilesRequest)(nil), "gitaly.ListConflictFilesRequest") + proto.RegisterType((*ConflictFileHeader)(nil), "gitaly.ConflictFileHeader") + proto.RegisterType((*ConflictFile)(nil), "gitaly.ConflictFile") + proto.RegisterType((*ListConflictFilesResponse)(nil), "gitaly.ListConflictFilesResponse") + proto.RegisterType((*ResolveConflictsRequestHeader)(nil), "gitaly.ResolveConflictsRequestHeader") + proto.RegisterType((*ResolveConflictsRequest)(nil), "gitaly.ResolveConflictsRequest") + proto.RegisterType((*ResolveConflictsResponse)(nil), "gitaly.ResolveConflictsResponse") +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// Client API for ConflictsService service + +type ConflictsServiceClient interface { + ListConflictFiles(ctx context.Context, in *ListConflictFilesRequest, opts ...grpc.CallOption) (ConflictsService_ListConflictFilesClient, error) + ResolveConflicts(ctx context.Context, opts ...grpc.CallOption) (ConflictsService_ResolveConflictsClient, error) +} + +type conflictsServiceClient struct { + cc *grpc.ClientConn +} + +func NewConflictsServiceClient(cc *grpc.ClientConn) ConflictsServiceClient { + return &conflictsServiceClient{cc} +} + +func (c *conflictsServiceClient) ListConflictFiles(ctx context.Context, in *ListConflictFilesRequest, opts ...grpc.CallOption) (ConflictsService_ListConflictFilesClient, error) { + stream, err := grpc.NewClientStream(ctx, &_ConflictsService_serviceDesc.Streams[0], c.cc, "/gitaly.ConflictsService/ListConflictFiles", opts...) + if err != nil { + return nil, err + } + x := &conflictsServiceListConflictFilesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ConflictsService_ListConflictFilesClient interface { + Recv() (*ListConflictFilesResponse, error) + grpc.ClientStream +} + +type conflictsServiceListConflictFilesClient struct { + grpc.ClientStream +} + +func (x *conflictsServiceListConflictFilesClient) Recv() (*ListConflictFilesResponse, error) { + m := new(ListConflictFilesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *conflictsServiceClient) ResolveConflicts(ctx context.Context, opts ...grpc.CallOption) (ConflictsService_ResolveConflictsClient, error) { + stream, err := grpc.NewClientStream(ctx, &_ConflictsService_serviceDesc.Streams[1], c.cc, "/gitaly.ConflictsService/ResolveConflicts", opts...) + if err != nil { + return nil, err + } + x := &conflictsServiceResolveConflictsClient{stream} + return x, nil +} + +type ConflictsService_ResolveConflictsClient interface { + Send(*ResolveConflictsRequest) error + CloseAndRecv() (*ResolveConflictsResponse, error) + grpc.ClientStream +} + +type conflictsServiceResolveConflictsClient struct { + grpc.ClientStream +} + +func (x *conflictsServiceResolveConflictsClient) Send(m *ResolveConflictsRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *conflictsServiceResolveConflictsClient) CloseAndRecv() (*ResolveConflictsResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(ResolveConflictsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// Server API for ConflictsService service + +type ConflictsServiceServer interface { + ListConflictFiles(*ListConflictFilesRequest, ConflictsService_ListConflictFilesServer) error + ResolveConflicts(ConflictsService_ResolveConflictsServer) error +} + +func RegisterConflictsServiceServer(s *grpc.Server, srv ConflictsServiceServer) { + s.RegisterService(&_ConflictsService_serviceDesc, srv) +} + +func _ConflictsService_ListConflictFiles_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListConflictFilesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ConflictsServiceServer).ListConflictFiles(m, &conflictsServiceListConflictFilesServer{stream}) +} + +type ConflictsService_ListConflictFilesServer interface { + Send(*ListConflictFilesResponse) error + grpc.ServerStream +} + +type conflictsServiceListConflictFilesServer struct { + grpc.ServerStream +} + +func (x *conflictsServiceListConflictFilesServer) Send(m *ListConflictFilesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ConflictsService_ResolveConflicts_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(ConflictsServiceServer).ResolveConflicts(&conflictsServiceResolveConflictsServer{stream}) +} + +type ConflictsService_ResolveConflictsServer interface { + SendAndClose(*ResolveConflictsResponse) error + Recv() (*ResolveConflictsRequest, error) + grpc.ServerStream +} + +type conflictsServiceResolveConflictsServer struct { + grpc.ServerStream +} + +func (x *conflictsServiceResolveConflictsServer) SendAndClose(m *ResolveConflictsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *conflictsServiceResolveConflictsServer) Recv() (*ResolveConflictsRequest, error) { + m := new(ResolveConflictsRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +var _ConflictsService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.ConflictsService", + HandlerType: (*ConflictsServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "ListConflictFiles", + Handler: _ConflictsService_ListConflictFiles_Handler, + ServerStreams: true, + }, + { + StreamName: "ResolveConflicts", + Handler: _ConflictsService_ResolveConflicts_Handler, + ClientStreams: true, + }, + }, + Metadata: "conflicts.proto", +} + +func init() { proto.RegisterFile("conflicts.proto", fileDescriptor3) } + +var fileDescriptor3 = []byte{ + // 575 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0xd1, 0x6a, 0x13, 0x41, + 0x14, 0x86, 0xbb, 0x6d, 0x93, 0x34, 0xa7, 0xdb, 0x34, 0x1d, 0x94, 0x6e, 0x03, 0xa1, 0xdb, 0xad, + 0x85, 0xd5, 0x8b, 0x20, 0xd1, 0xfb, 0x42, 0x4a, 0x35, 0x88, 0x45, 0x19, 0xf1, 0x42, 0x10, 0x96, + 0xed, 0xee, 0x69, 0x76, 0x64, 0xb3, 0x13, 0x67, 0x66, 0x0b, 0x79, 0x19, 0xf1, 0x41, 0x7c, 0x03, + 0x1f, 0xc8, 0x5b, 0xc9, 0xcc, 0xee, 0x26, 0x6d, 0x92, 0x2a, 0x7a, 0xfb, 0x9f, 0x8f, 0x73, 0xfe, + 0x33, 0xe7, 0x67, 0x60, 0x3f, 0xe2, 0xd9, 0x4d, 0xca, 0x22, 0x25, 0x7b, 0x13, 0xc1, 0x15, 0x27, + 0xf5, 0x11, 0x53, 0x61, 0x3a, 0xed, 0xd8, 0x32, 0x09, 0x05, 0xc6, 0x46, 0xf5, 0xbe, 0x59, 0xe0, + 0xbc, 0x65, 0x52, 0x5d, 0x14, 0xf4, 0x2b, 0x96, 0xa2, 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 0x81, 0x45, 0xc8, 0x9e, 0x42, 0x5b, 0x37, 0xc8, 0x15, 0xe3, 0x59, 0x80, + 0x42, 0x70, 0x63, 0xb6, 0x49, 0xf7, 0xe7, 0xfa, 0xe5, 0x4c, 0xee, 0xff, 0xb4, 0xa0, 0x5d, 0x35, + 0xf8, 0x80, 0xe2, 0x96, 0x45, 0x48, 0x3e, 0xc3, 0xc1, 0x52, 0x82, 0x89, 0x5b, 0xee, 0xb9, 0xee, + 0xdb, 0xea, 0x9c, 0x3c, 0x40, 0x18, 0x67, 0xde, 0xc6, 0x73, 0x8b, 0x7c, 0x82, 0xf6, 0x7d, 0xe7, + 0xe4, 0xf8, 0x0f, 0x8f, 0xd8, 0x71, 0xd7, 0x03, 0x65, 0x6b, 0xdf, 0xba, 0xae, 0xeb, 0xcf, 0xf5, + 0xc5, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x2c, 0xb1, 0x16, 0xeb, 0x85, 0x05, 0x00, 0x00, +} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/diff.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/diff.pb.go new file mode 100644 index 0000000..a4187de --- /dev/null +++ b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/diff.pb.go @@ -0,0 +1,1064 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: diff.proto + +package gitalypb + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +type CommitDiffRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId" json:"left_commit_id,omitempty"` + RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId" json:"right_commit_id,omitempty"` + IgnoreWhitespaceChange bool `protobuf:"varint,4,opt,name=ignore_whitespace_change,json=ignoreWhitespaceChange" json:"ignore_whitespace_change,omitempty"` + Paths [][]byte `protobuf:"bytes,5,rep,name=paths,proto3" json:"paths,omitempty"` + CollapseDiffs bool `protobuf:"varint,6,opt,name=collapse_diffs,json=collapseDiffs" json:"collapse_diffs,omitempty"` + EnforceLimits bool `protobuf:"varint,7,opt,name=enforce_limits,json=enforceLimits" json:"enforce_limits,omitempty"` + // These limits are only enforced when enforce_limits == true. + MaxFiles int32 `protobuf:"varint,8,opt,name=max_files,json=maxFiles" json:"max_files,omitempty"` + MaxLines int32 `protobuf:"varint,9,opt,name=max_lines,json=maxLines" json:"max_lines,omitempty"` + MaxBytes int32 `protobuf:"varint,10,opt,name=max_bytes,json=maxBytes" json:"max_bytes,omitempty"` + // Limitation of a single diff patch, + // patches surpassing this limit are pruned by default. + // If this is 0 you will get back empty patches. + MaxPatchBytes int32 `protobuf:"varint,14,opt,name=max_patch_bytes,json=maxPatchBytes" json:"max_patch_bytes,omitempty"` + // These limits are only enforced if collapse_diffs == true. + SafeMaxFiles int32 `protobuf:"varint,11,opt,name=safe_max_files,json=safeMaxFiles" json:"safe_max_files,omitempty"` + SafeMaxLines int32 `protobuf:"varint,12,opt,name=safe_max_lines,json=safeMaxLines" json:"safe_max_lines,omitempty"` + SafeMaxBytes int32 `protobuf:"varint,13,opt,name=safe_max_bytes,json=safeMaxBytes" json:"safe_max_bytes,omitempty"` +} + +func (m *CommitDiffRequest) Reset() { *m = CommitDiffRequest{} } +func (m *CommitDiffRequest) String() string { return proto.CompactTextString(m) } +func (*CommitDiffRequest) ProtoMessage() {} +func (*CommitDiffRequest) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0} } + +func (m *CommitDiffRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *CommitDiffRequest) GetLeftCommitId() string { + if m != nil { + return m.LeftCommitId + } + return "" +} + +func (m *CommitDiffRequest) GetRightCommitId() string { + if m != nil { + return m.RightCommitId + } + return "" +} + +func (m *CommitDiffRequest) GetIgnoreWhitespaceChange() bool { + if m != nil { + return m.IgnoreWhitespaceChange + } + return false +} + +func (m *CommitDiffRequest) GetPaths() [][]byte { + if m != nil { + return m.Paths + } + return nil +} + +func (m *CommitDiffRequest) GetCollapseDiffs() bool { + if m != nil { + return m.CollapseDiffs + } + return false +} + +func (m *CommitDiffRequest) GetEnforceLimits() bool { + if m != nil { + return m.EnforceLimits + } + return false +} + +func (m *CommitDiffRequest) GetMaxFiles() int32 { + if m != nil { + return m.MaxFiles + } + return 0 +} + +func (m *CommitDiffRequest) GetMaxLines() int32 { + if m != nil { + return m.MaxLines + } + return 0 +} + +func (m *CommitDiffRequest) GetMaxBytes() int32 { + if m != nil { + return m.MaxBytes + } + return 0 +} + +func (m *CommitDiffRequest) GetMaxPatchBytes() int32 { + if m != nil { + return m.MaxPatchBytes + } + return 0 +} + +func (m *CommitDiffRequest) GetSafeMaxFiles() int32 { + if m != nil { + return m.SafeMaxFiles + } + return 0 +} + +func (m *CommitDiffRequest) GetSafeMaxLines() int32 { + if m != nil { + return m.SafeMaxLines + } + return 0 +} + +func (m *CommitDiffRequest) GetSafeMaxBytes() int32 { + if m != nil { + return m.SafeMaxBytes + } + return 0 +} + +// A CommitDiffResponse corresponds to a single changed file in a commit. +type CommitDiffResponse struct { + FromPath []byte `protobuf:"bytes,1,opt,name=from_path,json=fromPath,proto3" json:"from_path,omitempty"` + ToPath []byte `protobuf:"bytes,2,opt,name=to_path,json=toPath,proto3" json:"to_path,omitempty"` + // Blob ID as returned via `git diff --full-index` + FromId string `protobuf:"bytes,3,opt,name=from_id,json=fromId" json:"from_id,omitempty"` + ToId string `protobuf:"bytes,4,opt,name=to_id,json=toId" json:"to_id,omitempty"` + OldMode int32 `protobuf:"varint,5,opt,name=old_mode,json=oldMode" json:"old_mode,omitempty"` + NewMode int32 `protobuf:"varint,6,opt,name=new_mode,json=newMode" json:"new_mode,omitempty"` + Binary bool `protobuf:"varint,7,opt,name=binary" json:"binary,omitempty"` + RawPatchData []byte `protobuf:"bytes,9,opt,name=raw_patch_data,json=rawPatchData,proto3" json:"raw_patch_data,omitempty"` + EndOfPatch bool `protobuf:"varint,10,opt,name=end_of_patch,json=endOfPatch" json:"end_of_patch,omitempty"` + // Indicates the diff file at which we overflow according to the limitations sent, + // in which case only this attribute will be set. + OverflowMarker bool `protobuf:"varint,11,opt,name=overflow_marker,json=overflowMarker" json:"overflow_marker,omitempty"` + // Indicates the patch surpassed a "safe" limit and was therefore pruned, but + // the client may still request the full patch on a separate request. + Collapsed bool `protobuf:"varint,12,opt,name=collapsed" json:"collapsed,omitempty"` + // Indicates the patch was pruned since it surpassed a hard limit, and can + // therefore not be expanded. + TooLarge bool `protobuf:"varint,13,opt,name=too_large,json=tooLarge" json:"too_large,omitempty"` +} + +func (m *CommitDiffResponse) Reset() { *m = CommitDiffResponse{} } +func (m *CommitDiffResponse) String() string { return proto.CompactTextString(m) } +func (*CommitDiffResponse) ProtoMessage() {} +func (*CommitDiffResponse) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{1} } + +func (m *CommitDiffResponse) GetFromPath() []byte { + if m != nil { + return m.FromPath + } + return nil +} + +func (m *CommitDiffResponse) GetToPath() []byte { + if m != nil { + return m.ToPath + } + return nil +} + +func (m *CommitDiffResponse) GetFromId() string { + if m != nil { + return m.FromId + } + return "" +} + +func (m *CommitDiffResponse) GetToId() string { + if m != nil { + return m.ToId + } + return "" +} + +func (m *CommitDiffResponse) GetOldMode() int32 { + if m != nil { + return m.OldMode + } + return 0 +} + +func (m *CommitDiffResponse) GetNewMode() int32 { + if m != nil { + return m.NewMode + } + return 0 +} + +func (m *CommitDiffResponse) GetBinary() bool { + if m != nil { + return m.Binary + } + return false +} + +func (m *CommitDiffResponse) GetRawPatchData() []byte { + if m != nil { + return m.RawPatchData + } + return nil +} + +func (m *CommitDiffResponse) GetEndOfPatch() bool { + if m != nil { + return m.EndOfPatch + } + return false +} + +func (m *CommitDiffResponse) GetOverflowMarker() bool { + if m != nil { + return m.OverflowMarker + } + return false +} + +func (m *CommitDiffResponse) GetCollapsed() bool { + if m != nil { + return m.Collapsed + } + return false +} + +func (m *CommitDiffResponse) GetTooLarge() bool { + if m != nil { + return m.TooLarge + } + return false +} + +type CommitDeltaRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId" json:"left_commit_id,omitempty"` + RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId" json:"right_commit_id,omitempty"` + Paths [][]byte `protobuf:"bytes,4,rep,name=paths,proto3" json:"paths,omitempty"` +} + +func (m *CommitDeltaRequest) Reset() { *m = CommitDeltaRequest{} } +func (m *CommitDeltaRequest) String() string { return proto.CompactTextString(m) } +func (*CommitDeltaRequest) ProtoMessage() {} +func (*CommitDeltaRequest) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{2} } + +func (m *CommitDeltaRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *CommitDeltaRequest) GetLeftCommitId() string { + if m != nil { + return m.LeftCommitId + } + return "" +} + +func (m *CommitDeltaRequest) GetRightCommitId() string { + if m != nil { + return m.RightCommitId + } + return "" +} + +func (m *CommitDeltaRequest) GetPaths() [][]byte { + if m != nil { + return m.Paths + } + return nil +} + +type CommitDelta struct { + FromPath []byte `protobuf:"bytes,1,opt,name=from_path,json=fromPath,proto3" json:"from_path,omitempty"` + ToPath []byte `protobuf:"bytes,2,opt,name=to_path,json=toPath,proto3" json:"to_path,omitempty"` + // Blob ID as returned via `git diff --full-index` + FromId string `protobuf:"bytes,3,opt,name=from_id,json=fromId" json:"from_id,omitempty"` + ToId string `protobuf:"bytes,4,opt,name=to_id,json=toId" json:"to_id,omitempty"` + OldMode int32 `protobuf:"varint,5,opt,name=old_mode,json=oldMode" json:"old_mode,omitempty"` + NewMode int32 `protobuf:"varint,6,opt,name=new_mode,json=newMode" json:"new_mode,omitempty"` +} + +func (m *CommitDelta) Reset() { *m = CommitDelta{} } +func (m *CommitDelta) String() string { return proto.CompactTextString(m) } +func (*CommitDelta) ProtoMessage() {} +func (*CommitDelta) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{3} } + +func (m *CommitDelta) GetFromPath() []byte { + if m != nil { + return m.FromPath + } + return nil +} + +func (m *CommitDelta) GetToPath() []byte { + if m != nil { + return m.ToPath + } + return nil +} + +func (m *CommitDelta) GetFromId() string { + if m != nil { + return m.FromId + } + return "" +} + +func (m *CommitDelta) GetToId() string { + if m != nil { + return m.ToId + } + return "" +} + +func (m *CommitDelta) GetOldMode() int32 { + if m != nil { + return m.OldMode + } + return 0 +} + +func (m *CommitDelta) GetNewMode() int32 { + if m != nil { + return m.NewMode + } + return 0 +} + +type CommitDeltaResponse struct { + Deltas []*CommitDelta `protobuf:"bytes,1,rep,name=deltas" json:"deltas,omitempty"` +} + +func (m *CommitDeltaResponse) Reset() { *m = CommitDeltaResponse{} } +func (m *CommitDeltaResponse) String() string { return proto.CompactTextString(m) } +func (*CommitDeltaResponse) ProtoMessage() {} +func (*CommitDeltaResponse) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{4} } + +func (m *CommitDeltaResponse) GetDeltas() []*CommitDelta { + if m != nil { + return m.Deltas + } + return nil +} + +type CommitPatchRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` +} + +func (m *CommitPatchRequest) Reset() { *m = CommitPatchRequest{} } +func (m *CommitPatchRequest) String() string { return proto.CompactTextString(m) } +func (*CommitPatchRequest) ProtoMessage() {} +func (*CommitPatchRequest) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{5} } + +func (m *CommitPatchRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *CommitPatchRequest) GetRevision() []byte { + if m != nil { + return m.Revision + } + return nil +} + +type CommitPatchResponse struct { + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` +} + +func (m *CommitPatchResponse) Reset() { *m = CommitPatchResponse{} } +func (m *CommitPatchResponse) String() string { return proto.CompactTextString(m) } +func (*CommitPatchResponse) ProtoMessage() {} +func (*CommitPatchResponse) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{6} } + +func (m *CommitPatchResponse) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +type RawDiffRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId" json:"left_commit_id,omitempty"` + RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId" json:"right_commit_id,omitempty"` +} + +func (m *RawDiffRequest) Reset() { *m = RawDiffRequest{} } +func (m *RawDiffRequest) String() string { return proto.CompactTextString(m) } +func (*RawDiffRequest) ProtoMessage() {} +func (*RawDiffRequest) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{7} } + +func (m *RawDiffRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *RawDiffRequest) GetLeftCommitId() string { + if m != nil { + return m.LeftCommitId + } + return "" +} + +func (m *RawDiffRequest) GetRightCommitId() string { + if m != nil { + return m.RightCommitId + } + return "" +} + +type RawDiffResponse struct { + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` +} + +func (m *RawDiffResponse) Reset() { *m = RawDiffResponse{} } +func (m *RawDiffResponse) String() string { return proto.CompactTextString(m) } +func (*RawDiffResponse) ProtoMessage() {} +func (*RawDiffResponse) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{8} } + +func (m *RawDiffResponse) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +type RawPatchRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId" json:"left_commit_id,omitempty"` + RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId" json:"right_commit_id,omitempty"` +} + +func (m *RawPatchRequest) Reset() { *m = RawPatchRequest{} } +func (m *RawPatchRequest) String() string { return proto.CompactTextString(m) } +func (*RawPatchRequest) ProtoMessage() {} +func (*RawPatchRequest) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{9} } + +func (m *RawPatchRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *RawPatchRequest) GetLeftCommitId() string { + if m != nil { + return m.LeftCommitId + } + return "" +} + +func (m *RawPatchRequest) GetRightCommitId() string { + if m != nil { + return m.RightCommitId + } + return "" +} + +type RawPatchResponse struct { + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` +} + +func (m *RawPatchResponse) Reset() { *m = RawPatchResponse{} } +func (m *RawPatchResponse) String() string { return proto.CompactTextString(m) } +func (*RawPatchResponse) ProtoMessage() {} +func (*RawPatchResponse) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{10} } + +func (m *RawPatchResponse) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +type DiffStatsRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId" json:"left_commit_id,omitempty"` + RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId" json:"right_commit_id,omitempty"` +} + +func (m *DiffStatsRequest) Reset() { *m = DiffStatsRequest{} } +func (m *DiffStatsRequest) String() string { return proto.CompactTextString(m) } +func (*DiffStatsRequest) ProtoMessage() {} +func (*DiffStatsRequest) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{11} } + +func (m *DiffStatsRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *DiffStatsRequest) GetLeftCommitId() string { + if m != nil { + return m.LeftCommitId + } + return "" +} + +func (m *DiffStatsRequest) GetRightCommitId() string { + if m != nil { + return m.RightCommitId + } + return "" +} + +type DiffStats struct { + Path []byte `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + Additions int32 `protobuf:"varint,2,opt,name=additions" json:"additions,omitempty"` + Deletions int32 `protobuf:"varint,3,opt,name=deletions" json:"deletions,omitempty"` +} + +func (m *DiffStats) Reset() { *m = DiffStats{} } +func (m *DiffStats) String() string { return proto.CompactTextString(m) } +func (*DiffStats) ProtoMessage() {} +func (*DiffStats) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{12} } + +func (m *DiffStats) GetPath() []byte { + if m != nil { + return m.Path + } + return nil +} + +func (m *DiffStats) GetAdditions() int32 { + if m != nil { + return m.Additions + } + return 0 +} + +func (m *DiffStats) GetDeletions() int32 { + if m != nil { + return m.Deletions + } + return 0 +} + +type DiffStatsResponse struct { + Stats []*DiffStats `protobuf:"bytes,1,rep,name=stats" json:"stats,omitempty"` +} + +func (m *DiffStatsResponse) Reset() { *m = DiffStatsResponse{} } +func (m *DiffStatsResponse) String() string { return proto.CompactTextString(m) } +func (*DiffStatsResponse) ProtoMessage() {} +func (*DiffStatsResponse) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{13} } + +func (m *DiffStatsResponse) GetStats() []*DiffStats { + if m != nil { + return m.Stats + } + return nil +} + +func init() { + proto.RegisterType((*CommitDiffRequest)(nil), "gitaly.CommitDiffRequest") + proto.RegisterType((*CommitDiffResponse)(nil), "gitaly.CommitDiffResponse") + proto.RegisterType((*CommitDeltaRequest)(nil), "gitaly.CommitDeltaRequest") + proto.RegisterType((*CommitDelta)(nil), "gitaly.CommitDelta") + proto.RegisterType((*CommitDeltaResponse)(nil), "gitaly.CommitDeltaResponse") + proto.RegisterType((*CommitPatchRequest)(nil), "gitaly.CommitPatchRequest") + proto.RegisterType((*CommitPatchResponse)(nil), "gitaly.CommitPatchResponse") + proto.RegisterType((*RawDiffRequest)(nil), "gitaly.RawDiffRequest") + proto.RegisterType((*RawDiffResponse)(nil), "gitaly.RawDiffResponse") + proto.RegisterType((*RawPatchRequest)(nil), "gitaly.RawPatchRequest") + proto.RegisterType((*RawPatchResponse)(nil), "gitaly.RawPatchResponse") + proto.RegisterType((*DiffStatsRequest)(nil), "gitaly.DiffStatsRequest") + proto.RegisterType((*DiffStats)(nil), "gitaly.DiffStats") + proto.RegisterType((*DiffStatsResponse)(nil), "gitaly.DiffStatsResponse") +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// Client API for DiffService service + +type DiffServiceClient interface { + // Returns stream of CommitDiffResponse with patches chunked over messages + CommitDiff(ctx context.Context, in *CommitDiffRequest, opts ...grpc.CallOption) (DiffService_CommitDiffClient, error) + // Return a stream so we can divide the response in chunks of deltas + CommitDelta(ctx context.Context, in *CommitDeltaRequest, opts ...grpc.CallOption) (DiffService_CommitDeltaClient, error) + CommitPatch(ctx context.Context, in *CommitPatchRequest, opts ...grpc.CallOption) (DiffService_CommitPatchClient, error) + RawDiff(ctx context.Context, in *RawDiffRequest, opts ...grpc.CallOption) (DiffService_RawDiffClient, error) + RawPatch(ctx context.Context, in *RawPatchRequest, opts ...grpc.CallOption) (DiffService_RawPatchClient, error) + DiffStats(ctx context.Context, in *DiffStatsRequest, opts ...grpc.CallOption) (DiffService_DiffStatsClient, error) +} + +type diffServiceClient struct { + cc *grpc.ClientConn +} + +func NewDiffServiceClient(cc *grpc.ClientConn) DiffServiceClient { + return &diffServiceClient{cc} +} + +func (c *diffServiceClient) CommitDiff(ctx context.Context, in *CommitDiffRequest, opts ...grpc.CallOption) (DiffService_CommitDiffClient, error) { + stream, err := grpc.NewClientStream(ctx, &_DiffService_serviceDesc.Streams[0], c.cc, "/gitaly.DiffService/CommitDiff", opts...) + if err != nil { + return nil, err + } + x := &diffServiceCommitDiffClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type DiffService_CommitDiffClient interface { + Recv() (*CommitDiffResponse, error) + grpc.ClientStream +} + +type diffServiceCommitDiffClient struct { + grpc.ClientStream +} + +func (x *diffServiceCommitDiffClient) Recv() (*CommitDiffResponse, error) { + m := new(CommitDiffResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *diffServiceClient) CommitDelta(ctx context.Context, in *CommitDeltaRequest, opts ...grpc.CallOption) (DiffService_CommitDeltaClient, error) { + stream, err := grpc.NewClientStream(ctx, &_DiffService_serviceDesc.Streams[1], c.cc, "/gitaly.DiffService/CommitDelta", opts...) + if err != nil { + return nil, err + } + x := &diffServiceCommitDeltaClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type DiffService_CommitDeltaClient interface { + Recv() (*CommitDeltaResponse, error) + grpc.ClientStream +} + +type diffServiceCommitDeltaClient struct { + grpc.ClientStream +} + +func (x *diffServiceCommitDeltaClient) Recv() (*CommitDeltaResponse, error) { + m := new(CommitDeltaResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *diffServiceClient) CommitPatch(ctx context.Context, in *CommitPatchRequest, opts ...grpc.CallOption) (DiffService_CommitPatchClient, error) { + stream, err := grpc.NewClientStream(ctx, &_DiffService_serviceDesc.Streams[2], c.cc, "/gitaly.DiffService/CommitPatch", opts...) + if err != nil { + return nil, err + } + x := &diffServiceCommitPatchClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type DiffService_CommitPatchClient interface { + Recv() (*CommitPatchResponse, error) + grpc.ClientStream +} + +type diffServiceCommitPatchClient struct { + grpc.ClientStream +} + +func (x *diffServiceCommitPatchClient) Recv() (*CommitPatchResponse, error) { + m := new(CommitPatchResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *diffServiceClient) RawDiff(ctx context.Context, in *RawDiffRequest, opts ...grpc.CallOption) (DiffService_RawDiffClient, error) { + stream, err := grpc.NewClientStream(ctx, &_DiffService_serviceDesc.Streams[3], c.cc, "/gitaly.DiffService/RawDiff", opts...) + if err != nil { + return nil, err + } + x := &diffServiceRawDiffClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type DiffService_RawDiffClient interface { + Recv() (*RawDiffResponse, error) + grpc.ClientStream +} + +type diffServiceRawDiffClient struct { + grpc.ClientStream +} + +func (x *diffServiceRawDiffClient) Recv() (*RawDiffResponse, error) { + m := new(RawDiffResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *diffServiceClient) RawPatch(ctx context.Context, in *RawPatchRequest, opts ...grpc.CallOption) (DiffService_RawPatchClient, error) { + stream, err := grpc.NewClientStream(ctx, &_DiffService_serviceDesc.Streams[4], c.cc, "/gitaly.DiffService/RawPatch", opts...) + if err != nil { + return nil, err + } + x := &diffServiceRawPatchClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type DiffService_RawPatchClient interface { + Recv() (*RawPatchResponse, error) + grpc.ClientStream +} + +type diffServiceRawPatchClient struct { + grpc.ClientStream +} + +func (x *diffServiceRawPatchClient) Recv() (*RawPatchResponse, error) { + m := new(RawPatchResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *diffServiceClient) DiffStats(ctx context.Context, in *DiffStatsRequest, opts ...grpc.CallOption) (DiffService_DiffStatsClient, error) { + stream, err := grpc.NewClientStream(ctx, &_DiffService_serviceDesc.Streams[5], c.cc, "/gitaly.DiffService/DiffStats", opts...) + if err != nil { + return nil, err + } + x := &diffServiceDiffStatsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type DiffService_DiffStatsClient interface { + Recv() (*DiffStatsResponse, error) + grpc.ClientStream +} + +type diffServiceDiffStatsClient struct { + grpc.ClientStream +} + +func (x *diffServiceDiffStatsClient) Recv() (*DiffStatsResponse, error) { + m := new(DiffStatsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// Server API for DiffService service + +type DiffServiceServer interface { + // Returns stream of CommitDiffResponse with patches chunked over messages + CommitDiff(*CommitDiffRequest, DiffService_CommitDiffServer) error + // Return a stream so we can divide the response in chunks of deltas + CommitDelta(*CommitDeltaRequest, DiffService_CommitDeltaServer) error + CommitPatch(*CommitPatchRequest, DiffService_CommitPatchServer) error + RawDiff(*RawDiffRequest, DiffService_RawDiffServer) error + RawPatch(*RawPatchRequest, DiffService_RawPatchServer) error + DiffStats(*DiffStatsRequest, DiffService_DiffStatsServer) error +} + +func RegisterDiffServiceServer(s *grpc.Server, srv DiffServiceServer) { + s.RegisterService(&_DiffService_serviceDesc, srv) +} + +func _DiffService_CommitDiff_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(CommitDiffRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(DiffServiceServer).CommitDiff(m, &diffServiceCommitDiffServer{stream}) +} + +type DiffService_CommitDiffServer interface { + Send(*CommitDiffResponse) error + grpc.ServerStream +} + +type diffServiceCommitDiffServer struct { + grpc.ServerStream +} + +func (x *diffServiceCommitDiffServer) Send(m *CommitDiffResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _DiffService_CommitDelta_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(CommitDeltaRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(DiffServiceServer).CommitDelta(m, &diffServiceCommitDeltaServer{stream}) +} + +type DiffService_CommitDeltaServer interface { + Send(*CommitDeltaResponse) error + grpc.ServerStream +} + +type diffServiceCommitDeltaServer struct { + grpc.ServerStream +} + +func (x *diffServiceCommitDeltaServer) Send(m *CommitDeltaResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _DiffService_CommitPatch_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(CommitPatchRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(DiffServiceServer).CommitPatch(m, &diffServiceCommitPatchServer{stream}) +} + +type DiffService_CommitPatchServer interface { + Send(*CommitPatchResponse) error + grpc.ServerStream +} + +type diffServiceCommitPatchServer struct { + grpc.ServerStream +} + +func (x *diffServiceCommitPatchServer) Send(m *CommitPatchResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _DiffService_RawDiff_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(RawDiffRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(DiffServiceServer).RawDiff(m, &diffServiceRawDiffServer{stream}) +} + +type DiffService_RawDiffServer interface { + Send(*RawDiffResponse) error + grpc.ServerStream +} + +type diffServiceRawDiffServer struct { + grpc.ServerStream +} + +func (x *diffServiceRawDiffServer) Send(m *RawDiffResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _DiffService_RawPatch_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(RawPatchRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(DiffServiceServer).RawPatch(m, &diffServiceRawPatchServer{stream}) +} + +type DiffService_RawPatchServer interface { + Send(*RawPatchResponse) error + grpc.ServerStream +} + +type diffServiceRawPatchServer struct { + grpc.ServerStream +} + +func (x *diffServiceRawPatchServer) Send(m *RawPatchResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _DiffService_DiffStats_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(DiffStatsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(DiffServiceServer).DiffStats(m, &diffServiceDiffStatsServer{stream}) +} + +type DiffService_DiffStatsServer interface { + Send(*DiffStatsResponse) error + grpc.ServerStream +} + +type diffServiceDiffStatsServer struct { + grpc.ServerStream +} + +func (x *diffServiceDiffStatsServer) Send(m *DiffStatsResponse) error { + return x.ServerStream.SendMsg(m) +} + +var _DiffService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.DiffService", + HandlerType: (*DiffServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "CommitDiff", + Handler: _DiffService_CommitDiff_Handler, + ServerStreams: true, + }, + { + StreamName: "CommitDelta", + Handler: _DiffService_CommitDelta_Handler, + ServerStreams: true, + }, + { + StreamName: "CommitPatch", + Handler: _DiffService_CommitPatch_Handler, + ServerStreams: true, + }, + { + StreamName: "RawDiff", + Handler: _DiffService_RawDiff_Handler, + ServerStreams: true, + }, + { + StreamName: "RawPatch", + Handler: _DiffService_RawPatch_Handler, + ServerStreams: true, + }, + { + StreamName: "DiffStats", + Handler: _DiffService_DiffStats_Handler, + ServerStreams: true, + }, + }, + Metadata: "diff.proto", +} + +func init() { proto.RegisterFile("diff.proto", fileDescriptor4) } + +var fileDescriptor4 = []byte{ + // 864 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcb, 0x6e, 0x23, 0x45, + 0x14, 0xa5, 0xe3, 0x47, 0xda, 0xd7, 0x1d, 0x27, 0xa9, 0xa0, 0x4c, 0xc7, 0xc3, 0xc2, 0x6a, 0xcd, + 0xc3, 0x08, 0x29, 0x42, 0x61, 0xc3, 0x02, 0x21, 0x31, 0x13, 0x81, 0x32, 0x4a, 0xc4, 0xa8, 0x59, + 0xb0, 0x60, 0xd1, 0xaa, 0xb8, 0xaa, 0xdd, 0x25, 0xba, 0xbb, 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 0xbd, 0xfb, 0xf7, 0x72, 0x75, 0x67, 0xf5, 0x7e, 0xae, 0x8d, 0x91, 0xc1, 0x5c, + 0x5f, 0xc3, 0x6e, 0xb5, 0x07, 0xe4, 0xb8, 0x19, 0x82, 0x8d, 0x65, 0x9d, 0x3e, 0x7b, 0x80, 0x77, + 0xbe, 0xff, 0x06, 0xfc, 0x7a, 0x14, 0x49, 0x57, 0xb8, 0xe1, 0x22, 0x7c, 0x48, 0x74, 0x52, 0x9c, + 0x77, 0xc7, 0x21, 0x7c, 0xd8, 0x9a, 0x2a, 0xc9, 0xc9, 0x16, 0xa6, 0xcd, 0x72, 0x3d, 0xc4, 0x7f, + 0x1e, 0xbf, 0xf8, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xbb, 0xf5, 0x8b, 0xe3, 0x60, 0x0a, 0x00, 0x00, +} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/namespace.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/namespace.pb.go new file mode 100644 index 0000000..3976a4c --- /dev/null +++ b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/namespace.pb.go @@ -0,0 +1,369 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: namespace.proto + +package gitalypb + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +type AddNamespaceRequest struct { + StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName" json:"storage_name,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` +} + +func (m *AddNamespaceRequest) Reset() { *m = AddNamespaceRequest{} } +func (m *AddNamespaceRequest) String() string { return proto.CompactTextString(m) } +func (*AddNamespaceRequest) ProtoMessage() {} +func (*AddNamespaceRequest) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{0} } + +func (m *AddNamespaceRequest) GetStorageName() string { + if m != nil { + return m.StorageName + } + return "" +} + +func (m *AddNamespaceRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type RemoveNamespaceRequest struct { + StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName" json:"storage_name,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` +} + +func (m *RemoveNamespaceRequest) Reset() { *m = RemoveNamespaceRequest{} } +func (m *RemoveNamespaceRequest) String() string { return proto.CompactTextString(m) } +func (*RemoveNamespaceRequest) ProtoMessage() {} +func (*RemoveNamespaceRequest) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{1} } + +func (m *RemoveNamespaceRequest) GetStorageName() string { + if m != nil { + return m.StorageName + } + return "" +} + +func (m *RemoveNamespaceRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type RenameNamespaceRequest struct { + StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName" json:"storage_name,omitempty"` + From string `protobuf:"bytes,2,opt,name=from" json:"from,omitempty"` + To string `protobuf:"bytes,3,opt,name=to" json:"to,omitempty"` +} + +func (m *RenameNamespaceRequest) Reset() { *m = RenameNamespaceRequest{} } +func (m *RenameNamespaceRequest) String() string { return proto.CompactTextString(m) } +func (*RenameNamespaceRequest) ProtoMessage() {} +func (*RenameNamespaceRequest) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{2} } + +func (m *RenameNamespaceRequest) GetStorageName() string { + if m != nil { + return m.StorageName + } + return "" +} + +func (m *RenameNamespaceRequest) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *RenameNamespaceRequest) GetTo() string { + if m != nil { + return m.To + } + return "" +} + +type NamespaceExistsRequest struct { + StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName" json:"storage_name,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` +} + +func (m *NamespaceExistsRequest) Reset() { *m = NamespaceExistsRequest{} } +func (m *NamespaceExistsRequest) String() string { return proto.CompactTextString(m) } +func (*NamespaceExistsRequest) ProtoMessage() {} +func (*NamespaceExistsRequest) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{3} } + +func (m *NamespaceExistsRequest) GetStorageName() string { + if m != nil { + return m.StorageName + } + return "" +} + +func (m *NamespaceExistsRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type NamespaceExistsResponse struct { + Exists bool `protobuf:"varint,1,opt,name=exists" json:"exists,omitempty"` +} + +func (m *NamespaceExistsResponse) Reset() { *m = NamespaceExistsResponse{} } +func (m *NamespaceExistsResponse) String() string { return proto.CompactTextString(m) } +func (*NamespaceExistsResponse) ProtoMessage() {} +func (*NamespaceExistsResponse) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{4} } + +func (m *NamespaceExistsResponse) GetExists() bool { + if m != nil { + return m.Exists + } + return false +} + +type AddNamespaceResponse struct { +} + +func (m *AddNamespaceResponse) Reset() { *m = AddNamespaceResponse{} } +func (m *AddNamespaceResponse) String() string { return proto.CompactTextString(m) } +func (*AddNamespaceResponse) ProtoMessage() {} +func (*AddNamespaceResponse) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{5} } + +type RemoveNamespaceResponse struct { +} + +func (m *RemoveNamespaceResponse) Reset() { *m = RemoveNamespaceResponse{} } +func (m *RemoveNamespaceResponse) String() string { return proto.CompactTextString(m) } +func (*RemoveNamespaceResponse) ProtoMessage() {} +func (*RemoveNamespaceResponse) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{6} } + +type RenameNamespaceResponse struct { +} + +func (m *RenameNamespaceResponse) Reset() { *m = RenameNamespaceResponse{} } +func (m *RenameNamespaceResponse) String() string { return proto.CompactTextString(m) } +func (*RenameNamespaceResponse) ProtoMessage() {} +func (*RenameNamespaceResponse) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{7} } + +func init() { + proto.RegisterType((*AddNamespaceRequest)(nil), "gitaly.AddNamespaceRequest") + proto.RegisterType((*RemoveNamespaceRequest)(nil), "gitaly.RemoveNamespaceRequest") + proto.RegisterType((*RenameNamespaceRequest)(nil), "gitaly.RenameNamespaceRequest") + proto.RegisterType((*NamespaceExistsRequest)(nil), "gitaly.NamespaceExistsRequest") + proto.RegisterType((*NamespaceExistsResponse)(nil), "gitaly.NamespaceExistsResponse") + proto.RegisterType((*AddNamespaceResponse)(nil), "gitaly.AddNamespaceResponse") + proto.RegisterType((*RemoveNamespaceResponse)(nil), "gitaly.RemoveNamespaceResponse") + proto.RegisterType((*RenameNamespaceResponse)(nil), "gitaly.RenameNamespaceResponse") +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// Client API for NamespaceService service + +type NamespaceServiceClient interface { + AddNamespace(ctx context.Context, in *AddNamespaceRequest, opts ...grpc.CallOption) (*AddNamespaceResponse, error) + RemoveNamespace(ctx context.Context, in *RemoveNamespaceRequest, opts ...grpc.CallOption) (*RemoveNamespaceResponse, error) + RenameNamespace(ctx context.Context, in *RenameNamespaceRequest, opts ...grpc.CallOption) (*RenameNamespaceResponse, error) + NamespaceExists(ctx context.Context, in *NamespaceExistsRequest, opts ...grpc.CallOption) (*NamespaceExistsResponse, error) +} + +type namespaceServiceClient struct { + cc *grpc.ClientConn +} + +func NewNamespaceServiceClient(cc *grpc.ClientConn) NamespaceServiceClient { + return &namespaceServiceClient{cc} +} + +func (c *namespaceServiceClient) AddNamespace(ctx context.Context, in *AddNamespaceRequest, opts ...grpc.CallOption) (*AddNamespaceResponse, error) { + out := new(AddNamespaceResponse) + err := grpc.Invoke(ctx, "/gitaly.NamespaceService/AddNamespace", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *namespaceServiceClient) RemoveNamespace(ctx context.Context, in *RemoveNamespaceRequest, opts ...grpc.CallOption) (*RemoveNamespaceResponse, error) { + out := new(RemoveNamespaceResponse) + err := grpc.Invoke(ctx, "/gitaly.NamespaceService/RemoveNamespace", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *namespaceServiceClient) RenameNamespace(ctx context.Context, in *RenameNamespaceRequest, opts ...grpc.CallOption) (*RenameNamespaceResponse, error) { + out := new(RenameNamespaceResponse) + err := grpc.Invoke(ctx, "/gitaly.NamespaceService/RenameNamespace", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *namespaceServiceClient) NamespaceExists(ctx context.Context, in *NamespaceExistsRequest, opts ...grpc.CallOption) (*NamespaceExistsResponse, error) { + out := new(NamespaceExistsResponse) + err := grpc.Invoke(ctx, "/gitaly.NamespaceService/NamespaceExists", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for NamespaceService service + +type NamespaceServiceServer interface { + AddNamespace(context.Context, *AddNamespaceRequest) (*AddNamespaceResponse, error) + RemoveNamespace(context.Context, *RemoveNamespaceRequest) (*RemoveNamespaceResponse, error) + RenameNamespace(context.Context, *RenameNamespaceRequest) (*RenameNamespaceResponse, error) + NamespaceExists(context.Context, *NamespaceExistsRequest) (*NamespaceExistsResponse, error) +} + +func RegisterNamespaceServiceServer(s *grpc.Server, srv NamespaceServiceServer) { + s.RegisterService(&_NamespaceService_serviceDesc, srv) +} + +func _NamespaceService_AddNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddNamespaceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NamespaceServiceServer).AddNamespace(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.NamespaceService/AddNamespace", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NamespaceServiceServer).AddNamespace(ctx, req.(*AddNamespaceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NamespaceService_RemoveNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveNamespaceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NamespaceServiceServer).RemoveNamespace(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.NamespaceService/RemoveNamespace", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NamespaceServiceServer).RemoveNamespace(ctx, req.(*RemoveNamespaceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NamespaceService_RenameNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RenameNamespaceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NamespaceServiceServer).RenameNamespace(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.NamespaceService/RenameNamespace", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NamespaceServiceServer).RenameNamespace(ctx, req.(*RenameNamespaceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NamespaceService_NamespaceExists_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(NamespaceExistsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NamespaceServiceServer).NamespaceExists(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.NamespaceService/NamespaceExists", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NamespaceServiceServer).NamespaceExists(ctx, req.(*NamespaceExistsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _NamespaceService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.NamespaceService", + HandlerType: (*NamespaceServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "AddNamespace", + Handler: _NamespaceService_AddNamespace_Handler, + }, + { + MethodName: "RemoveNamespace", + Handler: _NamespaceService_RemoveNamespace_Handler, + }, + { + MethodName: "RenameNamespace", + Handler: _NamespaceService_RenameNamespace_Handler, + }, + { + MethodName: "NamespaceExists", + Handler: _NamespaceService_NamespaceExists_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "namespace.proto", +} + +func init() { proto.RegisterFile("namespace.proto", fileDescriptor5) } + +var fileDescriptor5 = []byte{ + // 291 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xcf, 0x4b, 0xcc, 0x4d, + 0x2d, 0x2e, 0x48, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x4b, 0xcf, 0x2c, + 0x49, 0xcc, 0xa9, 0x54, 0xf2, 0xe1, 0x12, 0x76, 0x4c, 0x49, 0xf1, 0x83, 0xc9, 0x06, 0xa5, 0x16, + 0x96, 0xa6, 0x16, 0x97, 0x08, 0x29, 0x72, 0xf1, 0x14, 0x97, 0xe4, 0x17, 0x25, 0xa6, 0xa7, 0xc6, + 0x83, 0x74, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x71, 0x43, 0xc5, 0x40, 0xca, 0x85, 0x84, + 0xb8, 0x58, 0xc0, 0x52, 0x4c, 0x60, 0x29, 0x30, 0x5b, 0xc9, 0x9f, 0x4b, 0x2c, 0x28, 0x35, 0x37, + 0xbf, 0x2c, 0x95, 0x5a, 0x06, 0xc6, 0x83, 0x0c, 0x04, 0xb1, 0xc8, 0x34, 0x30, 0xad, 0x28, 0x3f, + 0x17, 0x66, 0x20, 0x88, 0x2d, 0xc4, 0xc7, 0xc5, 0x54, 0x92, 0x2f, 0xc1, 0x0c, 0x16, 0x61, 0x2a, + 0xc9, 0x07, 0xb9, 0x18, 0x6e, 0xb4, 0x6b, 0x45, 0x66, 0x71, 0x49, 0x31, 0x85, 0x2e, 0x36, 0xe4, + 0x12, 0xc7, 0x30, 0xb0, 0xb8, 0x20, 0x3f, 0xaf, 0x38, 0x55, 0x48, 0x8c, 0x8b, 0x2d, 0x15, 0x2c, + 0x02, 0x36, 0x8b, 0x23, 0x08, 0xca, 0x53, 0x12, 0xe3, 0x12, 0x41, 0x8d, 0x03, 0x88, 0x7a, 0x25, + 0x49, 0x2e, 0x71, 0x8c, 0xd0, 0x44, 0x96, 0x42, 0x0b, 0x17, 0x88, 0x94, 0xd1, 0x43, 0x26, 0x2e, + 0x01, 0xb8, 0x68, 0x70, 0x6a, 0x51, 0x59, 0x66, 0x72, 0xaa, 0x90, 0x37, 0x17, 0x0f, 0xb2, 0x15, + 0x42, 0xd2, 0x7a, 0x90, 0xf8, 0xd7, 0xc3, 0x12, 0xf9, 0x52, 0x32, 0xd8, 0x25, 0xa1, 0x56, 0x33, + 0x08, 0x85, 0x70, 0xf1, 0xa3, 0xb9, 0x4b, 0x48, 0x0e, 0xa6, 0x05, 0x7b, 0xf4, 0x4b, 0xc9, 0xe3, + 0x94, 0x47, 0x35, 0x15, 0xc5, 0x4b, 0xc8, 0xa6, 0x62, 0x4b, 0x03, 0xc8, 0xa6, 0x62, 0x0d, 0x0b, + 0x88, 0xa9, 0x68, 0xd1, 0x81, 0x30, 0x15, 0x7b, 0xc4, 0x23, 0x4c, 0xc5, 0x11, 0x8f, 0x4a, 0x0c, + 0x49, 0x6c, 0xe0, 0x4c, 0x64, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xe3, 0x36, 0x4b, 0x73, 0x57, + 0x03, 0x00, 0x00, +} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/notifications.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/notifications.pb.go new file mode 100644 index 0000000..56918cd --- /dev/null +++ b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/notifications.pb.go @@ -0,0 +1,136 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: notifications.proto + +package gitalypb + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +type PostReceiveRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` +} + +func (m *PostReceiveRequest) Reset() { *m = PostReceiveRequest{} } +func (m *PostReceiveRequest) String() string { return proto.CompactTextString(m) } +func (*PostReceiveRequest) ProtoMessage() {} +func (*PostReceiveRequest) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{0} } + +func (m *PostReceiveRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +type PostReceiveResponse struct { +} + +func (m *PostReceiveResponse) Reset() { *m = PostReceiveResponse{} } +func (m *PostReceiveResponse) String() string { return proto.CompactTextString(m) } +func (*PostReceiveResponse) ProtoMessage() {} +func (*PostReceiveResponse) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{1} } + +func init() { + proto.RegisterType((*PostReceiveRequest)(nil), "gitaly.PostReceiveRequest") + proto.RegisterType((*PostReceiveResponse)(nil), "gitaly.PostReceiveResponse") +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// Client API for NotificationService service + +type NotificationServiceClient interface { + PostReceive(ctx context.Context, in *PostReceiveRequest, opts ...grpc.CallOption) (*PostReceiveResponse, error) +} + +type notificationServiceClient struct { + cc *grpc.ClientConn +} + +func NewNotificationServiceClient(cc *grpc.ClientConn) NotificationServiceClient { + return ¬ificationServiceClient{cc} +} + +func (c *notificationServiceClient) PostReceive(ctx context.Context, in *PostReceiveRequest, opts ...grpc.CallOption) (*PostReceiveResponse, error) { + out := new(PostReceiveResponse) + err := grpc.Invoke(ctx, "/gitaly.NotificationService/PostReceive", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for NotificationService service + +type NotificationServiceServer interface { + PostReceive(context.Context, *PostReceiveRequest) (*PostReceiveResponse, error) +} + +func RegisterNotificationServiceServer(s *grpc.Server, srv NotificationServiceServer) { + s.RegisterService(&_NotificationService_serviceDesc, srv) +} + +func _NotificationService_PostReceive_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PostReceiveRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NotificationServiceServer).PostReceive(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.NotificationService/PostReceive", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NotificationServiceServer).PostReceive(ctx, req.(*PostReceiveRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _NotificationService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.NotificationService", + HandlerType: (*NotificationServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "PostReceive", + Handler: _NotificationService_PostReceive_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "notifications.proto", +} + +func init() { proto.RegisterFile("notifications.proto", fileDescriptor6) } + +var fileDescriptor6 = []byte{ + // 170 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xce, 0xcb, 0x2f, 0xc9, + 0x4c, 0xcb, 0x4c, 0x4e, 0x2c, 0xc9, 0xcc, 0xcf, 0x2b, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x62, 0x4b, 0xcf, 0x2c, 0x49, 0xcc, 0xa9, 0x94, 0xe2, 0x29, 0xce, 0x48, 0x2c, 0x4a, 0x4d, 0x81, + 0x88, 0x2a, 0x79, 0x70, 0x09, 0x05, 0xe4, 0x17, 0x97, 0x04, 0xa5, 0x26, 0xa7, 0x66, 0x96, 0xa5, + 0x06, 0xa5, 0x16, 0x96, 0xa6, 0x16, 0x97, 0x08, 0x19, 0x71, 0x71, 0x15, 0xa5, 0x16, 0xe4, 0x17, + 0x67, 0x96, 0xe4, 0x17, 0x55, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0x09, 0xe9, 0x41, 0x0c, + 0xd0, 0x0b, 0x82, 0xcb, 0x04, 0x21, 0xa9, 0x52, 0x12, 0xe5, 0x12, 0x46, 0x31, 0xa9, 0xb8, 0x20, + 0x3f, 0xaf, 0x38, 0xd5, 0x28, 0x9e, 0x4b, 0xd8, 0x0f, 0xc9, 0x35, 0xc1, 0xa9, 0x45, 0x65, 0x99, + 0xc9, 0xa9, 0x42, 0x1e, 0x5c, 0xdc, 0x48, 0xaa, 0x85, 0xa4, 0x60, 0x86, 0x63, 0x3a, 0x46, 0x4a, + 0x1a, 0xab, 0x1c, 0xc4, 0x78, 0x25, 0x86, 0x24, 0x36, 0xb0, 0x47, 0x8c, 0x01, 0x01, 0x00, 0x00, + 0xff, 0xff, 0x98, 0xea, 0xcc, 0xff, 0xf5, 0x00, 0x00, 0x00, +} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/objectpool.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/objectpool.pb.go new file mode 100644 index 0000000..e48d315 --- /dev/null +++ b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/objectpool.pb.go @@ -0,0 +1,374 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: objectpool.proto + +package gitalypb + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +type ObjectPool struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` +} + +func (m *ObjectPool) Reset() { *m = ObjectPool{} } +func (m *ObjectPool) String() string { return proto.CompactTextString(m) } +func (*ObjectPool) ProtoMessage() {} +func (*ObjectPool) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{0} } + +func (m *ObjectPool) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +// Creates an object pool from the repository. The client is responsible for +// joining this pool later with this repository. +type CreateObjectPoolRequest struct { + ObjectPool *ObjectPool `protobuf:"bytes,1,opt,name=object_pool,json=objectPool" json:"object_pool,omitempty"` + Origin *Repository `protobuf:"bytes,2,opt,name=origin" json:"origin,omitempty"` +} + +func (m *CreateObjectPoolRequest) Reset() { *m = CreateObjectPoolRequest{} } +func (m *CreateObjectPoolRequest) String() string { return proto.CompactTextString(m) } +func (*CreateObjectPoolRequest) ProtoMessage() {} +func (*CreateObjectPoolRequest) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{1} } + +func (m *CreateObjectPoolRequest) GetObjectPool() *ObjectPool { + if m != nil { + return m.ObjectPool + } + return nil +} + +func (m *CreateObjectPoolRequest) GetOrigin() *Repository { + if m != nil { + return m.Origin + } + return nil +} + +type CreateObjectPoolResponse struct { +} + +func (m *CreateObjectPoolResponse) Reset() { *m = CreateObjectPoolResponse{} } +func (m *CreateObjectPoolResponse) String() string { return proto.CompactTextString(m) } +func (*CreateObjectPoolResponse) ProtoMessage() {} +func (*CreateObjectPoolResponse) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{2} } + +// Removes the directory from disk, caller is responsible for leaving the object +// pool before calling this RPC +type DeleteObjectPoolRequest struct { + ObjectPool *ObjectPool `protobuf:"bytes,1,opt,name=object_pool,json=objectPool" json:"object_pool,omitempty"` +} + +func (m *DeleteObjectPoolRequest) Reset() { *m = DeleteObjectPoolRequest{} } +func (m *DeleteObjectPoolRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteObjectPoolRequest) ProtoMessage() {} +func (*DeleteObjectPoolRequest) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{3} } + +func (m *DeleteObjectPoolRequest) GetObjectPool() *ObjectPool { + if m != nil { + return m.ObjectPool + } + return nil +} + +type DeleteObjectPoolResponse struct { +} + +func (m *DeleteObjectPoolResponse) Reset() { *m = DeleteObjectPoolResponse{} } +func (m *DeleteObjectPoolResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteObjectPoolResponse) ProtoMessage() {} +func (*DeleteObjectPoolResponse) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{4} } + +type LinkRepositoryToObjectPoolRequest struct { + ObjectPool *ObjectPool `protobuf:"bytes,1,opt,name=object_pool,json=objectPool" json:"object_pool,omitempty"` + Repository *Repository `protobuf:"bytes,2,opt,name=repository" json:"repository,omitempty"` +} + +func (m *LinkRepositoryToObjectPoolRequest) Reset() { *m = LinkRepositoryToObjectPoolRequest{} } +func (m *LinkRepositoryToObjectPoolRequest) String() string { return proto.CompactTextString(m) } +func (*LinkRepositoryToObjectPoolRequest) ProtoMessage() {} +func (*LinkRepositoryToObjectPoolRequest) Descriptor() ([]byte, []int) { + return fileDescriptor7, []int{5} +} + +func (m *LinkRepositoryToObjectPoolRequest) GetObjectPool() *ObjectPool { + if m != nil { + return m.ObjectPool + } + return nil +} + +func (m *LinkRepositoryToObjectPoolRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +type LinkRepositoryToObjectPoolResponse struct { +} + +func (m *LinkRepositoryToObjectPoolResponse) Reset() { *m = LinkRepositoryToObjectPoolResponse{} } +func (m *LinkRepositoryToObjectPoolResponse) String() string { return proto.CompactTextString(m) } +func (*LinkRepositoryToObjectPoolResponse) ProtoMessage() {} +func (*LinkRepositoryToObjectPoolResponse) Descriptor() ([]byte, []int) { + return fileDescriptor7, []int{6} +} + +// This RPC doesn't require the ObjectPool as it will remove the alternates file +// from the pool participant. The caller is responsible no data loss occurs. +type UnlinkRepositoryFromObjectPoolRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` +} + +func (m *UnlinkRepositoryFromObjectPoolRequest) Reset() { *m = UnlinkRepositoryFromObjectPoolRequest{} } +func (m *UnlinkRepositoryFromObjectPoolRequest) String() string { return proto.CompactTextString(m) } +func (*UnlinkRepositoryFromObjectPoolRequest) ProtoMessage() {} +func (*UnlinkRepositoryFromObjectPoolRequest) Descriptor() ([]byte, []int) { + return fileDescriptor7, []int{7} +} + +func (m *UnlinkRepositoryFromObjectPoolRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +type UnlinkRepositoryFromObjectPoolResponse struct { +} + +func (m *UnlinkRepositoryFromObjectPoolResponse) Reset() { + *m = UnlinkRepositoryFromObjectPoolResponse{} +} +func (m *UnlinkRepositoryFromObjectPoolResponse) String() string { return proto.CompactTextString(m) } +func (*UnlinkRepositoryFromObjectPoolResponse) ProtoMessage() {} +func (*UnlinkRepositoryFromObjectPoolResponse) Descriptor() ([]byte, []int) { + return fileDescriptor7, []int{8} +} + +func init() { + proto.RegisterType((*ObjectPool)(nil), "gitaly.ObjectPool") + proto.RegisterType((*CreateObjectPoolRequest)(nil), "gitaly.CreateObjectPoolRequest") + proto.RegisterType((*CreateObjectPoolResponse)(nil), "gitaly.CreateObjectPoolResponse") + proto.RegisterType((*DeleteObjectPoolRequest)(nil), "gitaly.DeleteObjectPoolRequest") + proto.RegisterType((*DeleteObjectPoolResponse)(nil), "gitaly.DeleteObjectPoolResponse") + proto.RegisterType((*LinkRepositoryToObjectPoolRequest)(nil), "gitaly.LinkRepositoryToObjectPoolRequest") + proto.RegisterType((*LinkRepositoryToObjectPoolResponse)(nil), "gitaly.LinkRepositoryToObjectPoolResponse") + proto.RegisterType((*UnlinkRepositoryFromObjectPoolRequest)(nil), "gitaly.UnlinkRepositoryFromObjectPoolRequest") + proto.RegisterType((*UnlinkRepositoryFromObjectPoolResponse)(nil), "gitaly.UnlinkRepositoryFromObjectPoolResponse") +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// Client API for ObjectPoolService service + +type ObjectPoolServiceClient interface { + CreateObjectPool(ctx context.Context, in *CreateObjectPoolRequest, opts ...grpc.CallOption) (*CreateObjectPoolResponse, error) + DeleteObjectPool(ctx context.Context, in *DeleteObjectPoolRequest, opts ...grpc.CallOption) (*DeleteObjectPoolResponse, error) + // Repositories are assumed to be stored on the same disk + LinkRepositoryToObjectPool(ctx context.Context, in *LinkRepositoryToObjectPoolRequest, opts ...grpc.CallOption) (*LinkRepositoryToObjectPoolResponse, error) + UnlinkRepositoryFromObjectPool(ctx context.Context, in *UnlinkRepositoryFromObjectPoolRequest, opts ...grpc.CallOption) (*UnlinkRepositoryFromObjectPoolResponse, error) +} + +type objectPoolServiceClient struct { + cc *grpc.ClientConn +} + +func NewObjectPoolServiceClient(cc *grpc.ClientConn) ObjectPoolServiceClient { + return &objectPoolServiceClient{cc} +} + +func (c *objectPoolServiceClient) CreateObjectPool(ctx context.Context, in *CreateObjectPoolRequest, opts ...grpc.CallOption) (*CreateObjectPoolResponse, error) { + out := new(CreateObjectPoolResponse) + err := grpc.Invoke(ctx, "/gitaly.ObjectPoolService/CreateObjectPool", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *objectPoolServiceClient) DeleteObjectPool(ctx context.Context, in *DeleteObjectPoolRequest, opts ...grpc.CallOption) (*DeleteObjectPoolResponse, error) { + out := new(DeleteObjectPoolResponse) + err := grpc.Invoke(ctx, "/gitaly.ObjectPoolService/DeleteObjectPool", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *objectPoolServiceClient) LinkRepositoryToObjectPool(ctx context.Context, in *LinkRepositoryToObjectPoolRequest, opts ...grpc.CallOption) (*LinkRepositoryToObjectPoolResponse, error) { + out := new(LinkRepositoryToObjectPoolResponse) + err := grpc.Invoke(ctx, "/gitaly.ObjectPoolService/LinkRepositoryToObjectPool", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *objectPoolServiceClient) UnlinkRepositoryFromObjectPool(ctx context.Context, in *UnlinkRepositoryFromObjectPoolRequest, opts ...grpc.CallOption) (*UnlinkRepositoryFromObjectPoolResponse, error) { + out := new(UnlinkRepositoryFromObjectPoolResponse) + err := grpc.Invoke(ctx, "/gitaly.ObjectPoolService/UnlinkRepositoryFromObjectPool", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for ObjectPoolService service + +type ObjectPoolServiceServer interface { + CreateObjectPool(context.Context, *CreateObjectPoolRequest) (*CreateObjectPoolResponse, error) + DeleteObjectPool(context.Context, *DeleteObjectPoolRequest) (*DeleteObjectPoolResponse, error) + // Repositories are assumed to be stored on the same disk + LinkRepositoryToObjectPool(context.Context, *LinkRepositoryToObjectPoolRequest) (*LinkRepositoryToObjectPoolResponse, error) + UnlinkRepositoryFromObjectPool(context.Context, *UnlinkRepositoryFromObjectPoolRequest) (*UnlinkRepositoryFromObjectPoolResponse, error) +} + +func RegisterObjectPoolServiceServer(s *grpc.Server, srv ObjectPoolServiceServer) { + s.RegisterService(&_ObjectPoolService_serviceDesc, srv) +} + +func _ObjectPoolService_CreateObjectPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateObjectPoolRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ObjectPoolServiceServer).CreateObjectPool(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.ObjectPoolService/CreateObjectPool", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ObjectPoolServiceServer).CreateObjectPool(ctx, req.(*CreateObjectPoolRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ObjectPoolService_DeleteObjectPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteObjectPoolRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ObjectPoolServiceServer).DeleteObjectPool(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.ObjectPoolService/DeleteObjectPool", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ObjectPoolServiceServer).DeleteObjectPool(ctx, req.(*DeleteObjectPoolRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ObjectPoolService_LinkRepositoryToObjectPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LinkRepositoryToObjectPoolRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ObjectPoolServiceServer).LinkRepositoryToObjectPool(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.ObjectPoolService/LinkRepositoryToObjectPool", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ObjectPoolServiceServer).LinkRepositoryToObjectPool(ctx, req.(*LinkRepositoryToObjectPoolRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ObjectPoolService_UnlinkRepositoryFromObjectPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UnlinkRepositoryFromObjectPoolRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ObjectPoolServiceServer).UnlinkRepositoryFromObjectPool(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.ObjectPoolService/UnlinkRepositoryFromObjectPool", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ObjectPoolServiceServer).UnlinkRepositoryFromObjectPool(ctx, req.(*UnlinkRepositoryFromObjectPoolRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _ObjectPoolService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.ObjectPoolService", + HandlerType: (*ObjectPoolServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateObjectPool", + Handler: _ObjectPoolService_CreateObjectPool_Handler, + }, + { + MethodName: "DeleteObjectPool", + Handler: _ObjectPoolService_DeleteObjectPool_Handler, + }, + { + MethodName: "LinkRepositoryToObjectPool", + Handler: _ObjectPoolService_LinkRepositoryToObjectPool_Handler, + }, + { + MethodName: "UnlinkRepositoryFromObjectPool", + Handler: _ObjectPoolService_UnlinkRepositoryFromObjectPool_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "objectpool.proto", +} + +func init() { proto.RegisterFile("objectpool.proto", fileDescriptor7) } + +var fileDescriptor7 = []byte{ + // 331 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0xc1, 0x4e, 0xc2, 0x40, + 0x18, 0x84, 0x29, 0x26, 0x1c, 0x7e, 0x3c, 0xe0, 0x5e, 0x20, 0x7b, 0x50, 0x6c, 0xd4, 0x20, 0x89, + 0x3d, 0x94, 0x17, 0x30, 0xd1, 0x78, 0x32, 0x6a, 0xaa, 0xc6, 0x83, 0x07, 0x53, 0xf0, 0x0f, 0xae, + 0xd6, 0xfe, 0x75, 0xbb, 0x98, 0xe0, 0xcd, 0xbb, 0x0f, 0xe5, 0xa3, 0x99, 0xd2, 0x96, 0x85, 0x36, + 0x0b, 0x8d, 0xe1, 0xba, 0x9d, 0xce, 0x7c, 0xdd, 0x99, 0x14, 0x5a, 0x34, 0x7c, 0xc5, 0x91, 0x8a, + 0x88, 0x02, 0x27, 0x92, 0xa4, 0x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, 0x8c, 0x8b, 0x35, 0x6a, 0x63, + 0xc3, 0x60, 0xb4, 0xb1, 0x71, 0x01, 0x35, 0x36, 0x01, 0x6e, 0xbe, 0x74, 0x76, 0x9c, 0x3b, 0xac, + 0x9d, 0x09, 0xef, 0x57, 0x91, 0xce, 0x63, 0xbf, 0x2d, 0xd8, 0x5d, 0x7d, 0xd3, 0xec, 0x24, 0x37, + 0xac, 0x54, 0x37, 0x77, 0xaa, 0xca, 0x73, 0x86, 0x61, 0x63, 0xf6, 0x2f, 0x19, 0xfc, 0x05, 0x00, + 0x00, 0xff, 0xff, 0x17, 0xc1, 0x10, 0xd9, 0x75, 0x04, 0x00, 0x00, +} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/operations.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/operations.pb.go new file mode 100644 index 0000000..cdfbba8 --- /dev/null +++ b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/operations.pb.go @@ -0,0 +1,2357 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: operations.proto + +package gitalypb + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +type UserCommitFilesActionHeader_ActionType int32 + +const ( + UserCommitFilesActionHeader_CREATE UserCommitFilesActionHeader_ActionType = 0 + UserCommitFilesActionHeader_CREATE_DIR UserCommitFilesActionHeader_ActionType = 1 + UserCommitFilesActionHeader_UPDATE UserCommitFilesActionHeader_ActionType = 2 + UserCommitFilesActionHeader_MOVE UserCommitFilesActionHeader_ActionType = 3 + UserCommitFilesActionHeader_DELETE UserCommitFilesActionHeader_ActionType = 4 + UserCommitFilesActionHeader_CHMOD UserCommitFilesActionHeader_ActionType = 5 +) + +var UserCommitFilesActionHeader_ActionType_name = map[int32]string{ + 0: "CREATE", + 1: "CREATE_DIR", + 2: "UPDATE", + 3: "MOVE", + 4: "DELETE", + 5: "CHMOD", +} +var UserCommitFilesActionHeader_ActionType_value = map[string]int32{ + "CREATE": 0, + "CREATE_DIR": 1, + "UPDATE": 2, + "MOVE": 3, + "DELETE": 4, + "CHMOD": 5, +} + +func (x UserCommitFilesActionHeader_ActionType) String() string { + return proto.EnumName(UserCommitFilesActionHeader_ActionType_name, int32(x)) +} +func (UserCommitFilesActionHeader_ActionType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor8, []int{19, 0} +} + +type UserCreateBranchRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + BranchName []byte `protobuf:"bytes,2,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"` + User *User `protobuf:"bytes,3,opt,name=user" json:"user,omitempty"` + StartPoint []byte `protobuf:"bytes,4,opt,name=start_point,json=startPoint,proto3" json:"start_point,omitempty"` +} + +func (m *UserCreateBranchRequest) Reset() { *m = UserCreateBranchRequest{} } +func (m *UserCreateBranchRequest) String() string { return proto.CompactTextString(m) } +func (*UserCreateBranchRequest) ProtoMessage() {} +func (*UserCreateBranchRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{0} } + +func (m *UserCreateBranchRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *UserCreateBranchRequest) GetBranchName() []byte { + if m != nil { + return m.BranchName + } + return nil +} + +func (m *UserCreateBranchRequest) GetUser() *User { + if m != nil { + return m.User + } + return nil +} + +func (m *UserCreateBranchRequest) GetStartPoint() []byte { + if m != nil { + return m.StartPoint + } + return nil +} + +type UserCreateBranchResponse struct { + Branch *Branch `protobuf:"bytes,1,opt,name=branch" json:"branch,omitempty"` + // Error returned by the pre-receive hook. If no error was thrown, + // it's the empty string ("") + PreReceiveError string `protobuf:"bytes,2,opt,name=pre_receive_error,json=preReceiveError" json:"pre_receive_error,omitempty"` +} + +func (m *UserCreateBranchResponse) Reset() { *m = UserCreateBranchResponse{} } +func (m *UserCreateBranchResponse) String() string { return proto.CompactTextString(m) } +func (*UserCreateBranchResponse) ProtoMessage() {} +func (*UserCreateBranchResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{1} } + +func (m *UserCreateBranchResponse) GetBranch() *Branch { + if m != nil { + return m.Branch + } + return nil +} + +func (m *UserCreateBranchResponse) GetPreReceiveError() string { + if m != nil { + return m.PreReceiveError + } + return "" +} + +type UserUpdateBranchRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + BranchName []byte `protobuf:"bytes,2,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"` + User *User `protobuf:"bytes,3,opt,name=user" json:"user,omitempty"` + Newrev []byte `protobuf:"bytes,4,opt,name=newrev,proto3" json:"newrev,omitempty"` + Oldrev []byte `protobuf:"bytes,5,opt,name=oldrev,proto3" json:"oldrev,omitempty"` +} + +func (m *UserUpdateBranchRequest) Reset() { *m = UserUpdateBranchRequest{} } +func (m *UserUpdateBranchRequest) String() string { return proto.CompactTextString(m) } +func (*UserUpdateBranchRequest) ProtoMessage() {} +func (*UserUpdateBranchRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{2} } + +func (m *UserUpdateBranchRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *UserUpdateBranchRequest) GetBranchName() []byte { + if m != nil { + return m.BranchName + } + return nil +} + +func (m *UserUpdateBranchRequest) GetUser() *User { + if m != nil { + return m.User + } + return nil +} + +func (m *UserUpdateBranchRequest) GetNewrev() []byte { + if m != nil { + return m.Newrev + } + return nil +} + +func (m *UserUpdateBranchRequest) GetOldrev() []byte { + if m != nil { + return m.Oldrev + } + return nil +} + +type UserUpdateBranchResponse struct { + PreReceiveError string `protobuf:"bytes,1,opt,name=pre_receive_error,json=preReceiveError" json:"pre_receive_error,omitempty"` +} + +func (m *UserUpdateBranchResponse) Reset() { *m = UserUpdateBranchResponse{} } +func (m *UserUpdateBranchResponse) String() string { return proto.CompactTextString(m) } +func (*UserUpdateBranchResponse) ProtoMessage() {} +func (*UserUpdateBranchResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{3} } + +func (m *UserUpdateBranchResponse) GetPreReceiveError() string { + if m != nil { + return m.PreReceiveError + } + return "" +} + +type UserDeleteBranchRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + BranchName []byte `protobuf:"bytes,2,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"` + User *User `protobuf:"bytes,3,opt,name=user" json:"user,omitempty"` +} + +func (m *UserDeleteBranchRequest) Reset() { *m = UserDeleteBranchRequest{} } +func (m *UserDeleteBranchRequest) String() string { return proto.CompactTextString(m) } +func (*UserDeleteBranchRequest) ProtoMessage() {} +func (*UserDeleteBranchRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{4} } + +func (m *UserDeleteBranchRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *UserDeleteBranchRequest) GetBranchName() []byte { + if m != nil { + return m.BranchName + } + return nil +} + +func (m *UserDeleteBranchRequest) GetUser() *User { + if m != nil { + return m.User + } + return nil +} + +type UserDeleteBranchResponse struct { + PreReceiveError string `protobuf:"bytes,1,opt,name=pre_receive_error,json=preReceiveError" json:"pre_receive_error,omitempty"` +} + +func (m *UserDeleteBranchResponse) Reset() { *m = UserDeleteBranchResponse{} } +func (m *UserDeleteBranchResponse) String() string { return proto.CompactTextString(m) } +func (*UserDeleteBranchResponse) ProtoMessage() {} +func (*UserDeleteBranchResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{5} } + +func (m *UserDeleteBranchResponse) GetPreReceiveError() string { + if m != nil { + return m.PreReceiveError + } + return "" +} + +type UserDeleteTagRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + TagName []byte `protobuf:"bytes,2,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` + User *User `protobuf:"bytes,3,opt,name=user" json:"user,omitempty"` +} + +func (m *UserDeleteTagRequest) Reset() { *m = UserDeleteTagRequest{} } +func (m *UserDeleteTagRequest) String() string { return proto.CompactTextString(m) } +func (*UserDeleteTagRequest) ProtoMessage() {} +func (*UserDeleteTagRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{6} } + +func (m *UserDeleteTagRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *UserDeleteTagRequest) GetTagName() []byte { + if m != nil { + return m.TagName + } + return nil +} + +func (m *UserDeleteTagRequest) GetUser() *User { + if m != nil { + return m.User + } + return nil +} + +type UserDeleteTagResponse struct { + PreReceiveError string `protobuf:"bytes,1,opt,name=pre_receive_error,json=preReceiveError" json:"pre_receive_error,omitempty"` +} + +func (m *UserDeleteTagResponse) Reset() { *m = UserDeleteTagResponse{} } +func (m *UserDeleteTagResponse) String() string { return proto.CompactTextString(m) } +func (*UserDeleteTagResponse) ProtoMessage() {} +func (*UserDeleteTagResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{7} } + +func (m *UserDeleteTagResponse) GetPreReceiveError() string { + if m != nil { + return m.PreReceiveError + } + return "" +} + +type UserCreateTagRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + TagName []byte `protobuf:"bytes,2,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` + User *User `protobuf:"bytes,3,opt,name=user" json:"user,omitempty"` + TargetRevision []byte `protobuf:"bytes,4,opt,name=target_revision,json=targetRevision,proto3" json:"target_revision,omitempty"` + Message []byte `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` +} + +func (m *UserCreateTagRequest) Reset() { *m = UserCreateTagRequest{} } +func (m *UserCreateTagRequest) String() string { return proto.CompactTextString(m) } +func (*UserCreateTagRequest) ProtoMessage() {} +func (*UserCreateTagRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{8} } + +func (m *UserCreateTagRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *UserCreateTagRequest) GetTagName() []byte { + if m != nil { + return m.TagName + } + return nil +} + +func (m *UserCreateTagRequest) GetUser() *User { + if m != nil { + return m.User + } + return nil +} + +func (m *UserCreateTagRequest) GetTargetRevision() []byte { + if m != nil { + return m.TargetRevision + } + return nil +} + +func (m *UserCreateTagRequest) GetMessage() []byte { + if m != nil { + return m.Message + } + return nil +} + +type UserCreateTagResponse struct { + Tag *Tag `protobuf:"bytes,1,opt,name=tag" json:"tag,omitempty"` + Exists bool `protobuf:"varint,2,opt,name=exists" json:"exists,omitempty"` + PreReceiveError string `protobuf:"bytes,3,opt,name=pre_receive_error,json=preReceiveError" json:"pre_receive_error,omitempty"` +} + +func (m *UserCreateTagResponse) Reset() { *m = UserCreateTagResponse{} } +func (m *UserCreateTagResponse) String() string { return proto.CompactTextString(m) } +func (*UserCreateTagResponse) ProtoMessage() {} +func (*UserCreateTagResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{9} } + +func (m *UserCreateTagResponse) GetTag() *Tag { + if m != nil { + return m.Tag + } + return nil +} + +func (m *UserCreateTagResponse) GetExists() bool { + if m != nil { + return m.Exists + } + return false +} + +func (m *UserCreateTagResponse) GetPreReceiveError() string { + if m != nil { + return m.PreReceiveError + } + return "" +} + +type UserMergeBranchRequest struct { + // First message + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + User *User `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"` + CommitId string `protobuf:"bytes,3,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` + Branch []byte `protobuf:"bytes,4,opt,name=branch,proto3" json:"branch,omitempty"` + Message []byte `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` + // Second message + // Tell the server to apply the merge to the branch + Apply bool `protobuf:"varint,6,opt,name=apply" json:"apply,omitempty"` +} + +func (m *UserMergeBranchRequest) Reset() { *m = UserMergeBranchRequest{} } +func (m *UserMergeBranchRequest) String() string { return proto.CompactTextString(m) } +func (*UserMergeBranchRequest) ProtoMessage() {} +func (*UserMergeBranchRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{10} } + +func (m *UserMergeBranchRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *UserMergeBranchRequest) GetUser() *User { + if m != nil { + return m.User + } + return nil +} + +func (m *UserMergeBranchRequest) GetCommitId() string { + if m != nil { + return m.CommitId + } + return "" +} + +func (m *UserMergeBranchRequest) GetBranch() []byte { + if m != nil { + return m.Branch + } + return nil +} + +func (m *UserMergeBranchRequest) GetMessage() []byte { + if m != nil { + return m.Message + } + return nil +} + +func (m *UserMergeBranchRequest) GetApply() bool { + if m != nil { + return m.Apply + } + return false +} + +type UserMergeBranchResponse struct { + // First message + // The merge commit the branch will be updated to. The caller can still abort the merge. + CommitId string `protobuf:"bytes,1,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` + // Second message + // If set, the merge has been applied to the branch. + BranchUpdate *OperationBranchUpdate `protobuf:"bytes,3,opt,name=branch_update,json=branchUpdate" json:"branch_update,omitempty"` + PreReceiveError string `protobuf:"bytes,4,opt,name=pre_receive_error,json=preReceiveError" json:"pre_receive_error,omitempty"` +} + +func (m *UserMergeBranchResponse) Reset() { *m = UserMergeBranchResponse{} } +func (m *UserMergeBranchResponse) String() string { return proto.CompactTextString(m) } +func (*UserMergeBranchResponse) ProtoMessage() {} +func (*UserMergeBranchResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{11} } + +func (m *UserMergeBranchResponse) GetCommitId() string { + if m != nil { + return m.CommitId + } + return "" +} + +func (m *UserMergeBranchResponse) GetBranchUpdate() *OperationBranchUpdate { + if m != nil { + return m.BranchUpdate + } + return nil +} + +func (m *UserMergeBranchResponse) GetPreReceiveError() string { + if m != nil { + return m.PreReceiveError + } + return "" +} + +type OperationBranchUpdate struct { + // If this string is non-empty the branch has been updated. + CommitId string `protobuf:"bytes,1,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` + // Used for cache invalidation in GitLab + RepoCreated bool `protobuf:"varint,2,opt,name=repo_created,json=repoCreated" json:"repo_created,omitempty"` + // Used for cache invalidation in GitLab + BranchCreated bool `protobuf:"varint,3,opt,name=branch_created,json=branchCreated" json:"branch_created,omitempty"` +} + +func (m *OperationBranchUpdate) Reset() { *m = OperationBranchUpdate{} } +func (m *OperationBranchUpdate) String() string { return proto.CompactTextString(m) } +func (*OperationBranchUpdate) ProtoMessage() {} +func (*OperationBranchUpdate) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{12} } + +func (m *OperationBranchUpdate) GetCommitId() string { + if m != nil { + return m.CommitId + } + return "" +} + +func (m *OperationBranchUpdate) GetRepoCreated() bool { + if m != nil { + return m.RepoCreated + } + return false +} + +func (m *OperationBranchUpdate) GetBranchCreated() bool { + if m != nil { + return m.BranchCreated + } + return false +} + +type UserFFBranchRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + User *User `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"` + CommitId string `protobuf:"bytes,3,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` + Branch []byte `protobuf:"bytes,4,opt,name=branch,proto3" json:"branch,omitempty"` +} + +func (m *UserFFBranchRequest) Reset() { *m = UserFFBranchRequest{} } +func (m *UserFFBranchRequest) String() string { return proto.CompactTextString(m) } +func (*UserFFBranchRequest) ProtoMessage() {} +func (*UserFFBranchRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{13} } + +func (m *UserFFBranchRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *UserFFBranchRequest) GetUser() *User { + if m != nil { + return m.User + } + return nil +} + +func (m *UserFFBranchRequest) GetCommitId() string { + if m != nil { + return m.CommitId + } + return "" +} + +func (m *UserFFBranchRequest) GetBranch() []byte { + if m != nil { + return m.Branch + } + return nil +} + +type UserFFBranchResponse struct { + BranchUpdate *OperationBranchUpdate `protobuf:"bytes,1,opt,name=branch_update,json=branchUpdate" json:"branch_update,omitempty"` + PreReceiveError string `protobuf:"bytes,2,opt,name=pre_receive_error,json=preReceiveError" json:"pre_receive_error,omitempty"` +} + +func (m *UserFFBranchResponse) Reset() { *m = UserFFBranchResponse{} } +func (m *UserFFBranchResponse) String() string { return proto.CompactTextString(m) } +func (*UserFFBranchResponse) ProtoMessage() {} +func (*UserFFBranchResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{14} } + +func (m *UserFFBranchResponse) GetBranchUpdate() *OperationBranchUpdate { + if m != nil { + return m.BranchUpdate + } + return nil +} + +func (m *UserFFBranchResponse) GetPreReceiveError() string { + if m != nil { + return m.PreReceiveError + } + return "" +} + +type UserCherryPickRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + User *User `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"` + Commit *GitCommit `protobuf:"bytes,3,opt,name=commit" json:"commit,omitempty"` + BranchName []byte `protobuf:"bytes,4,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"` + Message []byte `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` + StartBranchName []byte `protobuf:"bytes,6,opt,name=start_branch_name,json=startBranchName,proto3" json:"start_branch_name,omitempty"` + StartRepository *Repository `protobuf:"bytes,7,opt,name=start_repository,json=startRepository" json:"start_repository,omitempty"` +} + +func (m *UserCherryPickRequest) Reset() { *m = UserCherryPickRequest{} } +func (m *UserCherryPickRequest) String() string { return proto.CompactTextString(m) } +func (*UserCherryPickRequest) ProtoMessage() {} +func (*UserCherryPickRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{15} } + +func (m *UserCherryPickRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *UserCherryPickRequest) GetUser() *User { + if m != nil { + return m.User + } + return nil +} + +func (m *UserCherryPickRequest) GetCommit() *GitCommit { + if m != nil { + return m.Commit + } + return nil +} + +func (m *UserCherryPickRequest) GetBranchName() []byte { + if m != nil { + return m.BranchName + } + return nil +} + +func (m *UserCherryPickRequest) GetMessage() []byte { + if m != nil { + return m.Message + } + return nil +} + +func (m *UserCherryPickRequest) GetStartBranchName() []byte { + if m != nil { + return m.StartBranchName + } + return nil +} + +func (m *UserCherryPickRequest) GetStartRepository() *Repository { + if m != nil { + return m.StartRepository + } + return nil +} + +type UserCherryPickResponse struct { + BranchUpdate *OperationBranchUpdate `protobuf:"bytes,1,opt,name=branch_update,json=branchUpdate" json:"branch_update,omitempty"` + CreateTreeError string `protobuf:"bytes,2,opt,name=create_tree_error,json=createTreeError" json:"create_tree_error,omitempty"` + CommitError string `protobuf:"bytes,3,opt,name=commit_error,json=commitError" json:"commit_error,omitempty"` + PreReceiveError string `protobuf:"bytes,4,opt,name=pre_receive_error,json=preReceiveError" json:"pre_receive_error,omitempty"` +} + +func (m *UserCherryPickResponse) Reset() { *m = UserCherryPickResponse{} } +func (m *UserCherryPickResponse) String() string { return proto.CompactTextString(m) } +func (*UserCherryPickResponse) ProtoMessage() {} +func (*UserCherryPickResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{16} } + +func (m *UserCherryPickResponse) GetBranchUpdate() *OperationBranchUpdate { + if m != nil { + return m.BranchUpdate + } + return nil +} + +func (m *UserCherryPickResponse) GetCreateTreeError() string { + if m != nil { + return m.CreateTreeError + } + return "" +} + +func (m *UserCherryPickResponse) GetCommitError() string { + if m != nil { + return m.CommitError + } + return "" +} + +func (m *UserCherryPickResponse) GetPreReceiveError() string { + if m != nil { + return m.PreReceiveError + } + return "" +} + +type UserRevertRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + User *User `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"` + Commit *GitCommit `protobuf:"bytes,3,opt,name=commit" json:"commit,omitempty"` + BranchName []byte `protobuf:"bytes,4,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"` + Message []byte `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` + StartBranchName []byte `protobuf:"bytes,6,opt,name=start_branch_name,json=startBranchName,proto3" json:"start_branch_name,omitempty"` + StartRepository *Repository `protobuf:"bytes,7,opt,name=start_repository,json=startRepository" json:"start_repository,omitempty"` +} + +func (m *UserRevertRequest) Reset() { *m = UserRevertRequest{} } +func (m *UserRevertRequest) String() string { return proto.CompactTextString(m) } +func (*UserRevertRequest) ProtoMessage() {} +func (*UserRevertRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{17} } + +func (m *UserRevertRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *UserRevertRequest) GetUser() *User { + if m != nil { + return m.User + } + return nil +} + +func (m *UserRevertRequest) GetCommit() *GitCommit { + if m != nil { + return m.Commit + } + return nil +} + +func (m *UserRevertRequest) GetBranchName() []byte { + if m != nil { + return m.BranchName + } + return nil +} + +func (m *UserRevertRequest) GetMessage() []byte { + if m != nil { + return m.Message + } + return nil +} + +func (m *UserRevertRequest) GetStartBranchName() []byte { + if m != nil { + return m.StartBranchName + } + return nil +} + +func (m *UserRevertRequest) GetStartRepository() *Repository { + if m != nil { + return m.StartRepository + } + return nil +} + +type UserRevertResponse struct { + BranchUpdate *OperationBranchUpdate `protobuf:"bytes,1,opt,name=branch_update,json=branchUpdate" json:"branch_update,omitempty"` + CreateTreeError string `protobuf:"bytes,2,opt,name=create_tree_error,json=createTreeError" json:"create_tree_error,omitempty"` + CommitError string `protobuf:"bytes,3,opt,name=commit_error,json=commitError" json:"commit_error,omitempty"` + PreReceiveError string `protobuf:"bytes,4,opt,name=pre_receive_error,json=preReceiveError" json:"pre_receive_error,omitempty"` +} + +func (m *UserRevertResponse) Reset() { *m = UserRevertResponse{} } +func (m *UserRevertResponse) String() string { return proto.CompactTextString(m) } +func (*UserRevertResponse) ProtoMessage() {} +func (*UserRevertResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{18} } + +func (m *UserRevertResponse) GetBranchUpdate() *OperationBranchUpdate { + if m != nil { + return m.BranchUpdate + } + return nil +} + +func (m *UserRevertResponse) GetCreateTreeError() string { + if m != nil { + return m.CreateTreeError + } + return "" +} + +func (m *UserRevertResponse) GetCommitError() string { + if m != nil { + return m.CommitError + } + return "" +} + +func (m *UserRevertResponse) GetPreReceiveError() string { + if m != nil { + return m.PreReceiveError + } + return "" +} + +type UserCommitFilesActionHeader struct { + Action UserCommitFilesActionHeader_ActionType `protobuf:"varint,1,opt,name=action,enum=gitaly.UserCommitFilesActionHeader_ActionType" json:"action,omitempty"` + FilePath []byte `protobuf:"bytes,2,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` + PreviousPath []byte `protobuf:"bytes,3,opt,name=previous_path,json=previousPath,proto3" json:"previous_path,omitempty"` + Base64Content bool `protobuf:"varint,4,opt,name=base64_content,json=base64Content" json:"base64_content,omitempty"` + ExecuteFilemode bool `protobuf:"varint,5,opt,name=execute_filemode,json=executeFilemode" json:"execute_filemode,omitempty"` + // Move actions that change the file path, but not its content, should set + // infer_content to true instead of populating the content field. Ignored for + // other action types. + InferContent bool `protobuf:"varint,6,opt,name=infer_content,json=inferContent" json:"infer_content,omitempty"` +} + +func (m *UserCommitFilesActionHeader) Reset() { *m = UserCommitFilesActionHeader{} } +func (m *UserCommitFilesActionHeader) String() string { return proto.CompactTextString(m) } +func (*UserCommitFilesActionHeader) ProtoMessage() {} +func (*UserCommitFilesActionHeader) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{19} } + +func (m *UserCommitFilesActionHeader) GetAction() UserCommitFilesActionHeader_ActionType { + if m != nil { + return m.Action + } + return UserCommitFilesActionHeader_CREATE +} + +func (m *UserCommitFilesActionHeader) GetFilePath() []byte { + if m != nil { + return m.FilePath + } + return nil +} + +func (m *UserCommitFilesActionHeader) GetPreviousPath() []byte { + if m != nil { + return m.PreviousPath + } + return nil +} + +func (m *UserCommitFilesActionHeader) GetBase64Content() bool { + if m != nil { + return m.Base64Content + } + return false +} + +func (m *UserCommitFilesActionHeader) GetExecuteFilemode() bool { + if m != nil { + return m.ExecuteFilemode + } + return false +} + +func (m *UserCommitFilesActionHeader) GetInferContent() bool { + if m != nil { + return m.InferContent + } + return false +} + +type UserCommitFilesAction struct { + // Types that are valid to be assigned to UserCommitFilesActionPayload: + // *UserCommitFilesAction_Header + // *UserCommitFilesAction_Content + UserCommitFilesActionPayload isUserCommitFilesAction_UserCommitFilesActionPayload `protobuf_oneof:"user_commit_files_action_payload"` +} + +func (m *UserCommitFilesAction) Reset() { *m = UserCommitFilesAction{} } +func (m *UserCommitFilesAction) String() string { return proto.CompactTextString(m) } +func (*UserCommitFilesAction) ProtoMessage() {} +func (*UserCommitFilesAction) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{20} } + +type isUserCommitFilesAction_UserCommitFilesActionPayload interface{ isUserCommitFilesAction_UserCommitFilesActionPayload() } + +type UserCommitFilesAction_Header struct { + Header *UserCommitFilesActionHeader `protobuf:"bytes,1,opt,name=header,oneof"` +} +type UserCommitFilesAction_Content struct { + Content []byte `protobuf:"bytes,2,opt,name=content,proto3,oneof"` +} + +func (*UserCommitFilesAction_Header) isUserCommitFilesAction_UserCommitFilesActionPayload() {} +func (*UserCommitFilesAction_Content) isUserCommitFilesAction_UserCommitFilesActionPayload() {} + +func (m *UserCommitFilesAction) GetUserCommitFilesActionPayload() isUserCommitFilesAction_UserCommitFilesActionPayload { + if m != nil { + return m.UserCommitFilesActionPayload + } + return nil +} + +func (m *UserCommitFilesAction) GetHeader() *UserCommitFilesActionHeader { + if x, ok := m.GetUserCommitFilesActionPayload().(*UserCommitFilesAction_Header); ok { + return x.Header + } + return nil +} + +func (m *UserCommitFilesAction) GetContent() []byte { + if x, ok := m.GetUserCommitFilesActionPayload().(*UserCommitFilesAction_Content); ok { + return x.Content + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*UserCommitFilesAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _UserCommitFilesAction_OneofMarshaler, _UserCommitFilesAction_OneofUnmarshaler, _UserCommitFilesAction_OneofSizer, []interface{}{ + (*UserCommitFilesAction_Header)(nil), + (*UserCommitFilesAction_Content)(nil), + } +} + +func _UserCommitFilesAction_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*UserCommitFilesAction) + // user_commit_files_action_payload + switch x := m.UserCommitFilesActionPayload.(type) { + case *UserCommitFilesAction_Header: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Header); err != nil { + return err + } + case *UserCommitFilesAction_Content: + b.EncodeVarint(2<<3 | proto.WireBytes) + b.EncodeRawBytes(x.Content) + case nil: + default: + return fmt.Errorf("UserCommitFilesAction.UserCommitFilesActionPayload has unexpected type %T", x) + } + return nil +} + +func _UserCommitFilesAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*UserCommitFilesAction) + switch tag { + case 1: // user_commit_files_action_payload.header + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(UserCommitFilesActionHeader) + err := b.DecodeMessage(msg) + m.UserCommitFilesActionPayload = &UserCommitFilesAction_Header{msg} + return true, err + case 2: // user_commit_files_action_payload.content + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeRawBytes(true) + m.UserCommitFilesActionPayload = &UserCommitFilesAction_Content{x} + return true, err + default: + return false, nil + } +} + +func _UserCommitFilesAction_OneofSizer(msg proto.Message) (n int) { + m := msg.(*UserCommitFilesAction) + // user_commit_files_action_payload + switch x := m.UserCommitFilesActionPayload.(type) { + case *UserCommitFilesAction_Header: + s := proto.Size(x.Header) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *UserCommitFilesAction_Content: + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(len(x.Content))) + n += len(x.Content) + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +type UserCommitFilesRequestHeader struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + User *User `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"` + BranchName []byte `protobuf:"bytes,3,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"` + CommitMessage []byte `protobuf:"bytes,4,opt,name=commit_message,json=commitMessage,proto3" json:"commit_message,omitempty"` + CommitAuthorName []byte `protobuf:"bytes,5,opt,name=commit_author_name,json=commitAuthorName,proto3" json:"commit_author_name,omitempty"` + CommitAuthorEmail []byte `protobuf:"bytes,6,opt,name=commit_author_email,json=commitAuthorEmail,proto3" json:"commit_author_email,omitempty"` + StartBranchName []byte `protobuf:"bytes,7,opt,name=start_branch_name,json=startBranchName,proto3" json:"start_branch_name,omitempty"` + StartRepository *Repository `protobuf:"bytes,8,opt,name=start_repository,json=startRepository" json:"start_repository,omitempty"` +} + +func (m *UserCommitFilesRequestHeader) Reset() { *m = UserCommitFilesRequestHeader{} } +func (m *UserCommitFilesRequestHeader) String() string { return proto.CompactTextString(m) } +func (*UserCommitFilesRequestHeader) ProtoMessage() {} +func (*UserCommitFilesRequestHeader) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{21} } + +func (m *UserCommitFilesRequestHeader) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *UserCommitFilesRequestHeader) GetUser() *User { + if m != nil { + return m.User + } + return nil +} + +func (m *UserCommitFilesRequestHeader) GetBranchName() []byte { + if m != nil { + return m.BranchName + } + return nil +} + +func (m *UserCommitFilesRequestHeader) GetCommitMessage() []byte { + if m != nil { + return m.CommitMessage + } + return nil +} + +func (m *UserCommitFilesRequestHeader) GetCommitAuthorName() []byte { + if m != nil { + return m.CommitAuthorName + } + return nil +} + +func (m *UserCommitFilesRequestHeader) GetCommitAuthorEmail() []byte { + if m != nil { + return m.CommitAuthorEmail + } + return nil +} + +func (m *UserCommitFilesRequestHeader) GetStartBranchName() []byte { + if m != nil { + return m.StartBranchName + } + return nil +} + +func (m *UserCommitFilesRequestHeader) GetStartRepository() *Repository { + if m != nil { + return m.StartRepository + } + return nil +} + +type UserCommitFilesRequest struct { + // Types that are valid to be assigned to UserCommitFilesRequestPayload: + // *UserCommitFilesRequest_Header + // *UserCommitFilesRequest_Action + UserCommitFilesRequestPayload isUserCommitFilesRequest_UserCommitFilesRequestPayload `protobuf_oneof:"user_commit_files_request_payload"` +} + +func (m *UserCommitFilesRequest) Reset() { *m = UserCommitFilesRequest{} } +func (m *UserCommitFilesRequest) String() string { return proto.CompactTextString(m) } +func (*UserCommitFilesRequest) ProtoMessage() {} +func (*UserCommitFilesRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{22} } + +type isUserCommitFilesRequest_UserCommitFilesRequestPayload interface{ isUserCommitFilesRequest_UserCommitFilesRequestPayload() } + +type UserCommitFilesRequest_Header struct { + Header *UserCommitFilesRequestHeader `protobuf:"bytes,1,opt,name=header,oneof"` +} +type UserCommitFilesRequest_Action struct { + Action *UserCommitFilesAction `protobuf:"bytes,2,opt,name=action,oneof"` +} + +func (*UserCommitFilesRequest_Header) isUserCommitFilesRequest_UserCommitFilesRequestPayload() {} +func (*UserCommitFilesRequest_Action) isUserCommitFilesRequest_UserCommitFilesRequestPayload() {} + +func (m *UserCommitFilesRequest) GetUserCommitFilesRequestPayload() isUserCommitFilesRequest_UserCommitFilesRequestPayload { + if m != nil { + return m.UserCommitFilesRequestPayload + } + return nil +} + +func (m *UserCommitFilesRequest) GetHeader() *UserCommitFilesRequestHeader { + if x, ok := m.GetUserCommitFilesRequestPayload().(*UserCommitFilesRequest_Header); ok { + return x.Header + } + return nil +} + +func (m *UserCommitFilesRequest) GetAction() *UserCommitFilesAction { + if x, ok := m.GetUserCommitFilesRequestPayload().(*UserCommitFilesRequest_Action); ok { + return x.Action + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*UserCommitFilesRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _UserCommitFilesRequest_OneofMarshaler, _UserCommitFilesRequest_OneofUnmarshaler, _UserCommitFilesRequest_OneofSizer, []interface{}{ + (*UserCommitFilesRequest_Header)(nil), + (*UserCommitFilesRequest_Action)(nil), + } +} + +func _UserCommitFilesRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*UserCommitFilesRequest) + // user_commit_files_request_payload + switch x := m.UserCommitFilesRequestPayload.(type) { + case *UserCommitFilesRequest_Header: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Header); err != nil { + return err + } + case *UserCommitFilesRequest_Action: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Action); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("UserCommitFilesRequest.UserCommitFilesRequestPayload has unexpected type %T", x) + } + return nil +} + +func _UserCommitFilesRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*UserCommitFilesRequest) + switch tag { + case 1: // user_commit_files_request_payload.header + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(UserCommitFilesRequestHeader) + err := b.DecodeMessage(msg) + m.UserCommitFilesRequestPayload = &UserCommitFilesRequest_Header{msg} + return true, err + case 2: // user_commit_files_request_payload.action + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(UserCommitFilesAction) + err := b.DecodeMessage(msg) + m.UserCommitFilesRequestPayload = &UserCommitFilesRequest_Action{msg} + return true, err + default: + return false, nil + } +} + +func _UserCommitFilesRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*UserCommitFilesRequest) + // user_commit_files_request_payload + switch x := m.UserCommitFilesRequestPayload.(type) { + case *UserCommitFilesRequest_Header: + s := proto.Size(x.Header) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *UserCommitFilesRequest_Action: + s := proto.Size(x.Action) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +type UserCommitFilesResponse struct { + BranchUpdate *OperationBranchUpdate `protobuf:"bytes,1,opt,name=branch_update,json=branchUpdate" json:"branch_update,omitempty"` + IndexError string `protobuf:"bytes,2,opt,name=index_error,json=indexError" json:"index_error,omitempty"` + PreReceiveError string `protobuf:"bytes,3,opt,name=pre_receive_error,json=preReceiveError" json:"pre_receive_error,omitempty"` +} + +func (m *UserCommitFilesResponse) Reset() { *m = UserCommitFilesResponse{} } +func (m *UserCommitFilesResponse) String() string { return proto.CompactTextString(m) } +func (*UserCommitFilesResponse) ProtoMessage() {} +func (*UserCommitFilesResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{23} } + +func (m *UserCommitFilesResponse) GetBranchUpdate() *OperationBranchUpdate { + if m != nil { + return m.BranchUpdate + } + return nil +} + +func (m *UserCommitFilesResponse) GetIndexError() string { + if m != nil { + return m.IndexError + } + return "" +} + +func (m *UserCommitFilesResponse) GetPreReceiveError() string { + if m != nil { + return m.PreReceiveError + } + return "" +} + +type UserRebaseRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + User *User `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"` + RebaseId string `protobuf:"bytes,3,opt,name=rebase_id,json=rebaseId" json:"rebase_id,omitempty"` + Branch []byte `protobuf:"bytes,4,opt,name=branch,proto3" json:"branch,omitempty"` + BranchSha string `protobuf:"bytes,5,opt,name=branch_sha,json=branchSha" json:"branch_sha,omitempty"` + RemoteRepository *Repository `protobuf:"bytes,6,opt,name=remote_repository,json=remoteRepository" json:"remote_repository,omitempty"` + RemoteBranch []byte `protobuf:"bytes,7,opt,name=remote_branch,json=remoteBranch,proto3" json:"remote_branch,omitempty"` +} + +func (m *UserRebaseRequest) Reset() { *m = UserRebaseRequest{} } +func (m *UserRebaseRequest) String() string { return proto.CompactTextString(m) } +func (*UserRebaseRequest) ProtoMessage() {} +func (*UserRebaseRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{24} } + +func (m *UserRebaseRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *UserRebaseRequest) GetUser() *User { + if m != nil { + return m.User + } + return nil +} + +func (m *UserRebaseRequest) GetRebaseId() string { + if m != nil { + return m.RebaseId + } + return "" +} + +func (m *UserRebaseRequest) GetBranch() []byte { + if m != nil { + return m.Branch + } + return nil +} + +func (m *UserRebaseRequest) GetBranchSha() string { + if m != nil { + return m.BranchSha + } + return "" +} + +func (m *UserRebaseRequest) GetRemoteRepository() *Repository { + if m != nil { + return m.RemoteRepository + } + return nil +} + +func (m *UserRebaseRequest) GetRemoteBranch() []byte { + if m != nil { + return m.RemoteBranch + } + return nil +} + +type UserRebaseResponse struct { + RebaseSha string `protobuf:"bytes,1,opt,name=rebase_sha,json=rebaseSha" json:"rebase_sha,omitempty"` + PreReceiveError string `protobuf:"bytes,2,opt,name=pre_receive_error,json=preReceiveError" json:"pre_receive_error,omitempty"` + GitError string `protobuf:"bytes,3,opt,name=git_error,json=gitError" json:"git_error,omitempty"` +} + +func (m *UserRebaseResponse) Reset() { *m = UserRebaseResponse{} } +func (m *UserRebaseResponse) String() string { return proto.CompactTextString(m) } +func (*UserRebaseResponse) ProtoMessage() {} +func (*UserRebaseResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{25} } + +func (m *UserRebaseResponse) GetRebaseSha() string { + if m != nil { + return m.RebaseSha + } + return "" +} + +func (m *UserRebaseResponse) GetPreReceiveError() string { + if m != nil { + return m.PreReceiveError + } + return "" +} + +func (m *UserRebaseResponse) GetGitError() string { + if m != nil { + return m.GitError + } + return "" +} + +type UserSquashRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + User *User `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"` + SquashId string `protobuf:"bytes,3,opt,name=squash_id,json=squashId" json:"squash_id,omitempty"` + Branch []byte `protobuf:"bytes,4,opt,name=branch,proto3" json:"branch,omitempty"` + StartSha string `protobuf:"bytes,5,opt,name=start_sha,json=startSha" json:"start_sha,omitempty"` + EndSha string `protobuf:"bytes,6,opt,name=end_sha,json=endSha" json:"end_sha,omitempty"` + Author *User `protobuf:"bytes,7,opt,name=author" json:"author,omitempty"` + CommitMessage []byte `protobuf:"bytes,8,opt,name=commit_message,json=commitMessage,proto3" json:"commit_message,omitempty"` +} + +func (m *UserSquashRequest) Reset() { *m = UserSquashRequest{} } +func (m *UserSquashRequest) String() string { return proto.CompactTextString(m) } +func (*UserSquashRequest) ProtoMessage() {} +func (*UserSquashRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{26} } + +func (m *UserSquashRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *UserSquashRequest) GetUser() *User { + if m != nil { + return m.User + } + return nil +} + +func (m *UserSquashRequest) GetSquashId() string { + if m != nil { + return m.SquashId + } + return "" +} + +func (m *UserSquashRequest) GetBranch() []byte { + if m != nil { + return m.Branch + } + return nil +} + +func (m *UserSquashRequest) GetStartSha() string { + if m != nil { + return m.StartSha + } + return "" +} + +func (m *UserSquashRequest) GetEndSha() string { + if m != nil { + return m.EndSha + } + return "" +} + +func (m *UserSquashRequest) GetAuthor() *User { + if m != nil { + return m.Author + } + return nil +} + +func (m *UserSquashRequest) GetCommitMessage() []byte { + if m != nil { + return m.CommitMessage + } + return nil +} + +type UserSquashResponse struct { + SquashSha string `protobuf:"bytes,1,opt,name=squash_sha,json=squashSha" json:"squash_sha,omitempty"` + GitError string `protobuf:"bytes,3,opt,name=git_error,json=gitError" json:"git_error,omitempty"` +} + +func (m *UserSquashResponse) Reset() { *m = UserSquashResponse{} } +func (m *UserSquashResponse) String() string { return proto.CompactTextString(m) } +func (*UserSquashResponse) ProtoMessage() {} +func (*UserSquashResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{27} } + +func (m *UserSquashResponse) GetSquashSha() string { + if m != nil { + return m.SquashSha + } + return "" +} + +func (m *UserSquashResponse) GetGitError() string { + if m != nil { + return m.GitError + } + return "" +} + +type UserApplyPatchRequest struct { + // Types that are valid to be assigned to UserApplyPatchRequestPayload: + // *UserApplyPatchRequest_Header_ + // *UserApplyPatchRequest_Patches + UserApplyPatchRequestPayload isUserApplyPatchRequest_UserApplyPatchRequestPayload `protobuf_oneof:"user_apply_patch_request_payload"` +} + +func (m *UserApplyPatchRequest) Reset() { *m = UserApplyPatchRequest{} } +func (m *UserApplyPatchRequest) String() string { return proto.CompactTextString(m) } +func (*UserApplyPatchRequest) ProtoMessage() {} +func (*UserApplyPatchRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{28} } + +type isUserApplyPatchRequest_UserApplyPatchRequestPayload interface{ isUserApplyPatchRequest_UserApplyPatchRequestPayload() } + +type UserApplyPatchRequest_Header_ struct { + Header *UserApplyPatchRequest_Header `protobuf:"bytes,1,opt,name=header,oneof"` +} +type UserApplyPatchRequest_Patches struct { + Patches []byte `protobuf:"bytes,2,opt,name=patches,proto3,oneof"` +} + +func (*UserApplyPatchRequest_Header_) isUserApplyPatchRequest_UserApplyPatchRequestPayload() {} +func (*UserApplyPatchRequest_Patches) isUserApplyPatchRequest_UserApplyPatchRequestPayload() {} + +func (m *UserApplyPatchRequest) GetUserApplyPatchRequestPayload() isUserApplyPatchRequest_UserApplyPatchRequestPayload { + if m != nil { + return m.UserApplyPatchRequestPayload + } + return nil +} + +func (m *UserApplyPatchRequest) GetHeader() *UserApplyPatchRequest_Header { + if x, ok := m.GetUserApplyPatchRequestPayload().(*UserApplyPatchRequest_Header_); ok { + return x.Header + } + return nil +} + +func (m *UserApplyPatchRequest) GetPatches() []byte { + if x, ok := m.GetUserApplyPatchRequestPayload().(*UserApplyPatchRequest_Patches); ok { + return x.Patches + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*UserApplyPatchRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _UserApplyPatchRequest_OneofMarshaler, _UserApplyPatchRequest_OneofUnmarshaler, _UserApplyPatchRequest_OneofSizer, []interface{}{ + (*UserApplyPatchRequest_Header_)(nil), + (*UserApplyPatchRequest_Patches)(nil), + } +} + +func _UserApplyPatchRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*UserApplyPatchRequest) + // user_apply_patch_request_payload + switch x := m.UserApplyPatchRequestPayload.(type) { + case *UserApplyPatchRequest_Header_: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Header); err != nil { + return err + } + case *UserApplyPatchRequest_Patches: + b.EncodeVarint(2<<3 | proto.WireBytes) + b.EncodeRawBytes(x.Patches) + case nil: + default: + return fmt.Errorf("UserApplyPatchRequest.UserApplyPatchRequestPayload has unexpected type %T", x) + } + return nil +} + +func _UserApplyPatchRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*UserApplyPatchRequest) + switch tag { + case 1: // user_apply_patch_request_payload.header + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(UserApplyPatchRequest_Header) + err := b.DecodeMessage(msg) + m.UserApplyPatchRequestPayload = &UserApplyPatchRequest_Header_{msg} + return true, err + case 2: // user_apply_patch_request_payload.patches + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeRawBytes(true) + m.UserApplyPatchRequestPayload = &UserApplyPatchRequest_Patches{x} + return true, err + default: + return false, nil + } +} + +func _UserApplyPatchRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*UserApplyPatchRequest) + // user_apply_patch_request_payload + switch x := m.UserApplyPatchRequestPayload.(type) { + case *UserApplyPatchRequest_Header_: + s := proto.Size(x.Header) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *UserApplyPatchRequest_Patches: + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(len(x.Patches))) + n += len(x.Patches) + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +type UserApplyPatchRequest_Header struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + User *User `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"` + TargetBranch []byte `protobuf:"bytes,3,opt,name=target_branch,json=targetBranch,proto3" json:"target_branch,omitempty"` +} + +func (m *UserApplyPatchRequest_Header) Reset() { *m = UserApplyPatchRequest_Header{} } +func (m *UserApplyPatchRequest_Header) String() string { return proto.CompactTextString(m) } +func (*UserApplyPatchRequest_Header) ProtoMessage() {} +func (*UserApplyPatchRequest_Header) Descriptor() ([]byte, []int) { + return fileDescriptor8, []int{28, 0} +} + +func (m *UserApplyPatchRequest_Header) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *UserApplyPatchRequest_Header) GetUser() *User { + if m != nil { + return m.User + } + return nil +} + +func (m *UserApplyPatchRequest_Header) GetTargetBranch() []byte { + if m != nil { + return m.TargetBranch + } + return nil +} + +type UserApplyPatchResponse struct { + BranchUpdate *OperationBranchUpdate `protobuf:"bytes,1,opt,name=branch_update,json=branchUpdate" json:"branch_update,omitempty"` +} + +func (m *UserApplyPatchResponse) Reset() { *m = UserApplyPatchResponse{} } +func (m *UserApplyPatchResponse) String() string { return proto.CompactTextString(m) } +func (*UserApplyPatchResponse) ProtoMessage() {} +func (*UserApplyPatchResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{29} } + +func (m *UserApplyPatchResponse) GetBranchUpdate() *OperationBranchUpdate { + if m != nil { + return m.BranchUpdate + } + return nil +} + +type UserUpdateSubmoduleRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + User *User `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"` + CommitSha string `protobuf:"bytes,3,opt,name=commit_sha,json=commitSha" json:"commit_sha,omitempty"` + Branch []byte `protobuf:"bytes,4,opt,name=branch,proto3" json:"branch,omitempty"` + Submodule []byte `protobuf:"bytes,5,opt,name=submodule,proto3" json:"submodule,omitempty"` + CommitMessage []byte `protobuf:"bytes,6,opt,name=commit_message,json=commitMessage,proto3" json:"commit_message,omitempty"` +} + +func (m *UserUpdateSubmoduleRequest) Reset() { *m = UserUpdateSubmoduleRequest{} } +func (m *UserUpdateSubmoduleRequest) String() string { return proto.CompactTextString(m) } +func (*UserUpdateSubmoduleRequest) ProtoMessage() {} +func (*UserUpdateSubmoduleRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{30} } + +func (m *UserUpdateSubmoduleRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *UserUpdateSubmoduleRequest) GetUser() *User { + if m != nil { + return m.User + } + return nil +} + +func (m *UserUpdateSubmoduleRequest) GetCommitSha() string { + if m != nil { + return m.CommitSha + } + return "" +} + +func (m *UserUpdateSubmoduleRequest) GetBranch() []byte { + if m != nil { + return m.Branch + } + return nil +} + +func (m *UserUpdateSubmoduleRequest) GetSubmodule() []byte { + if m != nil { + return m.Submodule + } + return nil +} + +func (m *UserUpdateSubmoduleRequest) GetCommitMessage() []byte { + if m != nil { + return m.CommitMessage + } + return nil +} + +type UserUpdateSubmoduleResponse struct { + BranchUpdate *OperationBranchUpdate `protobuf:"bytes,1,opt,name=branch_update,json=branchUpdate" json:"branch_update,omitempty"` + PreReceiveError string `protobuf:"bytes,2,opt,name=pre_receive_error,json=preReceiveError" json:"pre_receive_error,omitempty"` + CommitError string `protobuf:"bytes,4,opt,name=commit_error,json=commitError" json:"commit_error,omitempty"` +} + +func (m *UserUpdateSubmoduleResponse) Reset() { *m = UserUpdateSubmoduleResponse{} } +func (m *UserUpdateSubmoduleResponse) String() string { return proto.CompactTextString(m) } +func (*UserUpdateSubmoduleResponse) ProtoMessage() {} +func (*UserUpdateSubmoduleResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{31} } + +func (m *UserUpdateSubmoduleResponse) GetBranchUpdate() *OperationBranchUpdate { + if m != nil { + return m.BranchUpdate + } + return nil +} + +func (m *UserUpdateSubmoduleResponse) GetPreReceiveError() string { + if m != nil { + return m.PreReceiveError + } + return "" +} + +func (m *UserUpdateSubmoduleResponse) GetCommitError() string { + if m != nil { + return m.CommitError + } + return "" +} + +func init() { + proto.RegisterType((*UserCreateBranchRequest)(nil), "gitaly.UserCreateBranchRequest") + proto.RegisterType((*UserCreateBranchResponse)(nil), "gitaly.UserCreateBranchResponse") + proto.RegisterType((*UserUpdateBranchRequest)(nil), "gitaly.UserUpdateBranchRequest") + proto.RegisterType((*UserUpdateBranchResponse)(nil), "gitaly.UserUpdateBranchResponse") + proto.RegisterType((*UserDeleteBranchRequest)(nil), "gitaly.UserDeleteBranchRequest") + proto.RegisterType((*UserDeleteBranchResponse)(nil), "gitaly.UserDeleteBranchResponse") + proto.RegisterType((*UserDeleteTagRequest)(nil), "gitaly.UserDeleteTagRequest") + proto.RegisterType((*UserDeleteTagResponse)(nil), "gitaly.UserDeleteTagResponse") + proto.RegisterType((*UserCreateTagRequest)(nil), "gitaly.UserCreateTagRequest") + proto.RegisterType((*UserCreateTagResponse)(nil), "gitaly.UserCreateTagResponse") + proto.RegisterType((*UserMergeBranchRequest)(nil), "gitaly.UserMergeBranchRequest") + proto.RegisterType((*UserMergeBranchResponse)(nil), "gitaly.UserMergeBranchResponse") + proto.RegisterType((*OperationBranchUpdate)(nil), "gitaly.OperationBranchUpdate") + proto.RegisterType((*UserFFBranchRequest)(nil), "gitaly.UserFFBranchRequest") + proto.RegisterType((*UserFFBranchResponse)(nil), "gitaly.UserFFBranchResponse") + proto.RegisterType((*UserCherryPickRequest)(nil), "gitaly.UserCherryPickRequest") + proto.RegisterType((*UserCherryPickResponse)(nil), "gitaly.UserCherryPickResponse") + proto.RegisterType((*UserRevertRequest)(nil), "gitaly.UserRevertRequest") + proto.RegisterType((*UserRevertResponse)(nil), "gitaly.UserRevertResponse") + proto.RegisterType((*UserCommitFilesActionHeader)(nil), "gitaly.UserCommitFilesActionHeader") + proto.RegisterType((*UserCommitFilesAction)(nil), "gitaly.UserCommitFilesAction") + proto.RegisterType((*UserCommitFilesRequestHeader)(nil), "gitaly.UserCommitFilesRequestHeader") + proto.RegisterType((*UserCommitFilesRequest)(nil), "gitaly.UserCommitFilesRequest") + proto.RegisterType((*UserCommitFilesResponse)(nil), "gitaly.UserCommitFilesResponse") + proto.RegisterType((*UserRebaseRequest)(nil), "gitaly.UserRebaseRequest") + proto.RegisterType((*UserRebaseResponse)(nil), "gitaly.UserRebaseResponse") + proto.RegisterType((*UserSquashRequest)(nil), "gitaly.UserSquashRequest") + proto.RegisterType((*UserSquashResponse)(nil), "gitaly.UserSquashResponse") + proto.RegisterType((*UserApplyPatchRequest)(nil), "gitaly.UserApplyPatchRequest") + proto.RegisterType((*UserApplyPatchRequest_Header)(nil), "gitaly.UserApplyPatchRequest.Header") + proto.RegisterType((*UserApplyPatchResponse)(nil), "gitaly.UserApplyPatchResponse") + proto.RegisterType((*UserUpdateSubmoduleRequest)(nil), "gitaly.UserUpdateSubmoduleRequest") + proto.RegisterType((*UserUpdateSubmoduleResponse)(nil), "gitaly.UserUpdateSubmoduleResponse") + proto.RegisterEnum("gitaly.UserCommitFilesActionHeader_ActionType", UserCommitFilesActionHeader_ActionType_name, UserCommitFilesActionHeader_ActionType_value) +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// Client API for OperationService service + +type OperationServiceClient interface { + UserCreateBranch(ctx context.Context, in *UserCreateBranchRequest, opts ...grpc.CallOption) (*UserCreateBranchResponse, error) + UserUpdateBranch(ctx context.Context, in *UserUpdateBranchRequest, opts ...grpc.CallOption) (*UserUpdateBranchResponse, error) + UserDeleteBranch(ctx context.Context, in *UserDeleteBranchRequest, opts ...grpc.CallOption) (*UserDeleteBranchResponse, error) + UserCreateTag(ctx context.Context, in *UserCreateTagRequest, opts ...grpc.CallOption) (*UserCreateTagResponse, error) + UserDeleteTag(ctx context.Context, in *UserDeleteTagRequest, opts ...grpc.CallOption) (*UserDeleteTagResponse, error) + UserMergeBranch(ctx context.Context, opts ...grpc.CallOption) (OperationService_UserMergeBranchClient, error) + UserFFBranch(ctx context.Context, in *UserFFBranchRequest, opts ...grpc.CallOption) (*UserFFBranchResponse, error) + UserCherryPick(ctx context.Context, in *UserCherryPickRequest, opts ...grpc.CallOption) (*UserCherryPickResponse, error) + UserRevert(ctx context.Context, in *UserRevertRequest, opts ...grpc.CallOption) (*UserRevertResponse, error) + UserCommitFiles(ctx context.Context, opts ...grpc.CallOption) (OperationService_UserCommitFilesClient, error) + UserRebase(ctx context.Context, in *UserRebaseRequest, opts ...grpc.CallOption) (*UserRebaseResponse, error) + UserSquash(ctx context.Context, in *UserSquashRequest, opts ...grpc.CallOption) (*UserSquashResponse, error) + UserApplyPatch(ctx context.Context, opts ...grpc.CallOption) (OperationService_UserApplyPatchClient, error) + UserUpdateSubmodule(ctx context.Context, in *UserUpdateSubmoduleRequest, opts ...grpc.CallOption) (*UserUpdateSubmoduleResponse, error) +} + +type operationServiceClient struct { + cc *grpc.ClientConn +} + +func NewOperationServiceClient(cc *grpc.ClientConn) OperationServiceClient { + return &operationServiceClient{cc} +} + +func (c *operationServiceClient) UserCreateBranch(ctx context.Context, in *UserCreateBranchRequest, opts ...grpc.CallOption) (*UserCreateBranchResponse, error) { + out := new(UserCreateBranchResponse) + err := grpc.Invoke(ctx, "/gitaly.OperationService/UserCreateBranch", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *operationServiceClient) UserUpdateBranch(ctx context.Context, in *UserUpdateBranchRequest, opts ...grpc.CallOption) (*UserUpdateBranchResponse, error) { + out := new(UserUpdateBranchResponse) + err := grpc.Invoke(ctx, "/gitaly.OperationService/UserUpdateBranch", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *operationServiceClient) UserDeleteBranch(ctx context.Context, in *UserDeleteBranchRequest, opts ...grpc.CallOption) (*UserDeleteBranchResponse, error) { + out := new(UserDeleteBranchResponse) + err := grpc.Invoke(ctx, "/gitaly.OperationService/UserDeleteBranch", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *operationServiceClient) UserCreateTag(ctx context.Context, in *UserCreateTagRequest, opts ...grpc.CallOption) (*UserCreateTagResponse, error) { + out := new(UserCreateTagResponse) + err := grpc.Invoke(ctx, "/gitaly.OperationService/UserCreateTag", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *operationServiceClient) UserDeleteTag(ctx context.Context, in *UserDeleteTagRequest, opts ...grpc.CallOption) (*UserDeleteTagResponse, error) { + out := new(UserDeleteTagResponse) + err := grpc.Invoke(ctx, "/gitaly.OperationService/UserDeleteTag", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *operationServiceClient) UserMergeBranch(ctx context.Context, opts ...grpc.CallOption) (OperationService_UserMergeBranchClient, error) { + stream, err := grpc.NewClientStream(ctx, &_OperationService_serviceDesc.Streams[0], c.cc, "/gitaly.OperationService/UserMergeBranch", opts...) + if err != nil { + return nil, err + } + x := &operationServiceUserMergeBranchClient{stream} + return x, nil +} + +type OperationService_UserMergeBranchClient interface { + Send(*UserMergeBranchRequest) error + Recv() (*UserMergeBranchResponse, error) + grpc.ClientStream +} + +type operationServiceUserMergeBranchClient struct { + grpc.ClientStream +} + +func (x *operationServiceUserMergeBranchClient) Send(m *UserMergeBranchRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *operationServiceUserMergeBranchClient) Recv() (*UserMergeBranchResponse, error) { + m := new(UserMergeBranchResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *operationServiceClient) UserFFBranch(ctx context.Context, in *UserFFBranchRequest, opts ...grpc.CallOption) (*UserFFBranchResponse, error) { + out := new(UserFFBranchResponse) + err := grpc.Invoke(ctx, "/gitaly.OperationService/UserFFBranch", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *operationServiceClient) UserCherryPick(ctx context.Context, in *UserCherryPickRequest, opts ...grpc.CallOption) (*UserCherryPickResponse, error) { + out := new(UserCherryPickResponse) + err := grpc.Invoke(ctx, "/gitaly.OperationService/UserCherryPick", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *operationServiceClient) UserRevert(ctx context.Context, in *UserRevertRequest, opts ...grpc.CallOption) (*UserRevertResponse, error) { + out := new(UserRevertResponse) + err := grpc.Invoke(ctx, "/gitaly.OperationService/UserRevert", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *operationServiceClient) UserCommitFiles(ctx context.Context, opts ...grpc.CallOption) (OperationService_UserCommitFilesClient, error) { + stream, err := grpc.NewClientStream(ctx, &_OperationService_serviceDesc.Streams[1], c.cc, "/gitaly.OperationService/UserCommitFiles", opts...) + if err != nil { + return nil, err + } + x := &operationServiceUserCommitFilesClient{stream} + return x, nil +} + +type OperationService_UserCommitFilesClient interface { + Send(*UserCommitFilesRequest) error + CloseAndRecv() (*UserCommitFilesResponse, error) + grpc.ClientStream +} + +type operationServiceUserCommitFilesClient struct { + grpc.ClientStream +} + +func (x *operationServiceUserCommitFilesClient) Send(m *UserCommitFilesRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *operationServiceUserCommitFilesClient) CloseAndRecv() (*UserCommitFilesResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(UserCommitFilesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *operationServiceClient) UserRebase(ctx context.Context, in *UserRebaseRequest, opts ...grpc.CallOption) (*UserRebaseResponse, error) { + out := new(UserRebaseResponse) + err := grpc.Invoke(ctx, "/gitaly.OperationService/UserRebase", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *operationServiceClient) UserSquash(ctx context.Context, in *UserSquashRequest, opts ...grpc.CallOption) (*UserSquashResponse, error) { + out := new(UserSquashResponse) + err := grpc.Invoke(ctx, "/gitaly.OperationService/UserSquash", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *operationServiceClient) UserApplyPatch(ctx context.Context, opts ...grpc.CallOption) (OperationService_UserApplyPatchClient, error) { + stream, err := grpc.NewClientStream(ctx, &_OperationService_serviceDesc.Streams[2], c.cc, "/gitaly.OperationService/UserApplyPatch", opts...) + if err != nil { + return nil, err + } + x := &operationServiceUserApplyPatchClient{stream} + return x, nil +} + +type OperationService_UserApplyPatchClient interface { + Send(*UserApplyPatchRequest) error + CloseAndRecv() (*UserApplyPatchResponse, error) + grpc.ClientStream +} + +type operationServiceUserApplyPatchClient struct { + grpc.ClientStream +} + +func (x *operationServiceUserApplyPatchClient) Send(m *UserApplyPatchRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *operationServiceUserApplyPatchClient) CloseAndRecv() (*UserApplyPatchResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(UserApplyPatchResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *operationServiceClient) UserUpdateSubmodule(ctx context.Context, in *UserUpdateSubmoduleRequest, opts ...grpc.CallOption) (*UserUpdateSubmoduleResponse, error) { + out := new(UserUpdateSubmoduleResponse) + err := grpc.Invoke(ctx, "/gitaly.OperationService/UserUpdateSubmodule", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for OperationService service + +type OperationServiceServer interface { + UserCreateBranch(context.Context, *UserCreateBranchRequest) (*UserCreateBranchResponse, error) + UserUpdateBranch(context.Context, *UserUpdateBranchRequest) (*UserUpdateBranchResponse, error) + UserDeleteBranch(context.Context, *UserDeleteBranchRequest) (*UserDeleteBranchResponse, error) + UserCreateTag(context.Context, *UserCreateTagRequest) (*UserCreateTagResponse, error) + UserDeleteTag(context.Context, *UserDeleteTagRequest) (*UserDeleteTagResponse, error) + UserMergeBranch(OperationService_UserMergeBranchServer) error + UserFFBranch(context.Context, *UserFFBranchRequest) (*UserFFBranchResponse, error) + UserCherryPick(context.Context, *UserCherryPickRequest) (*UserCherryPickResponse, error) + UserRevert(context.Context, *UserRevertRequest) (*UserRevertResponse, error) + UserCommitFiles(OperationService_UserCommitFilesServer) error + UserRebase(context.Context, *UserRebaseRequest) (*UserRebaseResponse, error) + UserSquash(context.Context, *UserSquashRequest) (*UserSquashResponse, error) + UserApplyPatch(OperationService_UserApplyPatchServer) error + UserUpdateSubmodule(context.Context, *UserUpdateSubmoduleRequest) (*UserUpdateSubmoduleResponse, error) +} + +func RegisterOperationServiceServer(s *grpc.Server, srv OperationServiceServer) { + s.RegisterService(&_OperationService_serviceDesc, srv) +} + +func _OperationService_UserCreateBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserCreateBranchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OperationServiceServer).UserCreateBranch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.OperationService/UserCreateBranch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OperationServiceServer).UserCreateBranch(ctx, req.(*UserCreateBranchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OperationService_UserUpdateBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserUpdateBranchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OperationServiceServer).UserUpdateBranch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.OperationService/UserUpdateBranch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OperationServiceServer).UserUpdateBranch(ctx, req.(*UserUpdateBranchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OperationService_UserDeleteBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserDeleteBranchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OperationServiceServer).UserDeleteBranch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.OperationService/UserDeleteBranch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OperationServiceServer).UserDeleteBranch(ctx, req.(*UserDeleteBranchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OperationService_UserCreateTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserCreateTagRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OperationServiceServer).UserCreateTag(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.OperationService/UserCreateTag", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OperationServiceServer).UserCreateTag(ctx, req.(*UserCreateTagRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OperationService_UserDeleteTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserDeleteTagRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OperationServiceServer).UserDeleteTag(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.OperationService/UserDeleteTag", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OperationServiceServer).UserDeleteTag(ctx, req.(*UserDeleteTagRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OperationService_UserMergeBranch_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(OperationServiceServer).UserMergeBranch(&operationServiceUserMergeBranchServer{stream}) +} + +type OperationService_UserMergeBranchServer interface { + Send(*UserMergeBranchResponse) error + Recv() (*UserMergeBranchRequest, error) + grpc.ServerStream +} + +type operationServiceUserMergeBranchServer struct { + grpc.ServerStream +} + +func (x *operationServiceUserMergeBranchServer) Send(m *UserMergeBranchResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *operationServiceUserMergeBranchServer) Recv() (*UserMergeBranchRequest, error) { + m := new(UserMergeBranchRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _OperationService_UserFFBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserFFBranchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OperationServiceServer).UserFFBranch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.OperationService/UserFFBranch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OperationServiceServer).UserFFBranch(ctx, req.(*UserFFBranchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OperationService_UserCherryPick_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserCherryPickRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OperationServiceServer).UserCherryPick(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.OperationService/UserCherryPick", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OperationServiceServer).UserCherryPick(ctx, req.(*UserCherryPickRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OperationService_UserRevert_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserRevertRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OperationServiceServer).UserRevert(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.OperationService/UserRevert", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OperationServiceServer).UserRevert(ctx, req.(*UserRevertRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OperationService_UserCommitFiles_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(OperationServiceServer).UserCommitFiles(&operationServiceUserCommitFilesServer{stream}) +} + +type OperationService_UserCommitFilesServer interface { + SendAndClose(*UserCommitFilesResponse) error + Recv() (*UserCommitFilesRequest, error) + grpc.ServerStream +} + +type operationServiceUserCommitFilesServer struct { + grpc.ServerStream +} + +func (x *operationServiceUserCommitFilesServer) SendAndClose(m *UserCommitFilesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *operationServiceUserCommitFilesServer) Recv() (*UserCommitFilesRequest, error) { + m := new(UserCommitFilesRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _OperationService_UserRebase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserRebaseRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OperationServiceServer).UserRebase(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.OperationService/UserRebase", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OperationServiceServer).UserRebase(ctx, req.(*UserRebaseRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OperationService_UserSquash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserSquashRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OperationServiceServer).UserSquash(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.OperationService/UserSquash", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OperationServiceServer).UserSquash(ctx, req.(*UserSquashRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OperationService_UserApplyPatch_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(OperationServiceServer).UserApplyPatch(&operationServiceUserApplyPatchServer{stream}) +} + +type OperationService_UserApplyPatchServer interface { + SendAndClose(*UserApplyPatchResponse) error + Recv() (*UserApplyPatchRequest, error) + grpc.ServerStream +} + +type operationServiceUserApplyPatchServer struct { + grpc.ServerStream +} + +func (x *operationServiceUserApplyPatchServer) SendAndClose(m *UserApplyPatchResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *operationServiceUserApplyPatchServer) Recv() (*UserApplyPatchRequest, error) { + m := new(UserApplyPatchRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _OperationService_UserUpdateSubmodule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserUpdateSubmoduleRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OperationServiceServer).UserUpdateSubmodule(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.OperationService/UserUpdateSubmodule", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OperationServiceServer).UserUpdateSubmodule(ctx, req.(*UserUpdateSubmoduleRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _OperationService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.OperationService", + HandlerType: (*OperationServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "UserCreateBranch", + Handler: _OperationService_UserCreateBranch_Handler, + }, + { + MethodName: "UserUpdateBranch", + Handler: _OperationService_UserUpdateBranch_Handler, + }, + { + MethodName: "UserDeleteBranch", + Handler: _OperationService_UserDeleteBranch_Handler, + }, + { + MethodName: "UserCreateTag", + Handler: _OperationService_UserCreateTag_Handler, + }, + { + MethodName: "UserDeleteTag", + Handler: _OperationService_UserDeleteTag_Handler, + }, + { + MethodName: "UserFFBranch", + Handler: _OperationService_UserFFBranch_Handler, + }, + { + MethodName: "UserCherryPick", + Handler: _OperationService_UserCherryPick_Handler, + }, + { + MethodName: "UserRevert", + Handler: _OperationService_UserRevert_Handler, + }, + { + MethodName: "UserRebase", + Handler: _OperationService_UserRebase_Handler, + }, + { + MethodName: "UserSquash", + Handler: _OperationService_UserSquash_Handler, + }, + { + MethodName: "UserUpdateSubmodule", + Handler: _OperationService_UserUpdateSubmodule_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "UserMergeBranch", + Handler: _OperationService_UserMergeBranch_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "UserCommitFiles", + Handler: _OperationService_UserCommitFiles_Handler, + ClientStreams: true, + }, + { + StreamName: "UserApplyPatch", + Handler: _OperationService_UserApplyPatch_Handler, + ClientStreams: true, + }, + }, + Metadata: "operations.proto", +} + +func init() { proto.RegisterFile("operations.proto", fileDescriptor8) } + +var fileDescriptor8 = []byte{ + // 1740 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x59, 0xcf, 0x6f, 0x1b, 0xd5, + 0x13, 0xf7, 0xda, 0xce, 0xc6, 0x99, 0x38, 0x89, 0xf3, 0xfa, 0x2b, 0x75, 0x93, 0x26, 0xdd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0x64, 0x63, 0x30, 0xb2, 0xb6, + 0xb9, 0x75, 0x6f, 0xbd, 0x32, 0x62, 0x7c, 0xa1, 0x51, 0x95, 0x4e, 0x42, 0xc8, 0x6e, 0x81, 0xde, + 0x52, 0x30, 0x52, 0x26, 0x2d, 0x1e, 0x03, 0xf1, 0xcd, 0x9c, 0x49, 0x1f, 0xb1, 0x2a, 0x8c, 0x06, + 0xee, 0x28, 0x98, 0x37, 0x73, 0x66, 0x40, 0x58, 0x35, 0x60, 0x41, 0xde, 0x4d, 0x8b, 0x12, 0x48, + 0xe2, 0xe3, 0x59, 0x18, 0x20, 0xab, 0x67, 0x1f, 0xb6, 0x5d, 0xbb, 0x61, 0x7c, 0x52, 0x80, 0xd9, + 0xc4, 0x49, 0x54, 0x28, 0x28, 0x23, 0x4e, 0xa7, 0x5c, 0x24, 0x6a, 0x40, 0x21, 0x55, 0x03, 0xae, + 0xc1, 0x24, 0x99, 0x1d, 0x94, 0x02, 0xac, 0x13, 0x13, 0x48, 0xdd, 0xa2, 0x82, 0xf0, 0x3f, 0x60, + 0x24, 0x66, 0xf7, 0xfd, 0x96, 0x2b, 0x50, 0x1d, 0x56, 0x8d, 0x0a, 0x72, 0x56, 0x14, 0x43, 0x29, + 0x5d, 0x82, 0x33, 0x71, 0x69, 0xde, 0xb1, 0x9d, 0x36, 0x15, 0x90, 0xe9, 0xa8, 0x78, 0x4d, 0x32, + 0xb2, 0xcb, 0xcd, 0xe8, 0xf1, 0xcb, 0x4d, 0xe9, 0xf8, 0xe5, 0xe6, 0xc7, 0xa0, 0x0b, 0xa5, 0xe2, + 0xc0, 0x5e, 0x49, 0x64, 0xc8, 0xd5, 0x21, 0x19, 0x12, 0x8b, 0x5b, 0x24, 0x45, 0x5e, 0x1e, 0xdc, + 0xe9, 0x7c, 0xbc, 0x56, 0x65, 0x67, 0x58, 0x2e, 0xb8, 0xc4, 0xab, 0x8b, 0x70, 0x25, 0x9d, 0x3f, + 0x02, 0x4f, 0x19, 0x24, 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e3, 0x6a, 0x62, 0xc3, 0x47, 0x5c, + 0x4d, 0xbc, 0xe9, 0x1a, 0x39, 0xb6, 0x83, 0xf8, 0x87, 0x1d, 0x20, 0x8e, 0x7f, 0xaa, 0x13, 0xc6, + 0xf1, 0x4f, 0x37, 0x0e, 0xe5, 0xe2, 0xbb, 0xb8, 0x01, 0x4d, 0x94, 0x41, 0x66, 0xa4, 0xef, 0x6b, + 0xb2, 0x29, 0x54, 0x17, 0x8f, 0x94, 0x09, 0xce, 0xd8, 0xd7, 0xd5, 0xbf, 0x24, 0x5f, 0xf8, 0x2b, + 0x00, 0x00, 0xff, 0xff, 0x35, 0x0f, 0xad, 0x07, 0xbc, 0x1c, 0x00, 0x00, +} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/ref.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/ref.pb.go new file mode 100644 index 0000000..e9b02e6 --- /dev/null +++ b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/ref.pb.go @@ -0,0 +1,2045 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: ref.proto + +package gitalypb + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import google_protobuf "github.com/golang/protobuf/ptypes/timestamp" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +type FindLocalBranchesRequest_SortBy int32 + +const ( + FindLocalBranchesRequest_NAME FindLocalBranchesRequest_SortBy = 0 + FindLocalBranchesRequest_UPDATED_ASC FindLocalBranchesRequest_SortBy = 1 + FindLocalBranchesRequest_UPDATED_DESC FindLocalBranchesRequest_SortBy = 2 +) + +var FindLocalBranchesRequest_SortBy_name = map[int32]string{ + 0: "NAME", + 1: "UPDATED_ASC", + 2: "UPDATED_DESC", +} +var FindLocalBranchesRequest_SortBy_value = map[string]int32{ + "NAME": 0, + "UPDATED_ASC": 1, + "UPDATED_DESC": 2, +} + +func (x FindLocalBranchesRequest_SortBy) String() string { + return proto.EnumName(FindLocalBranchesRequest_SortBy_name, int32(x)) +} +func (FindLocalBranchesRequest_SortBy) EnumDescriptor() ([]byte, []int) { + return fileDescriptor9, []int{10, 0} +} + +type CreateBranchResponse_Status int32 + +const ( + CreateBranchResponse_OK CreateBranchResponse_Status = 0 + CreateBranchResponse_ERR_EXISTS CreateBranchResponse_Status = 1 + CreateBranchResponse_ERR_INVALID CreateBranchResponse_Status = 2 + CreateBranchResponse_ERR_INVALID_START_POINT CreateBranchResponse_Status = 3 +) + +var CreateBranchResponse_Status_name = map[int32]string{ + 0: "OK", + 1: "ERR_EXISTS", + 2: "ERR_INVALID", + 3: "ERR_INVALID_START_POINT", +} +var CreateBranchResponse_Status_value = map[string]int32{ + "OK": 0, + "ERR_EXISTS": 1, + "ERR_INVALID": 2, + "ERR_INVALID_START_POINT": 3, +} + +func (x CreateBranchResponse_Status) String() string { + return proto.EnumName(CreateBranchResponse_Status_name, int32(x)) +} +func (CreateBranchResponse_Status) EnumDescriptor() ([]byte, []int) { + return fileDescriptor9, []int{21, 0} +} + +type ListNewBlobsRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` + // Limit the number of revs to be returned fro mgit-rev-list + // If the limit is set to zero, all items will be returned + Limit uint32 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"` +} + +func (m *ListNewBlobsRequest) Reset() { *m = ListNewBlobsRequest{} } +func (m *ListNewBlobsRequest) String() string { return proto.CompactTextString(m) } +func (*ListNewBlobsRequest) ProtoMessage() {} +func (*ListNewBlobsRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{0} } + +func (m *ListNewBlobsRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *ListNewBlobsRequest) GetCommitId() string { + if m != nil { + return m.CommitId + } + return "" +} + +func (m *ListNewBlobsRequest) GetLimit() uint32 { + if m != nil { + return m.Limit + } + return 0 +} + +type ListNewBlobsResponse struct { + NewBlobObjects []*NewBlobObject `protobuf:"bytes,1,rep,name=new_blob_objects,json=newBlobObjects" json:"new_blob_objects,omitempty"` +} + +func (m *ListNewBlobsResponse) Reset() { *m = ListNewBlobsResponse{} } +func (m *ListNewBlobsResponse) String() string { return proto.CompactTextString(m) } +func (*ListNewBlobsResponse) ProtoMessage() {} +func (*ListNewBlobsResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{1} } + +func (m *ListNewBlobsResponse) GetNewBlobObjects() []*NewBlobObject { + if m != nil { + return m.NewBlobObjects + } + return nil +} + +type FindDefaultBranchNameRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` +} + +func (m *FindDefaultBranchNameRequest) Reset() { *m = FindDefaultBranchNameRequest{} } +func (m *FindDefaultBranchNameRequest) String() string { return proto.CompactTextString(m) } +func (*FindDefaultBranchNameRequest) ProtoMessage() {} +func (*FindDefaultBranchNameRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{2} } + +func (m *FindDefaultBranchNameRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +type FindDefaultBranchNameResponse struct { + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (m *FindDefaultBranchNameResponse) Reset() { *m = FindDefaultBranchNameResponse{} } +func (m *FindDefaultBranchNameResponse) String() string { return proto.CompactTextString(m) } +func (*FindDefaultBranchNameResponse) ProtoMessage() {} +func (*FindDefaultBranchNameResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{3} } + +func (m *FindDefaultBranchNameResponse) GetName() []byte { + if m != nil { + return m.Name + } + return nil +} + +type FindAllBranchNamesRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` +} + +func (m *FindAllBranchNamesRequest) Reset() { *m = FindAllBranchNamesRequest{} } +func (m *FindAllBranchNamesRequest) String() string { return proto.CompactTextString(m) } +func (*FindAllBranchNamesRequest) ProtoMessage() {} +func (*FindAllBranchNamesRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{4} } + +func (m *FindAllBranchNamesRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +type FindAllBranchNamesResponse struct { + Names [][]byte `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` +} + +func (m *FindAllBranchNamesResponse) Reset() { *m = FindAllBranchNamesResponse{} } +func (m *FindAllBranchNamesResponse) String() string { return proto.CompactTextString(m) } +func (*FindAllBranchNamesResponse) ProtoMessage() {} +func (*FindAllBranchNamesResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{5} } + +func (m *FindAllBranchNamesResponse) GetNames() [][]byte { + if m != nil { + return m.Names + } + return nil +} + +type FindAllTagNamesRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` +} + +func (m *FindAllTagNamesRequest) Reset() { *m = FindAllTagNamesRequest{} } +func (m *FindAllTagNamesRequest) String() string { return proto.CompactTextString(m) } +func (*FindAllTagNamesRequest) ProtoMessage() {} +func (*FindAllTagNamesRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{6} } + +func (m *FindAllTagNamesRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +type FindAllTagNamesResponse struct { + Names [][]byte `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` +} + +func (m *FindAllTagNamesResponse) Reset() { *m = FindAllTagNamesResponse{} } +func (m *FindAllTagNamesResponse) String() string { return proto.CompactTextString(m) } +func (*FindAllTagNamesResponse) ProtoMessage() {} +func (*FindAllTagNamesResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{7} } + +func (m *FindAllTagNamesResponse) GetNames() [][]byte { + if m != nil { + return m.Names + } + return nil +} + +type FindRefNameRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + // Require that the resulting ref contains this commit as an ancestor + CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` + // Example prefix: "refs/heads/". Type bytes because that is the type of ref names. + Prefix []byte `protobuf:"bytes,3,opt,name=prefix,proto3" json:"prefix,omitempty"` +} + +func (m *FindRefNameRequest) Reset() { *m = FindRefNameRequest{} } +func (m *FindRefNameRequest) String() string { return proto.CompactTextString(m) } +func (*FindRefNameRequest) ProtoMessage() {} +func (*FindRefNameRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{8} } + +func (m *FindRefNameRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *FindRefNameRequest) GetCommitId() string { + if m != nil { + return m.CommitId + } + return "" +} + +func (m *FindRefNameRequest) GetPrefix() []byte { + if m != nil { + return m.Prefix + } + return nil +} + +type FindRefNameResponse struct { + // Example name: "refs/heads/master". Cannot assume UTF8, so the type is bytes. + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (m *FindRefNameResponse) Reset() { *m = FindRefNameResponse{} } +func (m *FindRefNameResponse) String() string { return proto.CompactTextString(m) } +func (*FindRefNameResponse) ProtoMessage() {} +func (*FindRefNameResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{9} } + +func (m *FindRefNameResponse) GetName() []byte { + if m != nil { + return m.Name + } + return nil +} + +type FindLocalBranchesRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + SortBy FindLocalBranchesRequest_SortBy `protobuf:"varint,2,opt,name=sort_by,json=sortBy,enum=gitaly.FindLocalBranchesRequest_SortBy" json:"sort_by,omitempty"` +} + +func (m *FindLocalBranchesRequest) Reset() { *m = FindLocalBranchesRequest{} } +func (m *FindLocalBranchesRequest) String() string { return proto.CompactTextString(m) } +func (*FindLocalBranchesRequest) ProtoMessage() {} +func (*FindLocalBranchesRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{10} } + +func (m *FindLocalBranchesRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *FindLocalBranchesRequest) GetSortBy() FindLocalBranchesRequest_SortBy { + if m != nil { + return m.SortBy + } + return FindLocalBranchesRequest_NAME +} + +type FindLocalBranchesResponse struct { + Branches []*FindLocalBranchResponse `protobuf:"bytes,1,rep,name=branches" json:"branches,omitempty"` +} + +func (m *FindLocalBranchesResponse) Reset() { *m = FindLocalBranchesResponse{} } +func (m *FindLocalBranchesResponse) String() string { return proto.CompactTextString(m) } +func (*FindLocalBranchesResponse) ProtoMessage() {} +func (*FindLocalBranchesResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{11} } + +func (m *FindLocalBranchesResponse) GetBranches() []*FindLocalBranchResponse { + if m != nil { + return m.Branches + } + return nil +} + +type FindLocalBranchResponse struct { + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` + CommitSubject []byte `protobuf:"bytes,3,opt,name=commit_subject,json=commitSubject,proto3" json:"commit_subject,omitempty"` + CommitAuthor *FindLocalBranchCommitAuthor `protobuf:"bytes,4,opt,name=commit_author,json=commitAuthor" json:"commit_author,omitempty"` + CommitCommitter *FindLocalBranchCommitAuthor `protobuf:"bytes,5,opt,name=commit_committer,json=commitCommitter" json:"commit_committer,omitempty"` +} + +func (m *FindLocalBranchResponse) Reset() { *m = FindLocalBranchResponse{} } +func (m *FindLocalBranchResponse) String() string { return proto.CompactTextString(m) } +func (*FindLocalBranchResponse) ProtoMessage() {} +func (*FindLocalBranchResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{12} } + +func (m *FindLocalBranchResponse) GetName() []byte { + if m != nil { + return m.Name + } + return nil +} + +func (m *FindLocalBranchResponse) GetCommitId() string { + if m != nil { + return m.CommitId + } + return "" +} + +func (m *FindLocalBranchResponse) GetCommitSubject() []byte { + if m != nil { + return m.CommitSubject + } + return nil +} + +func (m *FindLocalBranchResponse) GetCommitAuthor() *FindLocalBranchCommitAuthor { + if m != nil { + return m.CommitAuthor + } + return nil +} + +func (m *FindLocalBranchResponse) GetCommitCommitter() *FindLocalBranchCommitAuthor { + if m != nil { + return m.CommitCommitter + } + return nil +} + +type FindLocalBranchCommitAuthor struct { + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Email []byte `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` + Date *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=date" json:"date,omitempty"` +} + +func (m *FindLocalBranchCommitAuthor) Reset() { *m = FindLocalBranchCommitAuthor{} } +func (m *FindLocalBranchCommitAuthor) String() string { return proto.CompactTextString(m) } +func (*FindLocalBranchCommitAuthor) ProtoMessage() {} +func (*FindLocalBranchCommitAuthor) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{13} } + +func (m *FindLocalBranchCommitAuthor) GetName() []byte { + if m != nil { + return m.Name + } + return nil +} + +func (m *FindLocalBranchCommitAuthor) GetEmail() []byte { + if m != nil { + return m.Email + } + return nil +} + +func (m *FindLocalBranchCommitAuthor) GetDate() *google_protobuf.Timestamp { + if m != nil { + return m.Date + } + return nil +} + +type FindAllBranchesRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + // Only return branches that are merged into root ref + MergedOnly bool `protobuf:"varint,2,opt,name=merged_only,json=mergedOnly" json:"merged_only,omitempty"` + // If merged_only is true, this is a list of branches from which we + // return those merged into the root ref + MergedBranches [][]byte `protobuf:"bytes,3,rep,name=merged_branches,json=mergedBranches,proto3" json:"merged_branches,omitempty"` +} + +func (m *FindAllBranchesRequest) Reset() { *m = FindAllBranchesRequest{} } +func (m *FindAllBranchesRequest) String() string { return proto.CompactTextString(m) } +func (*FindAllBranchesRequest) ProtoMessage() {} +func (*FindAllBranchesRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{14} } + +func (m *FindAllBranchesRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *FindAllBranchesRequest) GetMergedOnly() bool { + if m != nil { + return m.MergedOnly + } + return false +} + +func (m *FindAllBranchesRequest) GetMergedBranches() [][]byte { + if m != nil { + return m.MergedBranches + } + return nil +} + +type FindAllBranchesResponse struct { + Branches []*FindAllBranchesResponse_Branch `protobuf:"bytes,1,rep,name=branches" json:"branches,omitempty"` +} + +func (m *FindAllBranchesResponse) Reset() { *m = FindAllBranchesResponse{} } +func (m *FindAllBranchesResponse) String() string { return proto.CompactTextString(m) } +func (*FindAllBranchesResponse) ProtoMessage() {} +func (*FindAllBranchesResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{15} } + +func (m *FindAllBranchesResponse) GetBranches() []*FindAllBranchesResponse_Branch { + if m != nil { + return m.Branches + } + return nil +} + +type FindAllBranchesResponse_Branch struct { + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Target *GitCommit `protobuf:"bytes,2,opt,name=target" json:"target,omitempty"` +} + +func (m *FindAllBranchesResponse_Branch) Reset() { *m = FindAllBranchesResponse_Branch{} } +func (m *FindAllBranchesResponse_Branch) String() string { return proto.CompactTextString(m) } +func (*FindAllBranchesResponse_Branch) ProtoMessage() {} +func (*FindAllBranchesResponse_Branch) Descriptor() ([]byte, []int) { + return fileDescriptor9, []int{15, 0} +} + +func (m *FindAllBranchesResponse_Branch) GetName() []byte { + if m != nil { + return m.Name + } + return nil +} + +func (m *FindAllBranchesResponse_Branch) GetTarget() *GitCommit { + if m != nil { + return m.Target + } + return nil +} + +type FindAllTagsRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` +} + +func (m *FindAllTagsRequest) Reset() { *m = FindAllTagsRequest{} } +func (m *FindAllTagsRequest) String() string { return proto.CompactTextString(m) } +func (*FindAllTagsRequest) ProtoMessage() {} +func (*FindAllTagsRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{16} } + +func (m *FindAllTagsRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +type FindAllTagsResponse struct { + Tags []*Tag `protobuf:"bytes,1,rep,name=tags" json:"tags,omitempty"` +} + +func (m *FindAllTagsResponse) Reset() { *m = FindAllTagsResponse{} } +func (m *FindAllTagsResponse) String() string { return proto.CompactTextString(m) } +func (*FindAllTagsResponse) ProtoMessage() {} +func (*FindAllTagsResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{17} } + +func (m *FindAllTagsResponse) GetTags() []*Tag { + if m != nil { + return m.Tags + } + return nil +} + +type RefExistsRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + // Any ref, e.g. 'refs/heads/master' or 'refs/tags/v1.0.1'. Must start with 'refs/'. + Ref []byte `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` +} + +func (m *RefExistsRequest) Reset() { *m = RefExistsRequest{} } +func (m *RefExistsRequest) String() string { return proto.CompactTextString(m) } +func (*RefExistsRequest) ProtoMessage() {} +func (*RefExistsRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{18} } + +func (m *RefExistsRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *RefExistsRequest) GetRef() []byte { + if m != nil { + return m.Ref + } + return nil +} + +type RefExistsResponse struct { + Value bool `protobuf:"varint,1,opt,name=value" json:"value,omitempty"` +} + +func (m *RefExistsResponse) Reset() { *m = RefExistsResponse{} } +func (m *RefExistsResponse) String() string { return proto.CompactTextString(m) } +func (*RefExistsResponse) ProtoMessage() {} +func (*RefExistsResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{19} } + +func (m *RefExistsResponse) GetValue() bool { + if m != nil { + return m.Value + } + return false +} + +type CreateBranchRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + StartPoint []byte `protobuf:"bytes,3,opt,name=start_point,json=startPoint,proto3" json:"start_point,omitempty"` +} + +func (m *CreateBranchRequest) Reset() { *m = CreateBranchRequest{} } +func (m *CreateBranchRequest) String() string { return proto.CompactTextString(m) } +func (*CreateBranchRequest) ProtoMessage() {} +func (*CreateBranchRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{20} } + +func (m *CreateBranchRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *CreateBranchRequest) GetName() []byte { + if m != nil { + return m.Name + } + return nil +} + +func (m *CreateBranchRequest) GetStartPoint() []byte { + if m != nil { + return m.StartPoint + } + return nil +} + +type CreateBranchResponse struct { + Status CreateBranchResponse_Status `protobuf:"varint,1,opt,name=status,enum=gitaly.CreateBranchResponse_Status" json:"status,omitempty"` + Branch *Branch `protobuf:"bytes,2,opt,name=branch" json:"branch,omitempty"` +} + +func (m *CreateBranchResponse) Reset() { *m = CreateBranchResponse{} } +func (m *CreateBranchResponse) String() string { return proto.CompactTextString(m) } +func (*CreateBranchResponse) ProtoMessage() {} +func (*CreateBranchResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{21} } + +func (m *CreateBranchResponse) GetStatus() CreateBranchResponse_Status { + if m != nil { + return m.Status + } + return CreateBranchResponse_OK +} + +func (m *CreateBranchResponse) GetBranch() *Branch { + if m != nil { + return m.Branch + } + return nil +} + +type DeleteBranchRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` +} + +func (m *DeleteBranchRequest) Reset() { *m = DeleteBranchRequest{} } +func (m *DeleteBranchRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteBranchRequest) ProtoMessage() {} +func (*DeleteBranchRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{22} } + +func (m *DeleteBranchRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *DeleteBranchRequest) GetName() []byte { + if m != nil { + return m.Name + } + return nil +} + +// Not clear if we need to do status signaling; we can add fields later. +type DeleteBranchResponse struct { +} + +func (m *DeleteBranchResponse) Reset() { *m = DeleteBranchResponse{} } +func (m *DeleteBranchResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteBranchResponse) ProtoMessage() {} +func (*DeleteBranchResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{23} } + +type FindBranchRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + // Name can be 'master' but also 'refs/heads/master' + Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` +} + +func (m *FindBranchRequest) Reset() { *m = FindBranchRequest{} } +func (m *FindBranchRequest) String() string { return proto.CompactTextString(m) } +func (*FindBranchRequest) ProtoMessage() {} +func (*FindBranchRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{24} } + +func (m *FindBranchRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *FindBranchRequest) GetName() []byte { + if m != nil { + return m.Name + } + return nil +} + +type FindBranchResponse struct { + Branch *Branch `protobuf:"bytes,1,opt,name=branch" json:"branch,omitempty"` +} + +func (m *FindBranchResponse) Reset() { *m = FindBranchResponse{} } +func (m *FindBranchResponse) String() string { return proto.CompactTextString(m) } +func (*FindBranchResponse) ProtoMessage() {} +func (*FindBranchResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{25} } + +func (m *FindBranchResponse) GetBranch() *Branch { + if m != nil { + return m.Branch + } + return nil +} + +type DeleteRefsRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + // The following two fields are mutually exclusive + ExceptWithPrefix [][]byte `protobuf:"bytes,2,rep,name=except_with_prefix,json=exceptWithPrefix,proto3" json:"except_with_prefix,omitempty"` + Refs [][]byte `protobuf:"bytes,3,rep,name=refs,proto3" json:"refs,omitempty"` +} + +func (m *DeleteRefsRequest) Reset() { *m = DeleteRefsRequest{} } +func (m *DeleteRefsRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteRefsRequest) ProtoMessage() {} +func (*DeleteRefsRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{26} } + +func (m *DeleteRefsRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *DeleteRefsRequest) GetExceptWithPrefix() [][]byte { + if m != nil { + return m.ExceptWithPrefix + } + return nil +} + +func (m *DeleteRefsRequest) GetRefs() [][]byte { + if m != nil { + return m.Refs + } + return nil +} + +type DeleteRefsResponse struct { + GitError string `protobuf:"bytes,1,opt,name=git_error,json=gitError" json:"git_error,omitempty"` +} + +func (m *DeleteRefsResponse) Reset() { *m = DeleteRefsResponse{} } +func (m *DeleteRefsResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteRefsResponse) ProtoMessage() {} +func (*DeleteRefsResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{27} } + +func (m *DeleteRefsResponse) GetGitError() string { + if m != nil { + return m.GitError + } + return "" +} + +type ListBranchNamesContainingCommitRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` + // Limit the number of tag names to be returned + // If the limit is set to zero, all items will be returned + Limit uint32 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"` +} + +func (m *ListBranchNamesContainingCommitRequest) Reset() { + *m = ListBranchNamesContainingCommitRequest{} +} +func (m *ListBranchNamesContainingCommitRequest) String() string { return proto.CompactTextString(m) } +func (*ListBranchNamesContainingCommitRequest) ProtoMessage() {} +func (*ListBranchNamesContainingCommitRequest) Descriptor() ([]byte, []int) { + return fileDescriptor9, []int{28} +} + +func (m *ListBranchNamesContainingCommitRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *ListBranchNamesContainingCommitRequest) GetCommitId() string { + if m != nil { + return m.CommitId + } + return "" +} + +func (m *ListBranchNamesContainingCommitRequest) GetLimit() uint32 { + if m != nil { + return m.Limit + } + return 0 +} + +type ListBranchNamesContainingCommitResponse struct { + BranchNames [][]byte `protobuf:"bytes,2,rep,name=branch_names,json=branchNames,proto3" json:"branch_names,omitempty"` +} + +func (m *ListBranchNamesContainingCommitResponse) Reset() { + *m = ListBranchNamesContainingCommitResponse{} +} +func (m *ListBranchNamesContainingCommitResponse) String() string { return proto.CompactTextString(m) } +func (*ListBranchNamesContainingCommitResponse) ProtoMessage() {} +func (*ListBranchNamesContainingCommitResponse) Descriptor() ([]byte, []int) { + return fileDescriptor9, []int{29} +} + +func (m *ListBranchNamesContainingCommitResponse) GetBranchNames() [][]byte { + if m != nil { + return m.BranchNames + } + return nil +} + +type ListTagNamesContainingCommitRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` + // Limit the number of tag names to be returned + // If the limit is set to zero, all items will be returned + Limit uint32 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"` +} + +func (m *ListTagNamesContainingCommitRequest) Reset() { *m = ListTagNamesContainingCommitRequest{} } +func (m *ListTagNamesContainingCommitRequest) String() string { return proto.CompactTextString(m) } +func (*ListTagNamesContainingCommitRequest) ProtoMessage() {} +func (*ListTagNamesContainingCommitRequest) Descriptor() ([]byte, []int) { + return fileDescriptor9, []int{30} +} + +func (m *ListTagNamesContainingCommitRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *ListTagNamesContainingCommitRequest) GetCommitId() string { + if m != nil { + return m.CommitId + } + return "" +} + +func (m *ListTagNamesContainingCommitRequest) GetLimit() uint32 { + if m != nil { + return m.Limit + } + return 0 +} + +type ListTagNamesContainingCommitResponse struct { + TagNames [][]byte `protobuf:"bytes,2,rep,name=tag_names,json=tagNames,proto3" json:"tag_names,omitempty"` +} + +func (m *ListTagNamesContainingCommitResponse) Reset() { *m = ListTagNamesContainingCommitResponse{} } +func (m *ListTagNamesContainingCommitResponse) String() string { return proto.CompactTextString(m) } +func (*ListTagNamesContainingCommitResponse) ProtoMessage() {} +func (*ListTagNamesContainingCommitResponse) Descriptor() ([]byte, []int) { + return fileDescriptor9, []int{31} +} + +func (m *ListTagNamesContainingCommitResponse) GetTagNames() [][]byte { + if m != nil { + return m.TagNames + } + return nil +} + +type GetTagMessagesRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + TagIds []string `protobuf:"bytes,3,rep,name=tag_ids,json=tagIds" json:"tag_ids,omitempty"` +} + +func (m *GetTagMessagesRequest) Reset() { *m = GetTagMessagesRequest{} } +func (m *GetTagMessagesRequest) String() string { return proto.CompactTextString(m) } +func (*GetTagMessagesRequest) ProtoMessage() {} +func (*GetTagMessagesRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{32} } + +func (m *GetTagMessagesRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *GetTagMessagesRequest) GetTagIds() []string { + if m != nil { + return m.TagIds + } + return nil +} + +type GetTagMessagesResponse struct { + Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + // Only present for a new tag message + TagId string `protobuf:"bytes,3,opt,name=tag_id,json=tagId" json:"tag_id,omitempty"` +} + +func (m *GetTagMessagesResponse) Reset() { *m = GetTagMessagesResponse{} } +func (m *GetTagMessagesResponse) String() string { return proto.CompactTextString(m) } +func (*GetTagMessagesResponse) ProtoMessage() {} +func (*GetTagMessagesResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{33} } + +func (m *GetTagMessagesResponse) GetMessage() []byte { + if m != nil { + return m.Message + } + return nil +} + +func (m *GetTagMessagesResponse) GetTagId() string { + if m != nil { + return m.TagId + } + return "" +} + +type ListNewCommitsRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` +} + +func (m *ListNewCommitsRequest) Reset() { *m = ListNewCommitsRequest{} } +func (m *ListNewCommitsRequest) String() string { return proto.CompactTextString(m) } +func (*ListNewCommitsRequest) ProtoMessage() {} +func (*ListNewCommitsRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{34} } + +func (m *ListNewCommitsRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *ListNewCommitsRequest) GetCommitId() string { + if m != nil { + return m.CommitId + } + return "" +} + +type ListNewCommitsResponse struct { + Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits" json:"commits,omitempty"` +} + +func (m *ListNewCommitsResponse) Reset() { *m = ListNewCommitsResponse{} } +func (m *ListNewCommitsResponse) String() string { return proto.CompactTextString(m) } +func (*ListNewCommitsResponse) ProtoMessage() {} +func (*ListNewCommitsResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{35} } + +func (m *ListNewCommitsResponse) GetCommits() []*GitCommit { + if m != nil { + return m.Commits + } + return nil +} + +type FindAllRemoteBranchesRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + RemoteName string `protobuf:"bytes,2,opt,name=remote_name,json=remoteName" json:"remote_name,omitempty"` +} + +func (m *FindAllRemoteBranchesRequest) Reset() { *m = FindAllRemoteBranchesRequest{} } +func (m *FindAllRemoteBranchesRequest) String() string { return proto.CompactTextString(m) } +func (*FindAllRemoteBranchesRequest) ProtoMessage() {} +func (*FindAllRemoteBranchesRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{36} } + +func (m *FindAllRemoteBranchesRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *FindAllRemoteBranchesRequest) GetRemoteName() string { + if m != nil { + return m.RemoteName + } + return "" +} + +type FindAllRemoteBranchesResponse struct { + Branches []*Branch `protobuf:"bytes,1,rep,name=branches" json:"branches,omitempty"` +} + +func (m *FindAllRemoteBranchesResponse) Reset() { *m = FindAllRemoteBranchesResponse{} } +func (m *FindAllRemoteBranchesResponse) String() string { return proto.CompactTextString(m) } +func (*FindAllRemoteBranchesResponse) ProtoMessage() {} +func (*FindAllRemoteBranchesResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{37} } + +func (m *FindAllRemoteBranchesResponse) GetBranches() []*Branch { + if m != nil { + return m.Branches + } + return nil +} + +func init() { + proto.RegisterType((*ListNewBlobsRequest)(nil), "gitaly.ListNewBlobsRequest") + proto.RegisterType((*ListNewBlobsResponse)(nil), "gitaly.ListNewBlobsResponse") + proto.RegisterType((*FindDefaultBranchNameRequest)(nil), "gitaly.FindDefaultBranchNameRequest") + proto.RegisterType((*FindDefaultBranchNameResponse)(nil), "gitaly.FindDefaultBranchNameResponse") + proto.RegisterType((*FindAllBranchNamesRequest)(nil), "gitaly.FindAllBranchNamesRequest") + proto.RegisterType((*FindAllBranchNamesResponse)(nil), "gitaly.FindAllBranchNamesResponse") + proto.RegisterType((*FindAllTagNamesRequest)(nil), "gitaly.FindAllTagNamesRequest") + proto.RegisterType((*FindAllTagNamesResponse)(nil), "gitaly.FindAllTagNamesResponse") + proto.RegisterType((*FindRefNameRequest)(nil), "gitaly.FindRefNameRequest") + proto.RegisterType((*FindRefNameResponse)(nil), "gitaly.FindRefNameResponse") + proto.RegisterType((*FindLocalBranchesRequest)(nil), "gitaly.FindLocalBranchesRequest") + proto.RegisterType((*FindLocalBranchesResponse)(nil), "gitaly.FindLocalBranchesResponse") + proto.RegisterType((*FindLocalBranchResponse)(nil), "gitaly.FindLocalBranchResponse") + proto.RegisterType((*FindLocalBranchCommitAuthor)(nil), "gitaly.FindLocalBranchCommitAuthor") + proto.RegisterType((*FindAllBranchesRequest)(nil), "gitaly.FindAllBranchesRequest") + proto.RegisterType((*FindAllBranchesResponse)(nil), "gitaly.FindAllBranchesResponse") + proto.RegisterType((*FindAllBranchesResponse_Branch)(nil), "gitaly.FindAllBranchesResponse.Branch") + proto.RegisterType((*FindAllTagsRequest)(nil), "gitaly.FindAllTagsRequest") + proto.RegisterType((*FindAllTagsResponse)(nil), "gitaly.FindAllTagsResponse") + proto.RegisterType((*RefExistsRequest)(nil), "gitaly.RefExistsRequest") + proto.RegisterType((*RefExistsResponse)(nil), "gitaly.RefExistsResponse") + proto.RegisterType((*CreateBranchRequest)(nil), "gitaly.CreateBranchRequest") + proto.RegisterType((*CreateBranchResponse)(nil), "gitaly.CreateBranchResponse") + proto.RegisterType((*DeleteBranchRequest)(nil), "gitaly.DeleteBranchRequest") + proto.RegisterType((*DeleteBranchResponse)(nil), "gitaly.DeleteBranchResponse") + proto.RegisterType((*FindBranchRequest)(nil), "gitaly.FindBranchRequest") + proto.RegisterType((*FindBranchResponse)(nil), "gitaly.FindBranchResponse") + proto.RegisterType((*DeleteRefsRequest)(nil), "gitaly.DeleteRefsRequest") + proto.RegisterType((*DeleteRefsResponse)(nil), "gitaly.DeleteRefsResponse") + proto.RegisterType((*ListBranchNamesContainingCommitRequest)(nil), "gitaly.ListBranchNamesContainingCommitRequest") + proto.RegisterType((*ListBranchNamesContainingCommitResponse)(nil), "gitaly.ListBranchNamesContainingCommitResponse") + proto.RegisterType((*ListTagNamesContainingCommitRequest)(nil), "gitaly.ListTagNamesContainingCommitRequest") + proto.RegisterType((*ListTagNamesContainingCommitResponse)(nil), "gitaly.ListTagNamesContainingCommitResponse") + proto.RegisterType((*GetTagMessagesRequest)(nil), "gitaly.GetTagMessagesRequest") + proto.RegisterType((*GetTagMessagesResponse)(nil), "gitaly.GetTagMessagesResponse") + proto.RegisterType((*ListNewCommitsRequest)(nil), "gitaly.ListNewCommitsRequest") + proto.RegisterType((*ListNewCommitsResponse)(nil), "gitaly.ListNewCommitsResponse") + proto.RegisterType((*FindAllRemoteBranchesRequest)(nil), "gitaly.FindAllRemoteBranchesRequest") + proto.RegisterType((*FindAllRemoteBranchesResponse)(nil), "gitaly.FindAllRemoteBranchesResponse") + proto.RegisterEnum("gitaly.FindLocalBranchesRequest_SortBy", FindLocalBranchesRequest_SortBy_name, FindLocalBranchesRequest_SortBy_value) + proto.RegisterEnum("gitaly.CreateBranchResponse_Status", CreateBranchResponse_Status_name, CreateBranchResponse_Status_value) +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// Client API for RefService service + +type RefServiceClient interface { + FindDefaultBranchName(ctx context.Context, in *FindDefaultBranchNameRequest, opts ...grpc.CallOption) (*FindDefaultBranchNameResponse, error) + FindAllBranchNames(ctx context.Context, in *FindAllBranchNamesRequest, opts ...grpc.CallOption) (RefService_FindAllBranchNamesClient, error) + FindAllTagNames(ctx context.Context, in *FindAllTagNamesRequest, opts ...grpc.CallOption) (RefService_FindAllTagNamesClient, error) + // Find a Ref matching the given constraints. Response may be empty. + FindRefName(ctx context.Context, in *FindRefNameRequest, opts ...grpc.CallOption) (*FindRefNameResponse, error) + // Return a stream so we can divide the response in chunks of branches + FindLocalBranches(ctx context.Context, in *FindLocalBranchesRequest, opts ...grpc.CallOption) (RefService_FindLocalBranchesClient, error) + FindAllBranches(ctx context.Context, in *FindAllBranchesRequest, opts ...grpc.CallOption) (RefService_FindAllBranchesClient, error) + FindAllTags(ctx context.Context, in *FindAllTagsRequest, opts ...grpc.CallOption) (RefService_FindAllTagsClient, error) + FindAllRemoteBranches(ctx context.Context, in *FindAllRemoteBranchesRequest, opts ...grpc.CallOption) (RefService_FindAllRemoteBranchesClient, error) + RefExists(ctx context.Context, in *RefExistsRequest, opts ...grpc.CallOption) (*RefExistsResponse, error) + CreateBranch(ctx context.Context, in *CreateBranchRequest, opts ...grpc.CallOption) (*CreateBranchResponse, error) + DeleteBranch(ctx context.Context, in *DeleteBranchRequest, opts ...grpc.CallOption) (*DeleteBranchResponse, error) + FindBranch(ctx context.Context, in *FindBranchRequest, opts ...grpc.CallOption) (*FindBranchResponse, error) + DeleteRefs(ctx context.Context, in *DeleteRefsRequest, opts ...grpc.CallOption) (*DeleteRefsResponse, error) + ListBranchNamesContainingCommit(ctx context.Context, in *ListBranchNamesContainingCommitRequest, opts ...grpc.CallOption) (RefService_ListBranchNamesContainingCommitClient, error) + ListTagNamesContainingCommit(ctx context.Context, in *ListTagNamesContainingCommitRequest, opts ...grpc.CallOption) (RefService_ListTagNamesContainingCommitClient, error) + GetTagMessages(ctx context.Context, in *GetTagMessagesRequest, opts ...grpc.CallOption) (RefService_GetTagMessagesClient, error) + // Returns commits that are only reachable from the ref passed + ListNewCommits(ctx context.Context, in *ListNewCommitsRequest, opts ...grpc.CallOption) (RefService_ListNewCommitsClient, error) + ListNewBlobs(ctx context.Context, in *ListNewBlobsRequest, opts ...grpc.CallOption) (RefService_ListNewBlobsClient, error) +} + +type refServiceClient struct { + cc *grpc.ClientConn +} + +func NewRefServiceClient(cc *grpc.ClientConn) RefServiceClient { + return &refServiceClient{cc} +} + +func (c *refServiceClient) FindDefaultBranchName(ctx context.Context, in *FindDefaultBranchNameRequest, opts ...grpc.CallOption) (*FindDefaultBranchNameResponse, error) { + out := new(FindDefaultBranchNameResponse) + err := grpc.Invoke(ctx, "/gitaly.RefService/FindDefaultBranchName", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *refServiceClient) FindAllBranchNames(ctx context.Context, in *FindAllBranchNamesRequest, opts ...grpc.CallOption) (RefService_FindAllBranchNamesClient, error) { + stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[0], c.cc, "/gitaly.RefService/FindAllBranchNames", opts...) + if err != nil { + return nil, err + } + x := &refServiceFindAllBranchNamesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RefService_FindAllBranchNamesClient interface { + Recv() (*FindAllBranchNamesResponse, error) + grpc.ClientStream +} + +type refServiceFindAllBranchNamesClient struct { + grpc.ClientStream +} + +func (x *refServiceFindAllBranchNamesClient) Recv() (*FindAllBranchNamesResponse, error) { + m := new(FindAllBranchNamesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *refServiceClient) FindAllTagNames(ctx context.Context, in *FindAllTagNamesRequest, opts ...grpc.CallOption) (RefService_FindAllTagNamesClient, error) { + stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[1], c.cc, "/gitaly.RefService/FindAllTagNames", opts...) + if err != nil { + return nil, err + } + x := &refServiceFindAllTagNamesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RefService_FindAllTagNamesClient interface { + Recv() (*FindAllTagNamesResponse, error) + grpc.ClientStream +} + +type refServiceFindAllTagNamesClient struct { + grpc.ClientStream +} + +func (x *refServiceFindAllTagNamesClient) Recv() (*FindAllTagNamesResponse, error) { + m := new(FindAllTagNamesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *refServiceClient) FindRefName(ctx context.Context, in *FindRefNameRequest, opts ...grpc.CallOption) (*FindRefNameResponse, error) { + out := new(FindRefNameResponse) + err := grpc.Invoke(ctx, "/gitaly.RefService/FindRefName", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *refServiceClient) FindLocalBranches(ctx context.Context, in *FindLocalBranchesRequest, opts ...grpc.CallOption) (RefService_FindLocalBranchesClient, error) { + stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[2], c.cc, "/gitaly.RefService/FindLocalBranches", opts...) + if err != nil { + return nil, err + } + x := &refServiceFindLocalBranchesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RefService_FindLocalBranchesClient interface { + Recv() (*FindLocalBranchesResponse, error) + grpc.ClientStream +} + +type refServiceFindLocalBranchesClient struct { + grpc.ClientStream +} + +func (x *refServiceFindLocalBranchesClient) Recv() (*FindLocalBranchesResponse, error) { + m := new(FindLocalBranchesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *refServiceClient) FindAllBranches(ctx context.Context, in *FindAllBranchesRequest, opts ...grpc.CallOption) (RefService_FindAllBranchesClient, error) { + stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[3], c.cc, "/gitaly.RefService/FindAllBranches", opts...) + if err != nil { + return nil, err + } + x := &refServiceFindAllBranchesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RefService_FindAllBranchesClient interface { + Recv() (*FindAllBranchesResponse, error) + grpc.ClientStream +} + +type refServiceFindAllBranchesClient struct { + grpc.ClientStream +} + +func (x *refServiceFindAllBranchesClient) Recv() (*FindAllBranchesResponse, error) { + m := new(FindAllBranchesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *refServiceClient) FindAllTags(ctx context.Context, in *FindAllTagsRequest, opts ...grpc.CallOption) (RefService_FindAllTagsClient, error) { + stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[4], c.cc, "/gitaly.RefService/FindAllTags", opts...) + if err != nil { + return nil, err + } + x := &refServiceFindAllTagsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RefService_FindAllTagsClient interface { + Recv() (*FindAllTagsResponse, error) + grpc.ClientStream +} + +type refServiceFindAllTagsClient struct { + grpc.ClientStream +} + +func (x *refServiceFindAllTagsClient) Recv() (*FindAllTagsResponse, error) { + m := new(FindAllTagsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *refServiceClient) FindAllRemoteBranches(ctx context.Context, in *FindAllRemoteBranchesRequest, opts ...grpc.CallOption) (RefService_FindAllRemoteBranchesClient, error) { + stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[5], c.cc, "/gitaly.RefService/FindAllRemoteBranches", opts...) + if err != nil { + return nil, err + } + x := &refServiceFindAllRemoteBranchesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RefService_FindAllRemoteBranchesClient interface { + Recv() (*FindAllRemoteBranchesResponse, error) + grpc.ClientStream +} + +type refServiceFindAllRemoteBranchesClient struct { + grpc.ClientStream +} + +func (x *refServiceFindAllRemoteBranchesClient) Recv() (*FindAllRemoteBranchesResponse, error) { + m := new(FindAllRemoteBranchesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *refServiceClient) RefExists(ctx context.Context, in *RefExistsRequest, opts ...grpc.CallOption) (*RefExistsResponse, error) { + out := new(RefExistsResponse) + err := grpc.Invoke(ctx, "/gitaly.RefService/RefExists", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *refServiceClient) CreateBranch(ctx context.Context, in *CreateBranchRequest, opts ...grpc.CallOption) (*CreateBranchResponse, error) { + out := new(CreateBranchResponse) + err := grpc.Invoke(ctx, "/gitaly.RefService/CreateBranch", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *refServiceClient) DeleteBranch(ctx context.Context, in *DeleteBranchRequest, opts ...grpc.CallOption) (*DeleteBranchResponse, error) { + out := new(DeleteBranchResponse) + err := grpc.Invoke(ctx, "/gitaly.RefService/DeleteBranch", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *refServiceClient) FindBranch(ctx context.Context, in *FindBranchRequest, opts ...grpc.CallOption) (*FindBranchResponse, error) { + out := new(FindBranchResponse) + err := grpc.Invoke(ctx, "/gitaly.RefService/FindBranch", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *refServiceClient) DeleteRefs(ctx context.Context, in *DeleteRefsRequest, opts ...grpc.CallOption) (*DeleteRefsResponse, error) { + out := new(DeleteRefsResponse) + err := grpc.Invoke(ctx, "/gitaly.RefService/DeleteRefs", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *refServiceClient) ListBranchNamesContainingCommit(ctx context.Context, in *ListBranchNamesContainingCommitRequest, opts ...grpc.CallOption) (RefService_ListBranchNamesContainingCommitClient, error) { + stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[6], c.cc, "/gitaly.RefService/ListBranchNamesContainingCommit", opts...) + if err != nil { + return nil, err + } + x := &refServiceListBranchNamesContainingCommitClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RefService_ListBranchNamesContainingCommitClient interface { + Recv() (*ListBranchNamesContainingCommitResponse, error) + grpc.ClientStream +} + +type refServiceListBranchNamesContainingCommitClient struct { + grpc.ClientStream +} + +func (x *refServiceListBranchNamesContainingCommitClient) Recv() (*ListBranchNamesContainingCommitResponse, error) { + m := new(ListBranchNamesContainingCommitResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *refServiceClient) ListTagNamesContainingCommit(ctx context.Context, in *ListTagNamesContainingCommitRequest, opts ...grpc.CallOption) (RefService_ListTagNamesContainingCommitClient, error) { + stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[7], c.cc, "/gitaly.RefService/ListTagNamesContainingCommit", opts...) + if err != nil { + return nil, err + } + x := &refServiceListTagNamesContainingCommitClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RefService_ListTagNamesContainingCommitClient interface { + Recv() (*ListTagNamesContainingCommitResponse, error) + grpc.ClientStream +} + +type refServiceListTagNamesContainingCommitClient struct { + grpc.ClientStream +} + +func (x *refServiceListTagNamesContainingCommitClient) Recv() (*ListTagNamesContainingCommitResponse, error) { + m := new(ListTagNamesContainingCommitResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *refServiceClient) GetTagMessages(ctx context.Context, in *GetTagMessagesRequest, opts ...grpc.CallOption) (RefService_GetTagMessagesClient, error) { + stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[8], c.cc, "/gitaly.RefService/GetTagMessages", opts...) + if err != nil { + return nil, err + } + x := &refServiceGetTagMessagesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RefService_GetTagMessagesClient interface { + Recv() (*GetTagMessagesResponse, error) + grpc.ClientStream +} + +type refServiceGetTagMessagesClient struct { + grpc.ClientStream +} + +func (x *refServiceGetTagMessagesClient) Recv() (*GetTagMessagesResponse, error) { + m := new(GetTagMessagesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *refServiceClient) ListNewCommits(ctx context.Context, in *ListNewCommitsRequest, opts ...grpc.CallOption) (RefService_ListNewCommitsClient, error) { + stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[9], c.cc, "/gitaly.RefService/ListNewCommits", opts...) + if err != nil { + return nil, err + } + x := &refServiceListNewCommitsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RefService_ListNewCommitsClient interface { + Recv() (*ListNewCommitsResponse, error) + grpc.ClientStream +} + +type refServiceListNewCommitsClient struct { + grpc.ClientStream +} + +func (x *refServiceListNewCommitsClient) Recv() (*ListNewCommitsResponse, error) { + m := new(ListNewCommitsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *refServiceClient) ListNewBlobs(ctx context.Context, in *ListNewBlobsRequest, opts ...grpc.CallOption) (RefService_ListNewBlobsClient, error) { + stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[10], c.cc, "/gitaly.RefService/ListNewBlobs", opts...) + if err != nil { + return nil, err + } + x := &refServiceListNewBlobsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RefService_ListNewBlobsClient interface { + Recv() (*ListNewBlobsResponse, error) + grpc.ClientStream +} + +type refServiceListNewBlobsClient struct { + grpc.ClientStream +} + +func (x *refServiceListNewBlobsClient) Recv() (*ListNewBlobsResponse, error) { + m := new(ListNewBlobsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// Server API for RefService service + +type RefServiceServer interface { + FindDefaultBranchName(context.Context, *FindDefaultBranchNameRequest) (*FindDefaultBranchNameResponse, error) + FindAllBranchNames(*FindAllBranchNamesRequest, RefService_FindAllBranchNamesServer) error + FindAllTagNames(*FindAllTagNamesRequest, RefService_FindAllTagNamesServer) error + // Find a Ref matching the given constraints. Response may be empty. + FindRefName(context.Context, *FindRefNameRequest) (*FindRefNameResponse, error) + // Return a stream so we can divide the response in chunks of branches + FindLocalBranches(*FindLocalBranchesRequest, RefService_FindLocalBranchesServer) error + FindAllBranches(*FindAllBranchesRequest, RefService_FindAllBranchesServer) error + FindAllTags(*FindAllTagsRequest, RefService_FindAllTagsServer) error + FindAllRemoteBranches(*FindAllRemoteBranchesRequest, RefService_FindAllRemoteBranchesServer) error + RefExists(context.Context, *RefExistsRequest) (*RefExistsResponse, error) + CreateBranch(context.Context, *CreateBranchRequest) (*CreateBranchResponse, error) + DeleteBranch(context.Context, *DeleteBranchRequest) (*DeleteBranchResponse, error) + FindBranch(context.Context, *FindBranchRequest) (*FindBranchResponse, error) + DeleteRefs(context.Context, *DeleteRefsRequest) (*DeleteRefsResponse, error) + ListBranchNamesContainingCommit(*ListBranchNamesContainingCommitRequest, RefService_ListBranchNamesContainingCommitServer) error + ListTagNamesContainingCommit(*ListTagNamesContainingCommitRequest, RefService_ListTagNamesContainingCommitServer) error + GetTagMessages(*GetTagMessagesRequest, RefService_GetTagMessagesServer) error + // Returns commits that are only reachable from the ref passed + ListNewCommits(*ListNewCommitsRequest, RefService_ListNewCommitsServer) error + ListNewBlobs(*ListNewBlobsRequest, RefService_ListNewBlobsServer) error +} + +func RegisterRefServiceServer(s *grpc.Server, srv RefServiceServer) { + s.RegisterService(&_RefService_serviceDesc, srv) +} + +func _RefService_FindDefaultBranchName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindDefaultBranchNameRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RefServiceServer).FindDefaultBranchName(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RefService/FindDefaultBranchName", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RefServiceServer).FindDefaultBranchName(ctx, req.(*FindDefaultBranchNameRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RefService_FindAllBranchNames_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(FindAllBranchNamesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RefServiceServer).FindAllBranchNames(m, &refServiceFindAllBranchNamesServer{stream}) +} + +type RefService_FindAllBranchNamesServer interface { + Send(*FindAllBranchNamesResponse) error + grpc.ServerStream +} + +type refServiceFindAllBranchNamesServer struct { + grpc.ServerStream +} + +func (x *refServiceFindAllBranchNamesServer) Send(m *FindAllBranchNamesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RefService_FindAllTagNames_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(FindAllTagNamesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RefServiceServer).FindAllTagNames(m, &refServiceFindAllTagNamesServer{stream}) +} + +type RefService_FindAllTagNamesServer interface { + Send(*FindAllTagNamesResponse) error + grpc.ServerStream +} + +type refServiceFindAllTagNamesServer struct { + grpc.ServerStream +} + +func (x *refServiceFindAllTagNamesServer) Send(m *FindAllTagNamesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RefService_FindRefName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindRefNameRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RefServiceServer).FindRefName(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RefService/FindRefName", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RefServiceServer).FindRefName(ctx, req.(*FindRefNameRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RefService_FindLocalBranches_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(FindLocalBranchesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RefServiceServer).FindLocalBranches(m, &refServiceFindLocalBranchesServer{stream}) +} + +type RefService_FindLocalBranchesServer interface { + Send(*FindLocalBranchesResponse) error + grpc.ServerStream +} + +type refServiceFindLocalBranchesServer struct { + grpc.ServerStream +} + +func (x *refServiceFindLocalBranchesServer) Send(m *FindLocalBranchesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RefService_FindAllBranches_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(FindAllBranchesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RefServiceServer).FindAllBranches(m, &refServiceFindAllBranchesServer{stream}) +} + +type RefService_FindAllBranchesServer interface { + Send(*FindAllBranchesResponse) error + grpc.ServerStream +} + +type refServiceFindAllBranchesServer struct { + grpc.ServerStream +} + +func (x *refServiceFindAllBranchesServer) Send(m *FindAllBranchesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RefService_FindAllTags_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(FindAllTagsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RefServiceServer).FindAllTags(m, &refServiceFindAllTagsServer{stream}) +} + +type RefService_FindAllTagsServer interface { + Send(*FindAllTagsResponse) error + grpc.ServerStream +} + +type refServiceFindAllTagsServer struct { + grpc.ServerStream +} + +func (x *refServiceFindAllTagsServer) Send(m *FindAllTagsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RefService_FindAllRemoteBranches_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(FindAllRemoteBranchesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RefServiceServer).FindAllRemoteBranches(m, &refServiceFindAllRemoteBranchesServer{stream}) +} + +type RefService_FindAllRemoteBranchesServer interface { + Send(*FindAllRemoteBranchesResponse) error + grpc.ServerStream +} + +type refServiceFindAllRemoteBranchesServer struct { + grpc.ServerStream +} + +func (x *refServiceFindAllRemoteBranchesServer) Send(m *FindAllRemoteBranchesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RefService_RefExists_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RefExistsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RefServiceServer).RefExists(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RefService/RefExists", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RefServiceServer).RefExists(ctx, req.(*RefExistsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RefService_CreateBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateBranchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RefServiceServer).CreateBranch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RefService/CreateBranch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RefServiceServer).CreateBranch(ctx, req.(*CreateBranchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RefService_DeleteBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteBranchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RefServiceServer).DeleteBranch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RefService/DeleteBranch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RefServiceServer).DeleteBranch(ctx, req.(*DeleteBranchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RefService_FindBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindBranchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RefServiceServer).FindBranch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RefService/FindBranch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RefServiceServer).FindBranch(ctx, req.(*FindBranchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RefService_DeleteRefs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteRefsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RefServiceServer).DeleteRefs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RefService/DeleteRefs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RefServiceServer).DeleteRefs(ctx, req.(*DeleteRefsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RefService_ListBranchNamesContainingCommit_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListBranchNamesContainingCommitRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RefServiceServer).ListBranchNamesContainingCommit(m, &refServiceListBranchNamesContainingCommitServer{stream}) +} + +type RefService_ListBranchNamesContainingCommitServer interface { + Send(*ListBranchNamesContainingCommitResponse) error + grpc.ServerStream +} + +type refServiceListBranchNamesContainingCommitServer struct { + grpc.ServerStream +} + +func (x *refServiceListBranchNamesContainingCommitServer) Send(m *ListBranchNamesContainingCommitResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RefService_ListTagNamesContainingCommit_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListTagNamesContainingCommitRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RefServiceServer).ListTagNamesContainingCommit(m, &refServiceListTagNamesContainingCommitServer{stream}) +} + +type RefService_ListTagNamesContainingCommitServer interface { + Send(*ListTagNamesContainingCommitResponse) error + grpc.ServerStream +} + +type refServiceListTagNamesContainingCommitServer struct { + grpc.ServerStream +} + +func (x *refServiceListTagNamesContainingCommitServer) Send(m *ListTagNamesContainingCommitResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RefService_GetTagMessages_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetTagMessagesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RefServiceServer).GetTagMessages(m, &refServiceGetTagMessagesServer{stream}) +} + +type RefService_GetTagMessagesServer interface { + Send(*GetTagMessagesResponse) error + grpc.ServerStream +} + +type refServiceGetTagMessagesServer struct { + grpc.ServerStream +} + +func (x *refServiceGetTagMessagesServer) Send(m *GetTagMessagesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RefService_ListNewCommits_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListNewCommitsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RefServiceServer).ListNewCommits(m, &refServiceListNewCommitsServer{stream}) +} + +type RefService_ListNewCommitsServer interface { + Send(*ListNewCommitsResponse) error + grpc.ServerStream +} + +type refServiceListNewCommitsServer struct { + grpc.ServerStream +} + +func (x *refServiceListNewCommitsServer) Send(m *ListNewCommitsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RefService_ListNewBlobs_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListNewBlobsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RefServiceServer).ListNewBlobs(m, &refServiceListNewBlobsServer{stream}) +} + +type RefService_ListNewBlobsServer interface { + Send(*ListNewBlobsResponse) error + grpc.ServerStream +} + +type refServiceListNewBlobsServer struct { + grpc.ServerStream +} + +func (x *refServiceListNewBlobsServer) Send(m *ListNewBlobsResponse) error { + return x.ServerStream.SendMsg(m) +} + +var _RefService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.RefService", + HandlerType: (*RefServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "FindDefaultBranchName", + Handler: _RefService_FindDefaultBranchName_Handler, + }, + { + MethodName: "FindRefName", + Handler: _RefService_FindRefName_Handler, + }, + { + MethodName: "RefExists", + Handler: _RefService_RefExists_Handler, + }, + { + MethodName: "CreateBranch", + Handler: _RefService_CreateBranch_Handler, + }, + { + MethodName: "DeleteBranch", + Handler: _RefService_DeleteBranch_Handler, + }, + { + MethodName: "FindBranch", + Handler: _RefService_FindBranch_Handler, + }, + { + MethodName: "DeleteRefs", + Handler: _RefService_DeleteRefs_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "FindAllBranchNames", + Handler: _RefService_FindAllBranchNames_Handler, + ServerStreams: true, + }, + { + StreamName: "FindAllTagNames", + Handler: _RefService_FindAllTagNames_Handler, + ServerStreams: true, + }, + { + StreamName: "FindLocalBranches", + Handler: _RefService_FindLocalBranches_Handler, + ServerStreams: true, + }, + { + StreamName: "FindAllBranches", + Handler: _RefService_FindAllBranches_Handler, + ServerStreams: true, + }, + { + StreamName: "FindAllTags", + Handler: _RefService_FindAllTags_Handler, + ServerStreams: true, + }, + { + StreamName: "FindAllRemoteBranches", + Handler: _RefService_FindAllRemoteBranches_Handler, + ServerStreams: true, + }, + { + StreamName: "ListBranchNamesContainingCommit", + Handler: _RefService_ListBranchNamesContainingCommit_Handler, + ServerStreams: true, + }, + { + StreamName: "ListTagNamesContainingCommit", + Handler: _RefService_ListTagNamesContainingCommit_Handler, + ServerStreams: true, + }, + { + StreamName: "GetTagMessages", + Handler: _RefService_GetTagMessages_Handler, + ServerStreams: true, + }, + { + StreamName: "ListNewCommits", + Handler: _RefService_ListNewCommits_Handler, + ServerStreams: true, + }, + { + StreamName: "ListNewBlobs", + Handler: _RefService_ListNewBlobs_Handler, + ServerStreams: true, + }, + }, + Metadata: "ref.proto", +} + +func init() { proto.RegisterFile("ref.proto", fileDescriptor9) } + +var fileDescriptor9 = []byte{ + // 1539 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0x5b, 0x6f, 0xdb, 0xc6, + 0x12, 0x36, 0x65, 0x5b, 0x96, 0x46, 0x8a, 0x4c, 0xaf, 0x2f, 0x51, 0xe8, 0x24, 0x76, 0x36, 0x37, + 0xe7, 0x24, 0x90, 0xcf, 0x51, 0x70, 0xfa, 0xd2, 0x02, 0xad, 0x6c, 0xab, 0x89, 0x13, 0xc7, 0x36, + 0x56, 0x6a, 0x92, 0xa2, 0x2d, 0x08, 0xca, 0x5a, 0xd1, 0x2c, 0x28, 0x51, 0x25, 0x57, 0x71, 0x0c, + 0x34, 0x7d, 0x2c, 0x50, 0xb4, 0x40, 0xdf, 0xfa, 0x13, 0xfa, 0x57, 0xfa, 0xd0, 0x97, 0xfe, 0xa4, + 0x82, 0xbb, 0xcb, 0x9b, 0x44, 0xc9, 0x46, 0xd5, 0xb4, 0x4f,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0xe5, 0x97, 0xbc, 0x24, + 0xc8, 0x81, 0x11, 0xf8, 0x57, 0x25, 0xac, 0x0f, 0x23, 0x89, 0xb7, 0x33, 0x92, 0x78, 0xf7, 0xe2, + 0x51, 0x4f, 0x11, 0xa9, 0xc8, 0x0c, 0x0b, 0xe5, 0xb4, 0x27, 0x90, 0x15, 0xb4, 0xd4, 0xe0, 0x3e, + 0x80, 0x2c, 0x33, 0x5c, 0x93, 0x32, 0xee, 0x42, 0xa1, 0xba, 0x14, 0xe0, 0x3f, 0x09, 0x4e, 0x8d, + 0x48, 0x06, 0xfc, 0x54, 0x94, 0x25, 0x51, 0xc7, 0xa6, 0xaa, 0x88, 0x1f, 0x88, 0x0a, 0x13, 0x22, + 0x49, 0x6f, 0x37, 0x60, 0x8e, 0x19, 0x66, 0xe0, 0x69, 0x21, 0x00, 0x69, 0x1a, 0x26, 0xe1, 0x1b, + 0xf8, 0x35, 0xa8, 0x84, 0x76, 0xea, 0x6f, 0x2d, 0x8f, 0x4d, 0x75, 0x78, 0x2a, 0xcc, 0xba, 0xb4, + 0x23, 0xf3, 0xc9, 0xff, 0x8b, 0x1f, 0xc0, 0x52, 0x0c, 0x39, 0xaa, 0xce, 0x6f, 0x0c, 0x7b, 0x20, + 0x02, 0x96, 0x23, 0x62, 0x81, 0xbf, 0x83, 0xe5, 0x5d, 0x97, 0x1a, 0x8c, 0x06, 0x77, 0xf9, 0xaf, + 0xdb, 0x11, 0x1c, 0x48, 0x26, 0x76, 0x20, 0x1b, 0x50, 0xf0, 0x98, 0xe1, 0x32, 0xbd, 0xef, 0x58, + 0xbd, 0xe0, 0x7a, 0x03, 0x27, 0x1d, 0xfb, 0x14, 0xfc, 0xbb, 0x02, 0x2b, 0x49, 0x03, 0xc2, 0x2a, + 0x95, 0xf5, 0x98, 0xc1, 0x06, 0x1e, 0xd7, 0x5e, 0x8a, 0x2e, 0x68, 0x1a, 0x77, 0xa5, 0xc1, 0x59, + 0x89, 0x14, 0x41, 0xf7, 0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x60, 0x72, 0x42, 0xd5, 0xae, 0xa5, 0xec, 0x84, 0xe7, 0xf5, + 0x1c, 0x8a, 0xf1, 0xf1, 0x0c, 0xad, 0xa7, 0x0f, 0x6d, 0x02, 0xe9, 0xfa, 0xa4, 0x89, 0x4e, 0x80, + 0xc5, 0xa7, 0x9d, 0x08, 0x2c, 0x65, 0xc4, 0x8a, 0xc0, 0x52, 0x07, 0xa4, 0x19, 0x54, 0x07, 0x88, + 0xa6, 0x18, 0x74, 0x2d, 0x1e, 0x96, 0x24, 0x90, 0x96, 0xb6, 0x15, 0x87, 0x89, 0x46, 0x88, 0x08, + 0x66, 0x64, 0xc2, 0x89, 0x60, 0x46, 0x27, 0x0e, 0x3c, 0x83, 0xbe, 0x57, 0x60, 0xe3, 0x82, 0x2e, + 0x8e, 0x2a, 0x01, 0xc2, 0xe5, 0xe6, 0x0f, 0x6d, 0xfb, 0xd2, 0xfc, 0xb1, 0x43, 0x7f, 0x07, 0xd7, + 0x27, 0xb5, 0x5a, 0xf4, 0x30, 0x0e, 0x7a, 0xc1, 0x78, 0xa0, 0x3d, 0xba, 0x1c, 0x73, 0x4c, 0x7d, + 0x03, 0x4a, 0xc9, 0x3e, 0x89, 0x6e, 0x84, 0x9d, 0x24, 0xad, 0x6d, 0x6b, 0x37, 0xc7, 0x6d, 0x27, + 0x41, 0x93, 0x7d, 0x2b, 0x02, 0x4d, 0xed, 0x9c, 0x11, 0x68, 0x7a, 0xbb, 0xe3, 0xa0, 0x2f, 0xa0, + 0x18, 0xff, 0x56, 0x19, 0x25, 0x63, 0xca, 0xf7, 0xd3, 0x28, 0x19, 0xd3, 0x3e, 0x6f, 0xfa, 0x70, + 0xad, 0x2c, 0x7f, 0xd9, 0x3f, 0xfe, 0x33, 0x00, 0x00, 0xff, 0xff, 0x8e, 0x95, 0x40, 0x62, 0xcf, + 0x15, 0x00, 0x00, +} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/remote.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/remote.pb.go new file mode 100644 index 0000000..13ee1f3 --- /dev/null +++ b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/remote.pb.go @@ -0,0 +1,606 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: remote.proto + +package gitalypb + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +type AddRemoteRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` + Url string `protobuf:"bytes,3,opt,name=url" json:"url,omitempty"` + // If any, the remote is configured as a mirror with those mappings + MirrorRefmaps []string `protobuf:"bytes,5,rep,name=mirror_refmaps,json=mirrorRefmaps" json:"mirror_refmaps,omitempty"` +} + +func (m *AddRemoteRequest) Reset() { *m = AddRemoteRequest{} } +func (m *AddRemoteRequest) String() string { return proto.CompactTextString(m) } +func (*AddRemoteRequest) ProtoMessage() {} +func (*AddRemoteRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{0} } + +func (m *AddRemoteRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *AddRemoteRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *AddRemoteRequest) GetUrl() string { + if m != nil { + return m.Url + } + return "" +} + +func (m *AddRemoteRequest) GetMirrorRefmaps() []string { + if m != nil { + return m.MirrorRefmaps + } + return nil +} + +type AddRemoteResponse struct { +} + +func (m *AddRemoteResponse) Reset() { *m = AddRemoteResponse{} } +func (m *AddRemoteResponse) String() string { return proto.CompactTextString(m) } +func (*AddRemoteResponse) ProtoMessage() {} +func (*AddRemoteResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{1} } + +type RemoveRemoteRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` +} + +func (m *RemoveRemoteRequest) Reset() { *m = RemoveRemoteRequest{} } +func (m *RemoveRemoteRequest) String() string { return proto.CompactTextString(m) } +func (*RemoveRemoteRequest) ProtoMessage() {} +func (*RemoveRemoteRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{2} } + +func (m *RemoveRemoteRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *RemoveRemoteRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type RemoveRemoteResponse struct { + Result bool `protobuf:"varint,1,opt,name=result" json:"result,omitempty"` +} + +func (m *RemoveRemoteResponse) Reset() { *m = RemoveRemoteResponse{} } +func (m *RemoveRemoteResponse) String() string { return proto.CompactTextString(m) } +func (*RemoveRemoteResponse) ProtoMessage() {} +func (*RemoveRemoteResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{3} } + +func (m *RemoveRemoteResponse) GetResult() bool { + if m != nil { + return m.Result + } + return false +} + +type FetchInternalRemoteRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + RemoteRepository *Repository `protobuf:"bytes,2,opt,name=remote_repository,json=remoteRepository" json:"remote_repository,omitempty"` +} + +func (m *FetchInternalRemoteRequest) Reset() { *m = FetchInternalRemoteRequest{} } +func (m *FetchInternalRemoteRequest) String() string { return proto.CompactTextString(m) } +func (*FetchInternalRemoteRequest) ProtoMessage() {} +func (*FetchInternalRemoteRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{4} } + +func (m *FetchInternalRemoteRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *FetchInternalRemoteRequest) GetRemoteRepository() *Repository { + if m != nil { + return m.RemoteRepository + } + return nil +} + +type FetchInternalRemoteResponse struct { + Result bool `protobuf:"varint,1,opt,name=result" json:"result,omitempty"` +} + +func (m *FetchInternalRemoteResponse) Reset() { *m = FetchInternalRemoteResponse{} } +func (m *FetchInternalRemoteResponse) String() string { return proto.CompactTextString(m) } +func (*FetchInternalRemoteResponse) ProtoMessage() {} +func (*FetchInternalRemoteResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{5} } + +func (m *FetchInternalRemoteResponse) GetResult() bool { + if m != nil { + return m.Result + } + return false +} + +type UpdateRemoteMirrorRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + RefName string `protobuf:"bytes,2,opt,name=ref_name,json=refName" json:"ref_name,omitempty"` + OnlyBranchesMatching [][]byte `protobuf:"bytes,3,rep,name=only_branches_matching,json=onlyBranchesMatching,proto3" json:"only_branches_matching,omitempty"` + SshKey string `protobuf:"bytes,4,opt,name=ssh_key,json=sshKey" json:"ssh_key,omitempty"` + KnownHosts string `protobuf:"bytes,5,opt,name=known_hosts,json=knownHosts" json:"known_hosts,omitempty"` +} + +func (m *UpdateRemoteMirrorRequest) Reset() { *m = UpdateRemoteMirrorRequest{} } +func (m *UpdateRemoteMirrorRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateRemoteMirrorRequest) ProtoMessage() {} +func (*UpdateRemoteMirrorRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{6} } + +func (m *UpdateRemoteMirrorRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *UpdateRemoteMirrorRequest) GetRefName() string { + if m != nil { + return m.RefName + } + return "" +} + +func (m *UpdateRemoteMirrorRequest) GetOnlyBranchesMatching() [][]byte { + if m != nil { + return m.OnlyBranchesMatching + } + return nil +} + +func (m *UpdateRemoteMirrorRequest) GetSshKey() string { + if m != nil { + return m.SshKey + } + return "" +} + +func (m *UpdateRemoteMirrorRequest) GetKnownHosts() string { + if m != nil { + return m.KnownHosts + } + return "" +} + +type UpdateRemoteMirrorResponse struct { +} + +func (m *UpdateRemoteMirrorResponse) Reset() { *m = UpdateRemoteMirrorResponse{} } +func (m *UpdateRemoteMirrorResponse) String() string { return proto.CompactTextString(m) } +func (*UpdateRemoteMirrorResponse) ProtoMessage() {} +func (*UpdateRemoteMirrorResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{7} } + +type FindRemoteRepositoryRequest struct { + Remote string `protobuf:"bytes,1,opt,name=remote" json:"remote,omitempty"` +} + +func (m *FindRemoteRepositoryRequest) Reset() { *m = FindRemoteRepositoryRequest{} } +func (m *FindRemoteRepositoryRequest) String() string { return proto.CompactTextString(m) } +func (*FindRemoteRepositoryRequest) ProtoMessage() {} +func (*FindRemoteRepositoryRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{8} } + +func (m *FindRemoteRepositoryRequest) GetRemote() string { + if m != nil { + return m.Remote + } + return "" +} + +// This migth throw a GRPC Unavailable code, to signal the request failure +// is transient. +type FindRemoteRepositoryResponse struct { + Exists bool `protobuf:"varint,1,opt,name=exists" json:"exists,omitempty"` +} + +func (m *FindRemoteRepositoryResponse) Reset() { *m = FindRemoteRepositoryResponse{} } +func (m *FindRemoteRepositoryResponse) String() string { return proto.CompactTextString(m) } +func (*FindRemoteRepositoryResponse) ProtoMessage() {} +func (*FindRemoteRepositoryResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{9} } + +func (m *FindRemoteRepositoryResponse) GetExists() bool { + if m != nil { + return m.Exists + } + return false +} + +type FindRemoteRootRefRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Remote string `protobuf:"bytes,2,opt,name=remote" json:"remote,omitempty"` +} + +func (m *FindRemoteRootRefRequest) Reset() { *m = FindRemoteRootRefRequest{} } +func (m *FindRemoteRootRefRequest) String() string { return proto.CompactTextString(m) } +func (*FindRemoteRootRefRequest) ProtoMessage() {} +func (*FindRemoteRootRefRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{10} } + +func (m *FindRemoteRootRefRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *FindRemoteRootRefRequest) GetRemote() string { + if m != nil { + return m.Remote + } + return "" +} + +type FindRemoteRootRefResponse struct { + Ref string `protobuf:"bytes,1,opt,name=ref" json:"ref,omitempty"` +} + +func (m *FindRemoteRootRefResponse) Reset() { *m = FindRemoteRootRefResponse{} } +func (m *FindRemoteRootRefResponse) String() string { return proto.CompactTextString(m) } +func (*FindRemoteRootRefResponse) ProtoMessage() {} +func (*FindRemoteRootRefResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{11} } + +func (m *FindRemoteRootRefResponse) GetRef() string { + if m != nil { + return m.Ref + } + return "" +} + +func init() { + proto.RegisterType((*AddRemoteRequest)(nil), "gitaly.AddRemoteRequest") + proto.RegisterType((*AddRemoteResponse)(nil), "gitaly.AddRemoteResponse") + proto.RegisterType((*RemoveRemoteRequest)(nil), "gitaly.RemoveRemoteRequest") + proto.RegisterType((*RemoveRemoteResponse)(nil), "gitaly.RemoveRemoteResponse") + proto.RegisterType((*FetchInternalRemoteRequest)(nil), "gitaly.FetchInternalRemoteRequest") + proto.RegisterType((*FetchInternalRemoteResponse)(nil), "gitaly.FetchInternalRemoteResponse") + proto.RegisterType((*UpdateRemoteMirrorRequest)(nil), "gitaly.UpdateRemoteMirrorRequest") + proto.RegisterType((*UpdateRemoteMirrorResponse)(nil), "gitaly.UpdateRemoteMirrorResponse") + proto.RegisterType((*FindRemoteRepositoryRequest)(nil), "gitaly.FindRemoteRepositoryRequest") + proto.RegisterType((*FindRemoteRepositoryResponse)(nil), "gitaly.FindRemoteRepositoryResponse") + proto.RegisterType((*FindRemoteRootRefRequest)(nil), "gitaly.FindRemoteRootRefRequest") + proto.RegisterType((*FindRemoteRootRefResponse)(nil), "gitaly.FindRemoteRootRefResponse") +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// Client API for RemoteService service + +type RemoteServiceClient interface { + AddRemote(ctx context.Context, in *AddRemoteRequest, opts ...grpc.CallOption) (*AddRemoteResponse, error) + FetchInternalRemote(ctx context.Context, in *FetchInternalRemoteRequest, opts ...grpc.CallOption) (*FetchInternalRemoteResponse, error) + RemoveRemote(ctx context.Context, in *RemoveRemoteRequest, opts ...grpc.CallOption) (*RemoveRemoteResponse, error) + UpdateRemoteMirror(ctx context.Context, opts ...grpc.CallOption) (RemoteService_UpdateRemoteMirrorClient, error) + FindRemoteRepository(ctx context.Context, in *FindRemoteRepositoryRequest, opts ...grpc.CallOption) (*FindRemoteRepositoryResponse, error) + FindRemoteRootRef(ctx context.Context, in *FindRemoteRootRefRequest, opts ...grpc.CallOption) (*FindRemoteRootRefResponse, error) +} + +type remoteServiceClient struct { + cc *grpc.ClientConn +} + +func NewRemoteServiceClient(cc *grpc.ClientConn) RemoteServiceClient { + return &remoteServiceClient{cc} +} + +func (c *remoteServiceClient) AddRemote(ctx context.Context, in *AddRemoteRequest, opts ...grpc.CallOption) (*AddRemoteResponse, error) { + out := new(AddRemoteResponse) + err := grpc.Invoke(ctx, "/gitaly.RemoteService/AddRemote", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *remoteServiceClient) FetchInternalRemote(ctx context.Context, in *FetchInternalRemoteRequest, opts ...grpc.CallOption) (*FetchInternalRemoteResponse, error) { + out := new(FetchInternalRemoteResponse) + err := grpc.Invoke(ctx, "/gitaly.RemoteService/FetchInternalRemote", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *remoteServiceClient) RemoveRemote(ctx context.Context, in *RemoveRemoteRequest, opts ...grpc.CallOption) (*RemoveRemoteResponse, error) { + out := new(RemoveRemoteResponse) + err := grpc.Invoke(ctx, "/gitaly.RemoteService/RemoveRemote", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *remoteServiceClient) UpdateRemoteMirror(ctx context.Context, opts ...grpc.CallOption) (RemoteService_UpdateRemoteMirrorClient, error) { + stream, err := grpc.NewClientStream(ctx, &_RemoteService_serviceDesc.Streams[0], c.cc, "/gitaly.RemoteService/UpdateRemoteMirror", opts...) + if err != nil { + return nil, err + } + x := &remoteServiceUpdateRemoteMirrorClient{stream} + return x, nil +} + +type RemoteService_UpdateRemoteMirrorClient interface { + Send(*UpdateRemoteMirrorRequest) error + CloseAndRecv() (*UpdateRemoteMirrorResponse, error) + grpc.ClientStream +} + +type remoteServiceUpdateRemoteMirrorClient struct { + grpc.ClientStream +} + +func (x *remoteServiceUpdateRemoteMirrorClient) Send(m *UpdateRemoteMirrorRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *remoteServiceUpdateRemoteMirrorClient) CloseAndRecv() (*UpdateRemoteMirrorResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(UpdateRemoteMirrorResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *remoteServiceClient) FindRemoteRepository(ctx context.Context, in *FindRemoteRepositoryRequest, opts ...grpc.CallOption) (*FindRemoteRepositoryResponse, error) { + out := new(FindRemoteRepositoryResponse) + err := grpc.Invoke(ctx, "/gitaly.RemoteService/FindRemoteRepository", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *remoteServiceClient) FindRemoteRootRef(ctx context.Context, in *FindRemoteRootRefRequest, opts ...grpc.CallOption) (*FindRemoteRootRefResponse, error) { + out := new(FindRemoteRootRefResponse) + err := grpc.Invoke(ctx, "/gitaly.RemoteService/FindRemoteRootRef", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for RemoteService service + +type RemoteServiceServer interface { + AddRemote(context.Context, *AddRemoteRequest) (*AddRemoteResponse, error) + FetchInternalRemote(context.Context, *FetchInternalRemoteRequest) (*FetchInternalRemoteResponse, error) + RemoveRemote(context.Context, *RemoveRemoteRequest) (*RemoveRemoteResponse, error) + UpdateRemoteMirror(RemoteService_UpdateRemoteMirrorServer) error + FindRemoteRepository(context.Context, *FindRemoteRepositoryRequest) (*FindRemoteRepositoryResponse, error) + FindRemoteRootRef(context.Context, *FindRemoteRootRefRequest) (*FindRemoteRootRefResponse, error) +} + +func RegisterRemoteServiceServer(s *grpc.Server, srv RemoteServiceServer) { + s.RegisterService(&_RemoteService_serviceDesc, srv) +} + +func _RemoteService_AddRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddRemoteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RemoteServiceServer).AddRemote(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RemoteService/AddRemote", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RemoteServiceServer).AddRemote(ctx, req.(*AddRemoteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RemoteService_FetchInternalRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FetchInternalRemoteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RemoteServiceServer).FetchInternalRemote(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RemoteService/FetchInternalRemote", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RemoteServiceServer).FetchInternalRemote(ctx, req.(*FetchInternalRemoteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RemoteService_RemoveRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveRemoteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RemoteServiceServer).RemoveRemote(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RemoteService/RemoveRemote", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RemoteServiceServer).RemoveRemote(ctx, req.(*RemoveRemoteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RemoteService_UpdateRemoteMirror_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(RemoteServiceServer).UpdateRemoteMirror(&remoteServiceUpdateRemoteMirrorServer{stream}) +} + +type RemoteService_UpdateRemoteMirrorServer interface { + SendAndClose(*UpdateRemoteMirrorResponse) error + Recv() (*UpdateRemoteMirrorRequest, error) + grpc.ServerStream +} + +type remoteServiceUpdateRemoteMirrorServer struct { + grpc.ServerStream +} + +func (x *remoteServiceUpdateRemoteMirrorServer) SendAndClose(m *UpdateRemoteMirrorResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *remoteServiceUpdateRemoteMirrorServer) Recv() (*UpdateRemoteMirrorRequest, error) { + m := new(UpdateRemoteMirrorRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _RemoteService_FindRemoteRepository_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindRemoteRepositoryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RemoteServiceServer).FindRemoteRepository(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RemoteService/FindRemoteRepository", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RemoteServiceServer).FindRemoteRepository(ctx, req.(*FindRemoteRepositoryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RemoteService_FindRemoteRootRef_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindRemoteRootRefRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RemoteServiceServer).FindRemoteRootRef(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RemoteService/FindRemoteRootRef", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RemoteServiceServer).FindRemoteRootRef(ctx, req.(*FindRemoteRootRefRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _RemoteService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.RemoteService", + HandlerType: (*RemoteServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "AddRemote", + Handler: _RemoteService_AddRemote_Handler, + }, + { + MethodName: "FetchInternalRemote", + Handler: _RemoteService_FetchInternalRemote_Handler, + }, + { + MethodName: "RemoveRemote", + Handler: _RemoteService_RemoveRemote_Handler, + }, + { + MethodName: "FindRemoteRepository", + Handler: _RemoteService_FindRemoteRepository_Handler, + }, + { + MethodName: "FindRemoteRootRef", + Handler: _RemoteService_FindRemoteRootRef_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "UpdateRemoteMirror", + Handler: _RemoteService_UpdateRemoteMirror_Handler, + ClientStreams: true, + }, + }, + Metadata: "remote.proto", +} + +func init() { proto.RegisterFile("remote.proto", fileDescriptor10) } + +var fileDescriptor10 = []byte{ + // 574 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0x4d, 0x6f, 0xd3, 0x30, + 0x18, 0x26, 0x4b, 0xd7, 0xb5, 0xef, 0x3a, 0xd4, 0xba, 0xd5, 0x48, 0xb3, 0x4a, 0x74, 0x06, 0xa4, + 0x5e, 0xe8, 0xa1, 0x7c, 0x5c, 0x11, 0x3b, 0x20, 0x60, 0x1a, 0x07, 0x23, 0x2e, 0x48, 0x28, 0x64, + 0xed, 0x9b, 0x25, 0x5a, 0x1b, 0x17, 0xdb, 0x1d, 0xf4, 0x67, 0xf0, 0x1f, 0x38, 0xf0, 0x9b, 0xf8, + 0x35, 0xc8, 0x89, 0x93, 0xa6, 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d8, 0x02, 0x03, 0xc3, 0x48, 0x2f, 0x47, 0x3f, 0x2a, 0x70, 0x94, 0xe6, 0xbe, 0x47, + 0x71, 0x13, 0x8d, 0x91, 0x9c, 0x41, 0x3d, 0x7f, 0x81, 0xc4, 0xc9, 0xa6, 0xf8, 0xf3, 0xf3, 0xe1, + 0x76, 0x4b, 0x22, 0x46, 0xd9, 0x3b, 0xe4, 0x33, 0xb4, 0x4b, 0xdc, 0x48, 0x68, 0x56, 0xb3, 0xfd, + 0xf5, 0xb8, 0x0f, 0x76, 0xe6, 0xe4, 0x27, 0x9c, 0x43, 0xa3, 0xf8, 0x66, 0xc9, 0xc9, 0x4a, 0xae, + 0x8d, 0x0f, 0x85, 0xdb, 0x2b, 0x0f, 0xe6, 0xcd, 0x3c, 0x20, 0x9b, 0x46, 0x21, 0xa7, 0x59, 0xd5, + 0xd6, 0x07, 0xe2, 0xd2, 0x5d, 0x29, 0x59, 0xfb, 0x81, 0x45, 0xc6, 0xd0, 0x29, 0x33, 0x0d, 0x59, + 0x91, 0xdd, 0xee, 0x44, 0xf7, 0xe1, 0xee, 0xa4, 0x9c, 0xc5, 0x47, 0x68, 0x6d, 0xdc, 0x3c, 0xe9, + 0x97, 0x14, 0xaf, 0x99, 0xcf, 0x3d, 0xdd, 0x91, 0x91, 0xf5, 0xbe, 0xac, 0x26, 0x3f, 0x92, 0x27, + 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x29, 0x20, 0x7c, 0x92, 0x6e, 0x06, 0x00, 0x00, +} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/repository-service.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/repository-service.pb.go new file mode 100644 index 0000000..8ca6b01 --- /dev/null +++ b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/repository-service.pb.go @@ -0,0 +1,3271 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: repository-service.proto + +package gitalypb + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +type GetArchiveRequest_Format int32 + +const ( + GetArchiveRequest_ZIP GetArchiveRequest_Format = 0 + GetArchiveRequest_TAR GetArchiveRequest_Format = 1 + GetArchiveRequest_TAR_GZ GetArchiveRequest_Format = 2 + GetArchiveRequest_TAR_BZ2 GetArchiveRequest_Format = 3 +) + +var GetArchiveRequest_Format_name = map[int32]string{ + 0: "ZIP", + 1: "TAR", + 2: "TAR_GZ", + 3: "TAR_BZ2", +} +var GetArchiveRequest_Format_value = map[string]int32{ + "ZIP": 0, + "TAR": 1, + "TAR_GZ": 2, + "TAR_BZ2": 3, +} + +func (x GetArchiveRequest_Format) String() string { + return proto.EnumName(GetArchiveRequest_Format_name, int32(x)) +} +func (GetArchiveRequest_Format) EnumDescriptor() ([]byte, []int) { + return fileDescriptor11, []int{18, 0} +} + +type GetRawChangesResponse_RawChange_Operation int32 + +const ( + GetRawChangesResponse_RawChange_UNKNOWN GetRawChangesResponse_RawChange_Operation = 0 + GetRawChangesResponse_RawChange_ADDED GetRawChangesResponse_RawChange_Operation = 1 + GetRawChangesResponse_RawChange_COPIED GetRawChangesResponse_RawChange_Operation = 2 + GetRawChangesResponse_RawChange_DELETED GetRawChangesResponse_RawChange_Operation = 3 + GetRawChangesResponse_RawChange_MODIFIED GetRawChangesResponse_RawChange_Operation = 4 + GetRawChangesResponse_RawChange_RENAMED GetRawChangesResponse_RawChange_Operation = 5 + GetRawChangesResponse_RawChange_TYPE_CHANGED GetRawChangesResponse_RawChange_Operation = 6 +) + +var GetRawChangesResponse_RawChange_Operation_name = map[int32]string{ + 0: "UNKNOWN", + 1: "ADDED", + 2: "COPIED", + 3: "DELETED", + 4: "MODIFIED", + 5: "RENAMED", + 6: "TYPE_CHANGED", +} +var GetRawChangesResponse_RawChange_Operation_value = map[string]int32{ + "UNKNOWN": 0, + "ADDED": 1, + "COPIED": 2, + "DELETED": 3, + "MODIFIED": 4, + "RENAMED": 5, + "TYPE_CHANGED": 6, +} + +func (x GetRawChangesResponse_RawChange_Operation) String() string { + return proto.EnumName(GetRawChangesResponse_RawChange_Operation_name, int32(x)) +} +func (GetRawChangesResponse_RawChange_Operation) EnumDescriptor() ([]byte, []int) { + return fileDescriptor11, []int{63, 0, 0} +} + +type RepositoryExistsRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` +} + +func (m *RepositoryExistsRequest) Reset() { *m = RepositoryExistsRequest{} } +func (m *RepositoryExistsRequest) String() string { return proto.CompactTextString(m) } +func (*RepositoryExistsRequest) ProtoMessage() {} +func (*RepositoryExistsRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{0} } + +func (m *RepositoryExistsRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +type RepositoryExistsResponse struct { + Exists bool `protobuf:"varint,1,opt,name=exists" json:"exists,omitempty"` +} + +func (m *RepositoryExistsResponse) Reset() { *m = RepositoryExistsResponse{} } +func (m *RepositoryExistsResponse) String() string { return proto.CompactTextString(m) } +func (*RepositoryExistsResponse) ProtoMessage() {} +func (*RepositoryExistsResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{1} } + +func (m *RepositoryExistsResponse) GetExists() bool { + if m != nil { + return m.Exists + } + return false +} + +type RepackIncrementalRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` +} + +func (m *RepackIncrementalRequest) Reset() { *m = RepackIncrementalRequest{} } +func (m *RepackIncrementalRequest) String() string { return proto.CompactTextString(m) } +func (*RepackIncrementalRequest) ProtoMessage() {} +func (*RepackIncrementalRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{2} } + +func (m *RepackIncrementalRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +type RepackIncrementalResponse struct { +} + +func (m *RepackIncrementalResponse) Reset() { *m = RepackIncrementalResponse{} } +func (m *RepackIncrementalResponse) String() string { return proto.CompactTextString(m) } +func (*RepackIncrementalResponse) ProtoMessage() {} +func (*RepackIncrementalResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{3} } + +type RepackFullRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + CreateBitmap bool `protobuf:"varint,2,opt,name=create_bitmap,json=createBitmap" json:"create_bitmap,omitempty"` +} + +func (m *RepackFullRequest) Reset() { *m = RepackFullRequest{} } +func (m *RepackFullRequest) String() string { return proto.CompactTextString(m) } +func (*RepackFullRequest) ProtoMessage() {} +func (*RepackFullRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{4} } + +func (m *RepackFullRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *RepackFullRequest) GetCreateBitmap() bool { + if m != nil { + return m.CreateBitmap + } + return false +} + +type RepackFullResponse struct { +} + +func (m *RepackFullResponse) Reset() { *m = RepackFullResponse{} } +func (m *RepackFullResponse) String() string { return proto.CompactTextString(m) } +func (*RepackFullResponse) ProtoMessage() {} +func (*RepackFullResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{5} } + +type GarbageCollectRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + CreateBitmap bool `protobuf:"varint,2,opt,name=create_bitmap,json=createBitmap" json:"create_bitmap,omitempty"` +} + +func (m *GarbageCollectRequest) Reset() { *m = GarbageCollectRequest{} } +func (m *GarbageCollectRequest) String() string { return proto.CompactTextString(m) } +func (*GarbageCollectRequest) ProtoMessage() {} +func (*GarbageCollectRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{6} } + +func (m *GarbageCollectRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *GarbageCollectRequest) GetCreateBitmap() bool { + if m != nil { + return m.CreateBitmap + } + return false +} + +type GarbageCollectResponse struct { +} + +func (m *GarbageCollectResponse) Reset() { *m = GarbageCollectResponse{} } +func (m *GarbageCollectResponse) String() string { return proto.CompactTextString(m) } +func (*GarbageCollectResponse) ProtoMessage() {} +func (*GarbageCollectResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{7} } + +type CleanupRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` +} + +func (m *CleanupRequest) Reset() { *m = CleanupRequest{} } +func (m *CleanupRequest) String() string { return proto.CompactTextString(m) } +func (*CleanupRequest) ProtoMessage() {} +func (*CleanupRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{8} } + +func (m *CleanupRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +type CleanupResponse struct { +} + +func (m *CleanupResponse) Reset() { *m = CleanupResponse{} } +func (m *CleanupResponse) String() string { return proto.CompactTextString(m) } +func (*CleanupResponse) ProtoMessage() {} +func (*CleanupResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{9} } + +type RepositorySizeRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` +} + +func (m *RepositorySizeRequest) Reset() { *m = RepositorySizeRequest{} } +func (m *RepositorySizeRequest) String() string { return proto.CompactTextString(m) } +func (*RepositorySizeRequest) ProtoMessage() {} +func (*RepositorySizeRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{10} } + +func (m *RepositorySizeRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +type RepositorySizeResponse struct { + // Repository size in kilobytes + Size int64 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"` +} + +func (m *RepositorySizeResponse) Reset() { *m = RepositorySizeResponse{} } +func (m *RepositorySizeResponse) String() string { return proto.CompactTextString(m) } +func (*RepositorySizeResponse) ProtoMessage() {} +func (*RepositorySizeResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{11} } + +func (m *RepositorySizeResponse) GetSize() int64 { + if m != nil { + return m.Size + } + return 0 +} + +type ApplyGitattributesRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` +} + +func (m *ApplyGitattributesRequest) Reset() { *m = ApplyGitattributesRequest{} } +func (m *ApplyGitattributesRequest) String() string { return proto.CompactTextString(m) } +func (*ApplyGitattributesRequest) ProtoMessage() {} +func (*ApplyGitattributesRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{12} } + +func (m *ApplyGitattributesRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *ApplyGitattributesRequest) GetRevision() []byte { + if m != nil { + return m.Revision + } + return nil +} + +type ApplyGitattributesResponse struct { +} + +func (m *ApplyGitattributesResponse) Reset() { *m = ApplyGitattributesResponse{} } +func (m *ApplyGitattributesResponse) String() string { return proto.CompactTextString(m) } +func (*ApplyGitattributesResponse) ProtoMessage() {} +func (*ApplyGitattributesResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{13} } + +type FetchRemoteRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Remote string `protobuf:"bytes,2,opt,name=remote" json:"remote,omitempty"` + Force bool `protobuf:"varint,3,opt,name=force" json:"force,omitempty"` + NoTags bool `protobuf:"varint,4,opt,name=no_tags,json=noTags" json:"no_tags,omitempty"` + Timeout int32 `protobuf:"varint,5,opt,name=timeout" json:"timeout,omitempty"` + SshKey string `protobuf:"bytes,6,opt,name=ssh_key,json=sshKey" json:"ssh_key,omitempty"` + KnownHosts string `protobuf:"bytes,7,opt,name=known_hosts,json=knownHosts" json:"known_hosts,omitempty"` + NoPrune bool `protobuf:"varint,9,opt,name=no_prune,json=noPrune" json:"no_prune,omitempty"` +} + +func (m *FetchRemoteRequest) Reset() { *m = FetchRemoteRequest{} } +func (m *FetchRemoteRequest) String() string { return proto.CompactTextString(m) } +func (*FetchRemoteRequest) ProtoMessage() {} +func (*FetchRemoteRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{14} } + +func (m *FetchRemoteRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *FetchRemoteRequest) GetRemote() string { + if m != nil { + return m.Remote + } + return "" +} + +func (m *FetchRemoteRequest) GetForce() bool { + if m != nil { + return m.Force + } + return false +} + +func (m *FetchRemoteRequest) GetNoTags() bool { + if m != nil { + return m.NoTags + } + return false +} + +func (m *FetchRemoteRequest) GetTimeout() int32 { + if m != nil { + return m.Timeout + } + return 0 +} + +func (m *FetchRemoteRequest) GetSshKey() string { + if m != nil { + return m.SshKey + } + return "" +} + +func (m *FetchRemoteRequest) GetKnownHosts() string { + if m != nil { + return m.KnownHosts + } + return "" +} + +func (m *FetchRemoteRequest) GetNoPrune() bool { + if m != nil { + return m.NoPrune + } + return false +} + +type FetchRemoteResponse struct { +} + +func (m *FetchRemoteResponse) Reset() { *m = FetchRemoteResponse{} } +func (m *FetchRemoteResponse) String() string { return proto.CompactTextString(m) } +func (*FetchRemoteResponse) ProtoMessage() {} +func (*FetchRemoteResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{15} } + +type CreateRepositoryRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` +} + +func (m *CreateRepositoryRequest) Reset() { *m = CreateRepositoryRequest{} } +func (m *CreateRepositoryRequest) String() string { return proto.CompactTextString(m) } +func (*CreateRepositoryRequest) ProtoMessage() {} +func (*CreateRepositoryRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{16} } + +func (m *CreateRepositoryRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +type CreateRepositoryResponse struct { +} + +func (m *CreateRepositoryResponse) Reset() { *m = CreateRepositoryResponse{} } +func (m *CreateRepositoryResponse) String() string { return proto.CompactTextString(m) } +func (*CreateRepositoryResponse) ProtoMessage() {} +func (*CreateRepositoryResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{17} } + +type GetArchiveRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` + Prefix string `protobuf:"bytes,3,opt,name=prefix" json:"prefix,omitempty"` + Format GetArchiveRequest_Format `protobuf:"varint,4,opt,name=format,enum=gitaly.GetArchiveRequest_Format" json:"format,omitempty"` +} + +func (m *GetArchiveRequest) Reset() { *m = GetArchiveRequest{} } +func (m *GetArchiveRequest) String() string { return proto.CompactTextString(m) } +func (*GetArchiveRequest) ProtoMessage() {} +func (*GetArchiveRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{18} } + +func (m *GetArchiveRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *GetArchiveRequest) GetCommitId() string { + if m != nil { + return m.CommitId + } + return "" +} + +func (m *GetArchiveRequest) GetPrefix() string { + if m != nil { + return m.Prefix + } + return "" +} + +func (m *GetArchiveRequest) GetFormat() GetArchiveRequest_Format { + if m != nil { + return m.Format + } + return GetArchiveRequest_ZIP +} + +type GetArchiveResponse struct { + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` +} + +func (m *GetArchiveResponse) Reset() { *m = GetArchiveResponse{} } +func (m *GetArchiveResponse) String() string { return proto.CompactTextString(m) } +func (*GetArchiveResponse) ProtoMessage() {} +func (*GetArchiveResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{19} } + +func (m *GetArchiveResponse) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +type HasLocalBranchesRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` +} + +func (m *HasLocalBranchesRequest) Reset() { *m = HasLocalBranchesRequest{} } +func (m *HasLocalBranchesRequest) String() string { return proto.CompactTextString(m) } +func (*HasLocalBranchesRequest) ProtoMessage() {} +func (*HasLocalBranchesRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{20} } + +func (m *HasLocalBranchesRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +type HasLocalBranchesResponse struct { + Value bool `protobuf:"varint,1,opt,name=value" json:"value,omitempty"` +} + +func (m *HasLocalBranchesResponse) Reset() { *m = HasLocalBranchesResponse{} } +func (m *HasLocalBranchesResponse) String() string { return proto.CompactTextString(m) } +func (*HasLocalBranchesResponse) ProtoMessage() {} +func (*HasLocalBranchesResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{21} } + +func (m *HasLocalBranchesResponse) GetValue() bool { + if m != nil { + return m.Value + } + return false +} + +type FetchSourceBranchRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + SourceRepository *Repository `protobuf:"bytes,2,opt,name=source_repository,json=sourceRepository" json:"source_repository,omitempty"` + SourceBranch []byte `protobuf:"bytes,3,opt,name=source_branch,json=sourceBranch,proto3" json:"source_branch,omitempty"` + TargetRef []byte `protobuf:"bytes,4,opt,name=target_ref,json=targetRef,proto3" json:"target_ref,omitempty"` +} + +func (m *FetchSourceBranchRequest) Reset() { *m = FetchSourceBranchRequest{} } +func (m *FetchSourceBranchRequest) String() string { return proto.CompactTextString(m) } +func (*FetchSourceBranchRequest) ProtoMessage() {} +func (*FetchSourceBranchRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{22} } + +func (m *FetchSourceBranchRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *FetchSourceBranchRequest) GetSourceRepository() *Repository { + if m != nil { + return m.SourceRepository + } + return nil +} + +func (m *FetchSourceBranchRequest) GetSourceBranch() []byte { + if m != nil { + return m.SourceBranch + } + return nil +} + +func (m *FetchSourceBranchRequest) GetTargetRef() []byte { + if m != nil { + return m.TargetRef + } + return nil +} + +type FetchSourceBranchResponse struct { + Result bool `protobuf:"varint,1,opt,name=result" json:"result,omitempty"` +} + +func (m *FetchSourceBranchResponse) Reset() { *m = FetchSourceBranchResponse{} } +func (m *FetchSourceBranchResponse) String() string { return proto.CompactTextString(m) } +func (*FetchSourceBranchResponse) ProtoMessage() {} +func (*FetchSourceBranchResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{23} } + +func (m *FetchSourceBranchResponse) GetResult() bool { + if m != nil { + return m.Result + } + return false +} + +type FsckRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` +} + +func (m *FsckRequest) Reset() { *m = FsckRequest{} } +func (m *FsckRequest) String() string { return proto.CompactTextString(m) } +func (*FsckRequest) ProtoMessage() {} +func (*FsckRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{24} } + +func (m *FsckRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +type FsckResponse struct { + Error []byte `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *FsckResponse) Reset() { *m = FsckResponse{} } +func (m *FsckResponse) String() string { return proto.CompactTextString(m) } +func (*FsckResponse) ProtoMessage() {} +func (*FsckResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{25} } + +func (m *FsckResponse) GetError() []byte { + if m != nil { + return m.Error + } + return nil +} + +type WriteRefRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Ref []byte `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` + Revision []byte `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"` + OldRevision []byte `protobuf:"bytes,4,opt,name=old_revision,json=oldRevision,proto3" json:"old_revision,omitempty"` + Force bool `protobuf:"varint,5,opt,name=force" json:"force,omitempty"` +} + +func (m *WriteRefRequest) Reset() { *m = WriteRefRequest{} } +func (m *WriteRefRequest) String() string { return proto.CompactTextString(m) } +func (*WriteRefRequest) ProtoMessage() {} +func (*WriteRefRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{26} } + +func (m *WriteRefRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *WriteRefRequest) GetRef() []byte { + if m != nil { + return m.Ref + } + return nil +} + +func (m *WriteRefRequest) GetRevision() []byte { + if m != nil { + return m.Revision + } + return nil +} + +func (m *WriteRefRequest) GetOldRevision() []byte { + if m != nil { + return m.OldRevision + } + return nil +} + +func (m *WriteRefRequest) GetForce() bool { + if m != nil { + return m.Force + } + return false +} + +type WriteRefResponse struct { +} + +func (m *WriteRefResponse) Reset() { *m = WriteRefResponse{} } +func (m *WriteRefResponse) String() string { return proto.CompactTextString(m) } +func (*WriteRefResponse) ProtoMessage() {} +func (*WriteRefResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{27} } + +type FindMergeBaseRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + // We use a repeated field because rugged supports finding a base + // for more than 2 revisions, so if we needed that in the future we don't + // need to change the protocol. + Revisions [][]byte `protobuf:"bytes,2,rep,name=revisions,proto3" json:"revisions,omitempty"` +} + +func (m *FindMergeBaseRequest) Reset() { *m = FindMergeBaseRequest{} } +func (m *FindMergeBaseRequest) String() string { return proto.CompactTextString(m) } +func (*FindMergeBaseRequest) ProtoMessage() {} +func (*FindMergeBaseRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{28} } + +func (m *FindMergeBaseRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *FindMergeBaseRequest) GetRevisions() [][]byte { + if m != nil { + return m.Revisions + } + return nil +} + +type FindMergeBaseResponse struct { + Base string `protobuf:"bytes,1,opt,name=base" json:"base,omitempty"` +} + +func (m *FindMergeBaseResponse) Reset() { *m = FindMergeBaseResponse{} } +func (m *FindMergeBaseResponse) String() string { return proto.CompactTextString(m) } +func (*FindMergeBaseResponse) ProtoMessage() {} +func (*FindMergeBaseResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{29} } + +func (m *FindMergeBaseResponse) GetBase() string { + if m != nil { + return m.Base + } + return "" +} + +type CreateForkRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + SourceRepository *Repository `protobuf:"bytes,2,opt,name=source_repository,json=sourceRepository" json:"source_repository,omitempty"` +} + +func (m *CreateForkRequest) Reset() { *m = CreateForkRequest{} } +func (m *CreateForkRequest) String() string { return proto.CompactTextString(m) } +func (*CreateForkRequest) ProtoMessage() {} +func (*CreateForkRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{30} } + +func (m *CreateForkRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *CreateForkRequest) GetSourceRepository() *Repository { + if m != nil { + return m.SourceRepository + } + return nil +} + +type CreateForkResponse struct { +} + +func (m *CreateForkResponse) Reset() { *m = CreateForkResponse{} } +func (m *CreateForkResponse) String() string { return proto.CompactTextString(m) } +func (*CreateForkResponse) ProtoMessage() {} +func (*CreateForkResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{31} } + +type IsRebaseInProgressRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + RebaseId string `protobuf:"bytes,2,opt,name=rebase_id,json=rebaseId" json:"rebase_id,omitempty"` +} + +func (m *IsRebaseInProgressRequest) Reset() { *m = IsRebaseInProgressRequest{} } +func (m *IsRebaseInProgressRequest) String() string { return proto.CompactTextString(m) } +func (*IsRebaseInProgressRequest) ProtoMessage() {} +func (*IsRebaseInProgressRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{32} } + +func (m *IsRebaseInProgressRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *IsRebaseInProgressRequest) GetRebaseId() string { + if m != nil { + return m.RebaseId + } + return "" +} + +type IsRebaseInProgressResponse struct { + InProgress bool `protobuf:"varint,1,opt,name=in_progress,json=inProgress" json:"in_progress,omitempty"` +} + +func (m *IsRebaseInProgressResponse) Reset() { *m = IsRebaseInProgressResponse{} } +func (m *IsRebaseInProgressResponse) String() string { return proto.CompactTextString(m) } +func (*IsRebaseInProgressResponse) ProtoMessage() {} +func (*IsRebaseInProgressResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{33} } + +func (m *IsRebaseInProgressResponse) GetInProgress() bool { + if m != nil { + return m.InProgress + } + return false +} + +type IsSquashInProgressRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + SquashId string `protobuf:"bytes,2,opt,name=squash_id,json=squashId" json:"squash_id,omitempty"` +} + +func (m *IsSquashInProgressRequest) Reset() { *m = IsSquashInProgressRequest{} } +func (m *IsSquashInProgressRequest) String() string { return proto.CompactTextString(m) } +func (*IsSquashInProgressRequest) ProtoMessage() {} +func (*IsSquashInProgressRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{34} } + +func (m *IsSquashInProgressRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *IsSquashInProgressRequest) GetSquashId() string { + if m != nil { + return m.SquashId + } + return "" +} + +type IsSquashInProgressResponse struct { + InProgress bool `protobuf:"varint,1,opt,name=in_progress,json=inProgress" json:"in_progress,omitempty"` +} + +func (m *IsSquashInProgressResponse) Reset() { *m = IsSquashInProgressResponse{} } +func (m *IsSquashInProgressResponse) String() string { return proto.CompactTextString(m) } +func (*IsSquashInProgressResponse) ProtoMessage() {} +func (*IsSquashInProgressResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{35} } + +func (m *IsSquashInProgressResponse) GetInProgress() bool { + if m != nil { + return m.InProgress + } + return false +} + +type CreateRepositoryFromURLRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Url string `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"` +} + +func (m *CreateRepositoryFromURLRequest) Reset() { *m = CreateRepositoryFromURLRequest{} } +func (m *CreateRepositoryFromURLRequest) String() string { return proto.CompactTextString(m) } +func (*CreateRepositoryFromURLRequest) ProtoMessage() {} +func (*CreateRepositoryFromURLRequest) Descriptor() ([]byte, []int) { + return fileDescriptor11, []int{36} +} + +func (m *CreateRepositoryFromURLRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *CreateRepositoryFromURLRequest) GetUrl() string { + if m != nil { + return m.Url + } + return "" +} + +type CreateRepositoryFromURLResponse struct { +} + +func (m *CreateRepositoryFromURLResponse) Reset() { *m = CreateRepositoryFromURLResponse{} } +func (m *CreateRepositoryFromURLResponse) String() string { return proto.CompactTextString(m) } +func (*CreateRepositoryFromURLResponse) ProtoMessage() {} +func (*CreateRepositoryFromURLResponse) Descriptor() ([]byte, []int) { + return fileDescriptor11, []int{37} +} + +type CreateBundleRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` +} + +func (m *CreateBundleRequest) Reset() { *m = CreateBundleRequest{} } +func (m *CreateBundleRequest) String() string { return proto.CompactTextString(m) } +func (*CreateBundleRequest) ProtoMessage() {} +func (*CreateBundleRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{38} } + +func (m *CreateBundleRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +type CreateBundleResponse struct { + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` +} + +func (m *CreateBundleResponse) Reset() { *m = CreateBundleResponse{} } +func (m *CreateBundleResponse) String() string { return proto.CompactTextString(m) } +func (*CreateBundleResponse) ProtoMessage() {} +func (*CreateBundleResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{39} } + +func (m *CreateBundleResponse) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +type WriteConfigRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + FullPath string `protobuf:"bytes,2,opt,name=full_path,json=fullPath" json:"full_path,omitempty"` +} + +func (m *WriteConfigRequest) Reset() { *m = WriteConfigRequest{} } +func (m *WriteConfigRequest) String() string { return proto.CompactTextString(m) } +func (*WriteConfigRequest) ProtoMessage() {} +func (*WriteConfigRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{40} } + +func (m *WriteConfigRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *WriteConfigRequest) GetFullPath() string { + if m != nil { + return m.FullPath + } + return "" +} + +type WriteConfigResponse struct { + Error []byte `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *WriteConfigResponse) Reset() { *m = WriteConfigResponse{} } +func (m *WriteConfigResponse) String() string { return proto.CompactTextString(m) } +func (*WriteConfigResponse) ProtoMessage() {} +func (*WriteConfigResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{41} } + +func (m *WriteConfigResponse) GetError() []byte { + if m != nil { + return m.Error + } + return nil +} + +type SetConfigRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Entries []*SetConfigRequest_Entry `protobuf:"bytes,2,rep,name=entries" json:"entries,omitempty"` +} + +func (m *SetConfigRequest) Reset() { *m = SetConfigRequest{} } +func (m *SetConfigRequest) String() string { return proto.CompactTextString(m) } +func (*SetConfigRequest) ProtoMessage() {} +func (*SetConfigRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{42} } + +func (m *SetConfigRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *SetConfigRequest) GetEntries() []*SetConfigRequest_Entry { + if m != nil { + return m.Entries + } + return nil +} + +type SetConfigRequest_Entry struct { + Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` + // Types that are valid to be assigned to Value: + // *SetConfigRequest_Entry_ValueStr + // *SetConfigRequest_Entry_ValueInt32 + // *SetConfigRequest_Entry_ValueBool + Value isSetConfigRequest_Entry_Value `protobuf_oneof:"value"` +} + +func (m *SetConfigRequest_Entry) Reset() { *m = SetConfigRequest_Entry{} } +func (m *SetConfigRequest_Entry) String() string { return proto.CompactTextString(m) } +func (*SetConfigRequest_Entry) ProtoMessage() {} +func (*SetConfigRequest_Entry) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{42, 0} } + +type isSetConfigRequest_Entry_Value interface{ isSetConfigRequest_Entry_Value() } + +type SetConfigRequest_Entry_ValueStr struct { + ValueStr string `protobuf:"bytes,2,opt,name=value_str,json=valueStr,oneof"` +} +type SetConfigRequest_Entry_ValueInt32 struct { + ValueInt32 int32 `protobuf:"varint,3,opt,name=value_int32,json=valueInt32,oneof"` +} +type SetConfigRequest_Entry_ValueBool struct { + ValueBool bool `protobuf:"varint,4,opt,name=value_bool,json=valueBool,oneof"` +} + +func (*SetConfigRequest_Entry_ValueStr) isSetConfigRequest_Entry_Value() {} +func (*SetConfigRequest_Entry_ValueInt32) isSetConfigRequest_Entry_Value() {} +func (*SetConfigRequest_Entry_ValueBool) isSetConfigRequest_Entry_Value() {} + +func (m *SetConfigRequest_Entry) GetValue() isSetConfigRequest_Entry_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *SetConfigRequest_Entry) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *SetConfigRequest_Entry) GetValueStr() string { + if x, ok := m.GetValue().(*SetConfigRequest_Entry_ValueStr); ok { + return x.ValueStr + } + return "" +} + +func (m *SetConfigRequest_Entry) GetValueInt32() int32 { + if x, ok := m.GetValue().(*SetConfigRequest_Entry_ValueInt32); ok { + return x.ValueInt32 + } + return 0 +} + +func (m *SetConfigRequest_Entry) GetValueBool() bool { + if x, ok := m.GetValue().(*SetConfigRequest_Entry_ValueBool); ok { + return x.ValueBool + } + return false +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*SetConfigRequest_Entry) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _SetConfigRequest_Entry_OneofMarshaler, _SetConfigRequest_Entry_OneofUnmarshaler, _SetConfigRequest_Entry_OneofSizer, []interface{}{ + (*SetConfigRequest_Entry_ValueStr)(nil), + (*SetConfigRequest_Entry_ValueInt32)(nil), + (*SetConfigRequest_Entry_ValueBool)(nil), + } +} + +func _SetConfigRequest_Entry_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*SetConfigRequest_Entry) + // value + switch x := m.Value.(type) { + case *SetConfigRequest_Entry_ValueStr: + b.EncodeVarint(2<<3 | proto.WireBytes) + b.EncodeStringBytes(x.ValueStr) + case *SetConfigRequest_Entry_ValueInt32: + b.EncodeVarint(3<<3 | proto.WireVarint) + b.EncodeVarint(uint64(x.ValueInt32)) + case *SetConfigRequest_Entry_ValueBool: + t := uint64(0) + if x.ValueBool { + t = 1 + } + b.EncodeVarint(4<<3 | proto.WireVarint) + b.EncodeVarint(t) + case nil: + default: + return fmt.Errorf("SetConfigRequest_Entry.Value has unexpected type %T", x) + } + return nil +} + +func _SetConfigRequest_Entry_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*SetConfigRequest_Entry) + switch tag { + case 2: // value.value_str + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.Value = &SetConfigRequest_Entry_ValueStr{x} + return true, err + case 3: // value.value_int32 + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.Value = &SetConfigRequest_Entry_ValueInt32{int32(x)} + return true, err + case 4: // value.value_bool + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.Value = &SetConfigRequest_Entry_ValueBool{x != 0} + return true, err + default: + return false, nil + } +} + +func _SetConfigRequest_Entry_OneofSizer(msg proto.Message) (n int) { + m := msg.(*SetConfigRequest_Entry) + // value + switch x := m.Value.(type) { + case *SetConfigRequest_Entry_ValueStr: + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(len(x.ValueStr))) + n += len(x.ValueStr) + case *SetConfigRequest_Entry_ValueInt32: + n += proto.SizeVarint(3<<3 | proto.WireVarint) + n += proto.SizeVarint(uint64(x.ValueInt32)) + case *SetConfigRequest_Entry_ValueBool: + n += proto.SizeVarint(4<<3 | proto.WireVarint) + n += 1 + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +type SetConfigResponse struct { +} + +func (m *SetConfigResponse) Reset() { *m = SetConfigResponse{} } +func (m *SetConfigResponse) String() string { return proto.CompactTextString(m) } +func (*SetConfigResponse) ProtoMessage() {} +func (*SetConfigResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{43} } + +type DeleteConfigRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Keys []string `protobuf:"bytes,2,rep,name=keys" json:"keys,omitempty"` +} + +func (m *DeleteConfigRequest) Reset() { *m = DeleteConfigRequest{} } +func (m *DeleteConfigRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteConfigRequest) ProtoMessage() {} +func (*DeleteConfigRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{44} } + +func (m *DeleteConfigRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *DeleteConfigRequest) GetKeys() []string { + if m != nil { + return m.Keys + } + return nil +} + +type DeleteConfigResponse struct { +} + +func (m *DeleteConfigResponse) Reset() { *m = DeleteConfigResponse{} } +func (m *DeleteConfigResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteConfigResponse) ProtoMessage() {} +func (*DeleteConfigResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{45} } + +type RestoreCustomHooksRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` +} + +func (m *RestoreCustomHooksRequest) Reset() { *m = RestoreCustomHooksRequest{} } +func (m *RestoreCustomHooksRequest) String() string { return proto.CompactTextString(m) } +func (*RestoreCustomHooksRequest) ProtoMessage() {} +func (*RestoreCustomHooksRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{46} } + +func (m *RestoreCustomHooksRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *RestoreCustomHooksRequest) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +type RestoreCustomHooksResponse struct { +} + +func (m *RestoreCustomHooksResponse) Reset() { *m = RestoreCustomHooksResponse{} } +func (m *RestoreCustomHooksResponse) String() string { return proto.CompactTextString(m) } +func (*RestoreCustomHooksResponse) ProtoMessage() {} +func (*RestoreCustomHooksResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{47} } + +type BackupCustomHooksRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` +} + +func (m *BackupCustomHooksRequest) Reset() { *m = BackupCustomHooksRequest{} } +func (m *BackupCustomHooksRequest) String() string { return proto.CompactTextString(m) } +func (*BackupCustomHooksRequest) ProtoMessage() {} +func (*BackupCustomHooksRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{48} } + +func (m *BackupCustomHooksRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +type BackupCustomHooksResponse struct { + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` +} + +func (m *BackupCustomHooksResponse) Reset() { *m = BackupCustomHooksResponse{} } +func (m *BackupCustomHooksResponse) String() string { return proto.CompactTextString(m) } +func (*BackupCustomHooksResponse) ProtoMessage() {} +func (*BackupCustomHooksResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{49} } + +func (m *BackupCustomHooksResponse) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +type CreateRepositoryFromBundleRequest struct { + // Only available on the first message + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` +} + +func (m *CreateRepositoryFromBundleRequest) Reset() { *m = CreateRepositoryFromBundleRequest{} } +func (m *CreateRepositoryFromBundleRequest) String() string { return proto.CompactTextString(m) } +func (*CreateRepositoryFromBundleRequest) ProtoMessage() {} +func (*CreateRepositoryFromBundleRequest) Descriptor() ([]byte, []int) { + return fileDescriptor11, []int{50} +} + +func (m *CreateRepositoryFromBundleRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *CreateRepositoryFromBundleRequest) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +type CreateRepositoryFromBundleResponse struct { +} + +func (m *CreateRepositoryFromBundleResponse) Reset() { *m = CreateRepositoryFromBundleResponse{} } +func (m *CreateRepositoryFromBundleResponse) String() string { return proto.CompactTextString(m) } +func (*CreateRepositoryFromBundleResponse) ProtoMessage() {} +func (*CreateRepositoryFromBundleResponse) Descriptor() ([]byte, []int) { + return fileDescriptor11, []int{51} +} + +type FindLicenseRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` +} + +func (m *FindLicenseRequest) Reset() { *m = FindLicenseRequest{} } +func (m *FindLicenseRequest) String() string { return proto.CompactTextString(m) } +func (*FindLicenseRequest) ProtoMessage() {} +func (*FindLicenseRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{52} } + +func (m *FindLicenseRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +type FindLicenseResponse struct { + LicenseShortName string `protobuf:"bytes,1,opt,name=license_short_name,json=licenseShortName" json:"license_short_name,omitempty"` +} + +func (m *FindLicenseResponse) Reset() { *m = FindLicenseResponse{} } +func (m *FindLicenseResponse) String() string { return proto.CompactTextString(m) } +func (*FindLicenseResponse) ProtoMessage() {} +func (*FindLicenseResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{53} } + +func (m *FindLicenseResponse) GetLicenseShortName() string { + if m != nil { + return m.LicenseShortName + } + return "" +} + +type GetInfoAttributesRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` +} + +func (m *GetInfoAttributesRequest) Reset() { *m = GetInfoAttributesRequest{} } +func (m *GetInfoAttributesRequest) String() string { return proto.CompactTextString(m) } +func (*GetInfoAttributesRequest) ProtoMessage() {} +func (*GetInfoAttributesRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{54} } + +func (m *GetInfoAttributesRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +type GetInfoAttributesResponse struct { + Attributes []byte `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` +} + +func (m *GetInfoAttributesResponse) Reset() { *m = GetInfoAttributesResponse{} } +func (m *GetInfoAttributesResponse) String() string { return proto.CompactTextString(m) } +func (*GetInfoAttributesResponse) ProtoMessage() {} +func (*GetInfoAttributesResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{55} } + +func (m *GetInfoAttributesResponse) GetAttributes() []byte { + if m != nil { + return m.Attributes + } + return nil +} + +type CalculateChecksumRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` +} + +func (m *CalculateChecksumRequest) Reset() { *m = CalculateChecksumRequest{} } +func (m *CalculateChecksumRequest) String() string { return proto.CompactTextString(m) } +func (*CalculateChecksumRequest) ProtoMessage() {} +func (*CalculateChecksumRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{56} } + +func (m *CalculateChecksumRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +type CalculateChecksumResponse struct { + Checksum string `protobuf:"bytes,1,opt,name=checksum" json:"checksum,omitempty"` +} + +func (m *CalculateChecksumResponse) Reset() { *m = CalculateChecksumResponse{} } +func (m *CalculateChecksumResponse) String() string { return proto.CompactTextString(m) } +func (*CalculateChecksumResponse) ProtoMessage() {} +func (*CalculateChecksumResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{57} } + +func (m *CalculateChecksumResponse) GetChecksum() string { + if m != nil { + return m.Checksum + } + return "" +} + +type GetSnapshotRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` +} + +func (m *GetSnapshotRequest) Reset() { *m = GetSnapshotRequest{} } +func (m *GetSnapshotRequest) String() string { return proto.CompactTextString(m) } +func (*GetSnapshotRequest) ProtoMessage() {} +func (*GetSnapshotRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{58} } + +func (m *GetSnapshotRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +type GetSnapshotResponse struct { + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` +} + +func (m *GetSnapshotResponse) Reset() { *m = GetSnapshotResponse{} } +func (m *GetSnapshotResponse) String() string { return proto.CompactTextString(m) } +func (*GetSnapshotResponse) ProtoMessage() {} +func (*GetSnapshotResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{59} } + +func (m *GetSnapshotResponse) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +type CreateRepositoryFromSnapshotRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + HttpUrl string `protobuf:"bytes,2,opt,name=http_url,json=httpUrl" json:"http_url,omitempty"` + HttpAuth string `protobuf:"bytes,3,opt,name=http_auth,json=httpAuth" json:"http_auth,omitempty"` +} + +func (m *CreateRepositoryFromSnapshotRequest) Reset() { *m = CreateRepositoryFromSnapshotRequest{} } +func (m *CreateRepositoryFromSnapshotRequest) String() string { return proto.CompactTextString(m) } +func (*CreateRepositoryFromSnapshotRequest) ProtoMessage() {} +func (*CreateRepositoryFromSnapshotRequest) Descriptor() ([]byte, []int) { + return fileDescriptor11, []int{60} +} + +func (m *CreateRepositoryFromSnapshotRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *CreateRepositoryFromSnapshotRequest) GetHttpUrl() string { + if m != nil { + return m.HttpUrl + } + return "" +} + +func (m *CreateRepositoryFromSnapshotRequest) GetHttpAuth() string { + if m != nil { + return m.HttpAuth + } + return "" +} + +type CreateRepositoryFromSnapshotResponse struct { +} + +func (m *CreateRepositoryFromSnapshotResponse) Reset() { *m = CreateRepositoryFromSnapshotResponse{} } +func (m *CreateRepositoryFromSnapshotResponse) String() string { return proto.CompactTextString(m) } +func (*CreateRepositoryFromSnapshotResponse) ProtoMessage() {} +func (*CreateRepositoryFromSnapshotResponse) Descriptor() ([]byte, []int) { + return fileDescriptor11, []int{61} +} + +type GetRawChangesRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + FromRevision string `protobuf:"bytes,2,opt,name=from_revision,json=fromRevision" json:"from_revision,omitempty"` + ToRevision string `protobuf:"bytes,3,opt,name=to_revision,json=toRevision" json:"to_revision,omitempty"` +} + +func (m *GetRawChangesRequest) Reset() { *m = GetRawChangesRequest{} } +func (m *GetRawChangesRequest) String() string { return proto.CompactTextString(m) } +func (*GetRawChangesRequest) ProtoMessage() {} +func (*GetRawChangesRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{62} } + +func (m *GetRawChangesRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *GetRawChangesRequest) GetFromRevision() string { + if m != nil { + return m.FromRevision + } + return "" +} + +func (m *GetRawChangesRequest) GetToRevision() string { + if m != nil { + return m.ToRevision + } + return "" +} + +type GetRawChangesResponse struct { + RawChanges []*GetRawChangesResponse_RawChange `protobuf:"bytes,1,rep,name=raw_changes,json=rawChanges" json:"raw_changes,omitempty"` +} + +func (m *GetRawChangesResponse) Reset() { *m = GetRawChangesResponse{} } +func (m *GetRawChangesResponse) String() string { return proto.CompactTextString(m) } +func (*GetRawChangesResponse) ProtoMessage() {} +func (*GetRawChangesResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{63} } + +func (m *GetRawChangesResponse) GetRawChanges() []*GetRawChangesResponse_RawChange { + if m != nil { + return m.RawChanges + } + return nil +} + +type GetRawChangesResponse_RawChange struct { + BlobId string `protobuf:"bytes,1,opt,name=blob_id,json=blobId" json:"blob_id,omitempty"` + Size int64 `protobuf:"varint,2,opt,name=size" json:"size,omitempty"` + NewPath string `protobuf:"bytes,3,opt,name=new_path,json=newPath" json:"new_path,omitempty"` + OldPath string `protobuf:"bytes,4,opt,name=old_path,json=oldPath" json:"old_path,omitempty"` + Operation GetRawChangesResponse_RawChange_Operation `protobuf:"varint,5,opt,name=operation,enum=gitaly.GetRawChangesResponse_RawChange_Operation" json:"operation,omitempty"` + RawOperation string `protobuf:"bytes,6,opt,name=raw_operation,json=rawOperation" json:"raw_operation,omitempty"` + OldMode int32 `protobuf:"varint,7,opt,name=old_mode,json=oldMode" json:"old_mode,omitempty"` + NewMode int32 `protobuf:"varint,8,opt,name=new_mode,json=newMode" json:"new_mode,omitempty"` +} + +func (m *GetRawChangesResponse_RawChange) Reset() { *m = GetRawChangesResponse_RawChange{} } +func (m *GetRawChangesResponse_RawChange) String() string { return proto.CompactTextString(m) } +func (*GetRawChangesResponse_RawChange) ProtoMessage() {} +func (*GetRawChangesResponse_RawChange) Descriptor() ([]byte, []int) { + return fileDescriptor11, []int{63, 0} +} + +func (m *GetRawChangesResponse_RawChange) GetBlobId() string { + if m != nil { + return m.BlobId + } + return "" +} + +func (m *GetRawChangesResponse_RawChange) GetSize() int64 { + if m != nil { + return m.Size + } + return 0 +} + +func (m *GetRawChangesResponse_RawChange) GetNewPath() string { + if m != nil { + return m.NewPath + } + return "" +} + +func (m *GetRawChangesResponse_RawChange) GetOldPath() string { + if m != nil { + return m.OldPath + } + return "" +} + +func (m *GetRawChangesResponse_RawChange) GetOperation() GetRawChangesResponse_RawChange_Operation { + if m != nil { + return m.Operation + } + return GetRawChangesResponse_RawChange_UNKNOWN +} + +func (m *GetRawChangesResponse_RawChange) GetRawOperation() string { + if m != nil { + return m.RawOperation + } + return "" +} + +func (m *GetRawChangesResponse_RawChange) GetOldMode() int32 { + if m != nil { + return m.OldMode + } + return 0 +} + +func (m *GetRawChangesResponse_RawChange) GetNewMode() int32 { + if m != nil { + return m.NewMode + } + return 0 +} + +type SearchFilesByNameRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Query string `protobuf:"bytes,2,opt,name=query" json:"query,omitempty"` + Ref []byte `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"` +} + +func (m *SearchFilesByNameRequest) Reset() { *m = SearchFilesByNameRequest{} } +func (m *SearchFilesByNameRequest) String() string { return proto.CompactTextString(m) } +func (*SearchFilesByNameRequest) ProtoMessage() {} +func (*SearchFilesByNameRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{64} } + +func (m *SearchFilesByNameRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *SearchFilesByNameRequest) GetQuery() string { + if m != nil { + return m.Query + } + return "" +} + +func (m *SearchFilesByNameRequest) GetRef() []byte { + if m != nil { + return m.Ref + } + return nil +} + +type SearchFilesByNameResponse struct { + Files [][]byte `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"` +} + +func (m *SearchFilesByNameResponse) Reset() { *m = SearchFilesByNameResponse{} } +func (m *SearchFilesByNameResponse) String() string { return proto.CompactTextString(m) } +func (*SearchFilesByNameResponse) ProtoMessage() {} +func (*SearchFilesByNameResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{65} } + +func (m *SearchFilesByNameResponse) GetFiles() [][]byte { + if m != nil { + return m.Files + } + return nil +} + +type SearchFilesByContentRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Query string `protobuf:"bytes,2,opt,name=query" json:"query,omitempty"` + Ref []byte `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"` +} + +func (m *SearchFilesByContentRequest) Reset() { *m = SearchFilesByContentRequest{} } +func (m *SearchFilesByContentRequest) String() string { return proto.CompactTextString(m) } +func (*SearchFilesByContentRequest) ProtoMessage() {} +func (*SearchFilesByContentRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{66} } + +func (m *SearchFilesByContentRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *SearchFilesByContentRequest) GetQuery() string { + if m != nil { + return m.Query + } + return "" +} + +func (m *SearchFilesByContentRequest) GetRef() []byte { + if m != nil { + return m.Ref + } + return nil +} + +type SearchFilesByContentResponse struct { + Matches [][]byte `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"` +} + +func (m *SearchFilesByContentResponse) Reset() { *m = SearchFilesByContentResponse{} } +func (m *SearchFilesByContentResponse) String() string { return proto.CompactTextString(m) } +func (*SearchFilesByContentResponse) ProtoMessage() {} +func (*SearchFilesByContentResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{67} } + +func (m *SearchFilesByContentResponse) GetMatches() [][]byte { + if m != nil { + return m.Matches + } + return nil +} + +func init() { + proto.RegisterType((*RepositoryExistsRequest)(nil), "gitaly.RepositoryExistsRequest") + proto.RegisterType((*RepositoryExistsResponse)(nil), "gitaly.RepositoryExistsResponse") + proto.RegisterType((*RepackIncrementalRequest)(nil), "gitaly.RepackIncrementalRequest") + proto.RegisterType((*RepackIncrementalResponse)(nil), "gitaly.RepackIncrementalResponse") + proto.RegisterType((*RepackFullRequest)(nil), "gitaly.RepackFullRequest") + proto.RegisterType((*RepackFullResponse)(nil), "gitaly.RepackFullResponse") + proto.RegisterType((*GarbageCollectRequest)(nil), "gitaly.GarbageCollectRequest") + proto.RegisterType((*GarbageCollectResponse)(nil), "gitaly.GarbageCollectResponse") + proto.RegisterType((*CleanupRequest)(nil), "gitaly.CleanupRequest") + proto.RegisterType((*CleanupResponse)(nil), "gitaly.CleanupResponse") + proto.RegisterType((*RepositorySizeRequest)(nil), "gitaly.RepositorySizeRequest") + proto.RegisterType((*RepositorySizeResponse)(nil), "gitaly.RepositorySizeResponse") + proto.RegisterType((*ApplyGitattributesRequest)(nil), "gitaly.ApplyGitattributesRequest") + proto.RegisterType((*ApplyGitattributesResponse)(nil), "gitaly.ApplyGitattributesResponse") + proto.RegisterType((*FetchRemoteRequest)(nil), "gitaly.FetchRemoteRequest") + proto.RegisterType((*FetchRemoteResponse)(nil), "gitaly.FetchRemoteResponse") + proto.RegisterType((*CreateRepositoryRequest)(nil), "gitaly.CreateRepositoryRequest") + proto.RegisterType((*CreateRepositoryResponse)(nil), "gitaly.CreateRepositoryResponse") + proto.RegisterType((*GetArchiveRequest)(nil), "gitaly.GetArchiveRequest") + proto.RegisterType((*GetArchiveResponse)(nil), "gitaly.GetArchiveResponse") + proto.RegisterType((*HasLocalBranchesRequest)(nil), "gitaly.HasLocalBranchesRequest") + proto.RegisterType((*HasLocalBranchesResponse)(nil), "gitaly.HasLocalBranchesResponse") + proto.RegisterType((*FetchSourceBranchRequest)(nil), "gitaly.FetchSourceBranchRequest") + proto.RegisterType((*FetchSourceBranchResponse)(nil), "gitaly.FetchSourceBranchResponse") + proto.RegisterType((*FsckRequest)(nil), "gitaly.FsckRequest") + proto.RegisterType((*FsckResponse)(nil), "gitaly.FsckResponse") + proto.RegisterType((*WriteRefRequest)(nil), "gitaly.WriteRefRequest") + proto.RegisterType((*WriteRefResponse)(nil), "gitaly.WriteRefResponse") + proto.RegisterType((*FindMergeBaseRequest)(nil), "gitaly.FindMergeBaseRequest") + proto.RegisterType((*FindMergeBaseResponse)(nil), "gitaly.FindMergeBaseResponse") + proto.RegisterType((*CreateForkRequest)(nil), "gitaly.CreateForkRequest") + proto.RegisterType((*CreateForkResponse)(nil), "gitaly.CreateForkResponse") + proto.RegisterType((*IsRebaseInProgressRequest)(nil), "gitaly.IsRebaseInProgressRequest") + proto.RegisterType((*IsRebaseInProgressResponse)(nil), "gitaly.IsRebaseInProgressResponse") + proto.RegisterType((*IsSquashInProgressRequest)(nil), "gitaly.IsSquashInProgressRequest") + proto.RegisterType((*IsSquashInProgressResponse)(nil), "gitaly.IsSquashInProgressResponse") + proto.RegisterType((*CreateRepositoryFromURLRequest)(nil), "gitaly.CreateRepositoryFromURLRequest") + proto.RegisterType((*CreateRepositoryFromURLResponse)(nil), "gitaly.CreateRepositoryFromURLResponse") + proto.RegisterType((*CreateBundleRequest)(nil), "gitaly.CreateBundleRequest") + proto.RegisterType((*CreateBundleResponse)(nil), "gitaly.CreateBundleResponse") + proto.RegisterType((*WriteConfigRequest)(nil), "gitaly.WriteConfigRequest") + proto.RegisterType((*WriteConfigResponse)(nil), "gitaly.WriteConfigResponse") + proto.RegisterType((*SetConfigRequest)(nil), "gitaly.SetConfigRequest") + proto.RegisterType((*SetConfigRequest_Entry)(nil), "gitaly.SetConfigRequest.Entry") + proto.RegisterType((*SetConfigResponse)(nil), "gitaly.SetConfigResponse") + proto.RegisterType((*DeleteConfigRequest)(nil), "gitaly.DeleteConfigRequest") + proto.RegisterType((*DeleteConfigResponse)(nil), "gitaly.DeleteConfigResponse") + proto.RegisterType((*RestoreCustomHooksRequest)(nil), "gitaly.RestoreCustomHooksRequest") + proto.RegisterType((*RestoreCustomHooksResponse)(nil), "gitaly.RestoreCustomHooksResponse") + proto.RegisterType((*BackupCustomHooksRequest)(nil), "gitaly.BackupCustomHooksRequest") + proto.RegisterType((*BackupCustomHooksResponse)(nil), "gitaly.BackupCustomHooksResponse") + proto.RegisterType((*CreateRepositoryFromBundleRequest)(nil), "gitaly.CreateRepositoryFromBundleRequest") + proto.RegisterType((*CreateRepositoryFromBundleResponse)(nil), "gitaly.CreateRepositoryFromBundleResponse") + proto.RegisterType((*FindLicenseRequest)(nil), "gitaly.FindLicenseRequest") + proto.RegisterType((*FindLicenseResponse)(nil), "gitaly.FindLicenseResponse") + proto.RegisterType((*GetInfoAttributesRequest)(nil), "gitaly.GetInfoAttributesRequest") + proto.RegisterType((*GetInfoAttributesResponse)(nil), "gitaly.GetInfoAttributesResponse") + proto.RegisterType((*CalculateChecksumRequest)(nil), "gitaly.CalculateChecksumRequest") + proto.RegisterType((*CalculateChecksumResponse)(nil), "gitaly.CalculateChecksumResponse") + proto.RegisterType((*GetSnapshotRequest)(nil), "gitaly.GetSnapshotRequest") + proto.RegisterType((*GetSnapshotResponse)(nil), "gitaly.GetSnapshotResponse") + proto.RegisterType((*CreateRepositoryFromSnapshotRequest)(nil), "gitaly.CreateRepositoryFromSnapshotRequest") + proto.RegisterType((*CreateRepositoryFromSnapshotResponse)(nil), "gitaly.CreateRepositoryFromSnapshotResponse") + proto.RegisterType((*GetRawChangesRequest)(nil), "gitaly.GetRawChangesRequest") + proto.RegisterType((*GetRawChangesResponse)(nil), "gitaly.GetRawChangesResponse") + proto.RegisterType((*GetRawChangesResponse_RawChange)(nil), "gitaly.GetRawChangesResponse.RawChange") + proto.RegisterType((*SearchFilesByNameRequest)(nil), "gitaly.SearchFilesByNameRequest") + proto.RegisterType((*SearchFilesByNameResponse)(nil), "gitaly.SearchFilesByNameResponse") + proto.RegisterType((*SearchFilesByContentRequest)(nil), "gitaly.SearchFilesByContentRequest") + proto.RegisterType((*SearchFilesByContentResponse)(nil), "gitaly.SearchFilesByContentResponse") + proto.RegisterEnum("gitaly.GetArchiveRequest_Format", GetArchiveRequest_Format_name, GetArchiveRequest_Format_value) + proto.RegisterEnum("gitaly.GetRawChangesResponse_RawChange_Operation", GetRawChangesResponse_RawChange_Operation_name, GetRawChangesResponse_RawChange_Operation_value) +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// Client API for RepositoryService service + +type RepositoryServiceClient interface { + RepositoryExists(ctx context.Context, in *RepositoryExistsRequest, opts ...grpc.CallOption) (*RepositoryExistsResponse, error) + RepackIncremental(ctx context.Context, in *RepackIncrementalRequest, opts ...grpc.CallOption) (*RepackIncrementalResponse, error) + RepackFull(ctx context.Context, in *RepackFullRequest, opts ...grpc.CallOption) (*RepackFullResponse, error) + GarbageCollect(ctx context.Context, in *GarbageCollectRequest, opts ...grpc.CallOption) (*GarbageCollectResponse, error) + RepositorySize(ctx context.Context, in *RepositorySizeRequest, opts ...grpc.CallOption) (*RepositorySizeResponse, error) + ApplyGitattributes(ctx context.Context, in *ApplyGitattributesRequest, opts ...grpc.CallOption) (*ApplyGitattributesResponse, error) + FetchRemote(ctx context.Context, in *FetchRemoteRequest, opts ...grpc.CallOption) (*FetchRemoteResponse, error) + CreateRepository(ctx context.Context, in *CreateRepositoryRequest, opts ...grpc.CallOption) (*CreateRepositoryResponse, error) + GetArchive(ctx context.Context, in *GetArchiveRequest, opts ...grpc.CallOption) (RepositoryService_GetArchiveClient, error) + HasLocalBranches(ctx context.Context, in *HasLocalBranchesRequest, opts ...grpc.CallOption) (*HasLocalBranchesResponse, error) + FetchSourceBranch(ctx context.Context, in *FetchSourceBranchRequest, opts ...grpc.CallOption) (*FetchSourceBranchResponse, error) + Fsck(ctx context.Context, in *FsckRequest, opts ...grpc.CallOption) (*FsckResponse, error) + WriteRef(ctx context.Context, in *WriteRefRequest, opts ...grpc.CallOption) (*WriteRefResponse, error) + FindMergeBase(ctx context.Context, in *FindMergeBaseRequest, opts ...grpc.CallOption) (*FindMergeBaseResponse, error) + CreateFork(ctx context.Context, in *CreateForkRequest, opts ...grpc.CallOption) (*CreateForkResponse, error) + IsRebaseInProgress(ctx context.Context, in *IsRebaseInProgressRequest, opts ...grpc.CallOption) (*IsRebaseInProgressResponse, error) + IsSquashInProgress(ctx context.Context, in *IsSquashInProgressRequest, opts ...grpc.CallOption) (*IsSquashInProgressResponse, error) + CreateRepositoryFromURL(ctx context.Context, in *CreateRepositoryFromURLRequest, opts ...grpc.CallOption) (*CreateRepositoryFromURLResponse, error) + CreateBundle(ctx context.Context, in *CreateBundleRequest, opts ...grpc.CallOption) (RepositoryService_CreateBundleClient, error) + CreateRepositoryFromBundle(ctx context.Context, opts ...grpc.CallOption) (RepositoryService_CreateRepositoryFromBundleClient, error) + WriteConfig(ctx context.Context, in *WriteConfigRequest, opts ...grpc.CallOption) (*WriteConfigResponse, error) + SetConfig(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*SetConfigResponse, error) + DeleteConfig(ctx context.Context, in *DeleteConfigRequest, opts ...grpc.CallOption) (*DeleteConfigResponse, error) + FindLicense(ctx context.Context, in *FindLicenseRequest, opts ...grpc.CallOption) (*FindLicenseResponse, error) + GetInfoAttributes(ctx context.Context, in *GetInfoAttributesRequest, opts ...grpc.CallOption) (RepositoryService_GetInfoAttributesClient, error) + CalculateChecksum(ctx context.Context, in *CalculateChecksumRequest, opts ...grpc.CallOption) (*CalculateChecksumResponse, error) + Cleanup(ctx context.Context, in *CleanupRequest, opts ...grpc.CallOption) (*CleanupResponse, error) + GetSnapshot(ctx context.Context, in *GetSnapshotRequest, opts ...grpc.CallOption) (RepositoryService_GetSnapshotClient, error) + CreateRepositoryFromSnapshot(ctx context.Context, in *CreateRepositoryFromSnapshotRequest, opts ...grpc.CallOption) (*CreateRepositoryFromSnapshotResponse, error) + GetRawChanges(ctx context.Context, in *GetRawChangesRequest, opts ...grpc.CallOption) (RepositoryService_GetRawChangesClient, error) + SearchFilesByContent(ctx context.Context, in *SearchFilesByContentRequest, opts ...grpc.CallOption) (RepositoryService_SearchFilesByContentClient, error) + SearchFilesByName(ctx context.Context, in *SearchFilesByNameRequest, opts ...grpc.CallOption) (RepositoryService_SearchFilesByNameClient, error) + RestoreCustomHooks(ctx context.Context, opts ...grpc.CallOption) (RepositoryService_RestoreCustomHooksClient, error) + BackupCustomHooks(ctx context.Context, in *BackupCustomHooksRequest, opts ...grpc.CallOption) (RepositoryService_BackupCustomHooksClient, error) +} + +type repositoryServiceClient struct { + cc *grpc.ClientConn +} + +func NewRepositoryServiceClient(cc *grpc.ClientConn) RepositoryServiceClient { + return &repositoryServiceClient{cc} +} + +func (c *repositoryServiceClient) RepositoryExists(ctx context.Context, in *RepositoryExistsRequest, opts ...grpc.CallOption) (*RepositoryExistsResponse, error) { + out := new(RepositoryExistsResponse) + err := grpc.Invoke(ctx, "/gitaly.RepositoryService/RepositoryExists", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) RepackIncremental(ctx context.Context, in *RepackIncrementalRequest, opts ...grpc.CallOption) (*RepackIncrementalResponse, error) { + out := new(RepackIncrementalResponse) + err := grpc.Invoke(ctx, "/gitaly.RepositoryService/RepackIncremental", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) RepackFull(ctx context.Context, in *RepackFullRequest, opts ...grpc.CallOption) (*RepackFullResponse, error) { + out := new(RepackFullResponse) + err := grpc.Invoke(ctx, "/gitaly.RepositoryService/RepackFull", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) GarbageCollect(ctx context.Context, in *GarbageCollectRequest, opts ...grpc.CallOption) (*GarbageCollectResponse, error) { + out := new(GarbageCollectResponse) + err := grpc.Invoke(ctx, "/gitaly.RepositoryService/GarbageCollect", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) RepositorySize(ctx context.Context, in *RepositorySizeRequest, opts ...grpc.CallOption) (*RepositorySizeResponse, error) { + out := new(RepositorySizeResponse) + err := grpc.Invoke(ctx, "/gitaly.RepositoryService/RepositorySize", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) ApplyGitattributes(ctx context.Context, in *ApplyGitattributesRequest, opts ...grpc.CallOption) (*ApplyGitattributesResponse, error) { + out := new(ApplyGitattributesResponse) + err := grpc.Invoke(ctx, "/gitaly.RepositoryService/ApplyGitattributes", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) FetchRemote(ctx context.Context, in *FetchRemoteRequest, opts ...grpc.CallOption) (*FetchRemoteResponse, error) { + out := new(FetchRemoteResponse) + err := grpc.Invoke(ctx, "/gitaly.RepositoryService/FetchRemote", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) CreateRepository(ctx context.Context, in *CreateRepositoryRequest, opts ...grpc.CallOption) (*CreateRepositoryResponse, error) { + out := new(CreateRepositoryResponse) + err := grpc.Invoke(ctx, "/gitaly.RepositoryService/CreateRepository", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) GetArchive(ctx context.Context, in *GetArchiveRequest, opts ...grpc.CallOption) (RepositoryService_GetArchiveClient, error) { + stream, err := grpc.NewClientStream(ctx, &_RepositoryService_serviceDesc.Streams[0], c.cc, "/gitaly.RepositoryService/GetArchive", opts...) + if err != nil { + return nil, err + } + x := &repositoryServiceGetArchiveClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RepositoryService_GetArchiveClient interface { + Recv() (*GetArchiveResponse, error) + grpc.ClientStream +} + +type repositoryServiceGetArchiveClient struct { + grpc.ClientStream +} + +func (x *repositoryServiceGetArchiveClient) Recv() (*GetArchiveResponse, error) { + m := new(GetArchiveResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *repositoryServiceClient) HasLocalBranches(ctx context.Context, in *HasLocalBranchesRequest, opts ...grpc.CallOption) (*HasLocalBranchesResponse, error) { + out := new(HasLocalBranchesResponse) + err := grpc.Invoke(ctx, "/gitaly.RepositoryService/HasLocalBranches", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) FetchSourceBranch(ctx context.Context, in *FetchSourceBranchRequest, opts ...grpc.CallOption) (*FetchSourceBranchResponse, error) { + out := new(FetchSourceBranchResponse) + err := grpc.Invoke(ctx, "/gitaly.RepositoryService/FetchSourceBranch", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) Fsck(ctx context.Context, in *FsckRequest, opts ...grpc.CallOption) (*FsckResponse, error) { + out := new(FsckResponse) + err := grpc.Invoke(ctx, "/gitaly.RepositoryService/Fsck", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) WriteRef(ctx context.Context, in *WriteRefRequest, opts ...grpc.CallOption) (*WriteRefResponse, error) { + out := new(WriteRefResponse) + err := grpc.Invoke(ctx, "/gitaly.RepositoryService/WriteRef", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) FindMergeBase(ctx context.Context, in *FindMergeBaseRequest, opts ...grpc.CallOption) (*FindMergeBaseResponse, error) { + out := new(FindMergeBaseResponse) + err := grpc.Invoke(ctx, "/gitaly.RepositoryService/FindMergeBase", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) CreateFork(ctx context.Context, in *CreateForkRequest, opts ...grpc.CallOption) (*CreateForkResponse, error) { + out := new(CreateForkResponse) + err := grpc.Invoke(ctx, "/gitaly.RepositoryService/CreateFork", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) IsRebaseInProgress(ctx context.Context, in *IsRebaseInProgressRequest, opts ...grpc.CallOption) (*IsRebaseInProgressResponse, error) { + out := new(IsRebaseInProgressResponse) + err := grpc.Invoke(ctx, "/gitaly.RepositoryService/IsRebaseInProgress", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) IsSquashInProgress(ctx context.Context, in *IsSquashInProgressRequest, opts ...grpc.CallOption) (*IsSquashInProgressResponse, error) { + out := new(IsSquashInProgressResponse) + err := grpc.Invoke(ctx, "/gitaly.RepositoryService/IsSquashInProgress", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) CreateRepositoryFromURL(ctx context.Context, in *CreateRepositoryFromURLRequest, opts ...grpc.CallOption) (*CreateRepositoryFromURLResponse, error) { + out := new(CreateRepositoryFromURLResponse) + err := grpc.Invoke(ctx, "/gitaly.RepositoryService/CreateRepositoryFromURL", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) CreateBundle(ctx context.Context, in *CreateBundleRequest, opts ...grpc.CallOption) (RepositoryService_CreateBundleClient, error) { + stream, err := grpc.NewClientStream(ctx, &_RepositoryService_serviceDesc.Streams[1], c.cc, "/gitaly.RepositoryService/CreateBundle", opts...) + if err != nil { + return nil, err + } + x := &repositoryServiceCreateBundleClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RepositoryService_CreateBundleClient interface { + Recv() (*CreateBundleResponse, error) + grpc.ClientStream +} + +type repositoryServiceCreateBundleClient struct { + grpc.ClientStream +} + +func (x *repositoryServiceCreateBundleClient) Recv() (*CreateBundleResponse, error) { + m := new(CreateBundleResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *repositoryServiceClient) CreateRepositoryFromBundle(ctx context.Context, opts ...grpc.CallOption) (RepositoryService_CreateRepositoryFromBundleClient, error) { + stream, err := grpc.NewClientStream(ctx, &_RepositoryService_serviceDesc.Streams[2], c.cc, "/gitaly.RepositoryService/CreateRepositoryFromBundle", opts...) + if err != nil { + return nil, err + } + x := &repositoryServiceCreateRepositoryFromBundleClient{stream} + return x, nil +} + +type RepositoryService_CreateRepositoryFromBundleClient interface { + Send(*CreateRepositoryFromBundleRequest) error + CloseAndRecv() (*CreateRepositoryFromBundleResponse, error) + grpc.ClientStream +} + +type repositoryServiceCreateRepositoryFromBundleClient struct { + grpc.ClientStream +} + +func (x *repositoryServiceCreateRepositoryFromBundleClient) Send(m *CreateRepositoryFromBundleRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *repositoryServiceCreateRepositoryFromBundleClient) CloseAndRecv() (*CreateRepositoryFromBundleResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(CreateRepositoryFromBundleResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *repositoryServiceClient) WriteConfig(ctx context.Context, in *WriteConfigRequest, opts ...grpc.CallOption) (*WriteConfigResponse, error) { + out := new(WriteConfigResponse) + err := grpc.Invoke(ctx, "/gitaly.RepositoryService/WriteConfig", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) SetConfig(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*SetConfigResponse, error) { + out := new(SetConfigResponse) + err := grpc.Invoke(ctx, "/gitaly.RepositoryService/SetConfig", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) DeleteConfig(ctx context.Context, in *DeleteConfigRequest, opts ...grpc.CallOption) (*DeleteConfigResponse, error) { + out := new(DeleteConfigResponse) + err := grpc.Invoke(ctx, "/gitaly.RepositoryService/DeleteConfig", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) FindLicense(ctx context.Context, in *FindLicenseRequest, opts ...grpc.CallOption) (*FindLicenseResponse, error) { + out := new(FindLicenseResponse) + err := grpc.Invoke(ctx, "/gitaly.RepositoryService/FindLicense", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) GetInfoAttributes(ctx context.Context, in *GetInfoAttributesRequest, opts ...grpc.CallOption) (RepositoryService_GetInfoAttributesClient, error) { + stream, err := grpc.NewClientStream(ctx, &_RepositoryService_serviceDesc.Streams[3], c.cc, "/gitaly.RepositoryService/GetInfoAttributes", opts...) + if err != nil { + return nil, err + } + x := &repositoryServiceGetInfoAttributesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RepositoryService_GetInfoAttributesClient interface { + Recv() (*GetInfoAttributesResponse, error) + grpc.ClientStream +} + +type repositoryServiceGetInfoAttributesClient struct { + grpc.ClientStream +} + +func (x *repositoryServiceGetInfoAttributesClient) Recv() (*GetInfoAttributesResponse, error) { + m := new(GetInfoAttributesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *repositoryServiceClient) CalculateChecksum(ctx context.Context, in *CalculateChecksumRequest, opts ...grpc.CallOption) (*CalculateChecksumResponse, error) { + out := new(CalculateChecksumResponse) + err := grpc.Invoke(ctx, "/gitaly.RepositoryService/CalculateChecksum", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) Cleanup(ctx context.Context, in *CleanupRequest, opts ...grpc.CallOption) (*CleanupResponse, error) { + out := new(CleanupResponse) + err := grpc.Invoke(ctx, "/gitaly.RepositoryService/Cleanup", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) GetSnapshot(ctx context.Context, in *GetSnapshotRequest, opts ...grpc.CallOption) (RepositoryService_GetSnapshotClient, error) { + stream, err := grpc.NewClientStream(ctx, &_RepositoryService_serviceDesc.Streams[4], c.cc, "/gitaly.RepositoryService/GetSnapshot", opts...) + if err != nil { + return nil, err + } + x := &repositoryServiceGetSnapshotClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RepositoryService_GetSnapshotClient interface { + Recv() (*GetSnapshotResponse, error) + grpc.ClientStream +} + +type repositoryServiceGetSnapshotClient struct { + grpc.ClientStream +} + +func (x *repositoryServiceGetSnapshotClient) Recv() (*GetSnapshotResponse, error) { + m := new(GetSnapshotResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *repositoryServiceClient) CreateRepositoryFromSnapshot(ctx context.Context, in *CreateRepositoryFromSnapshotRequest, opts ...grpc.CallOption) (*CreateRepositoryFromSnapshotResponse, error) { + out := new(CreateRepositoryFromSnapshotResponse) + err := grpc.Invoke(ctx, "/gitaly.RepositoryService/CreateRepositoryFromSnapshot", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *repositoryServiceClient) GetRawChanges(ctx context.Context, in *GetRawChangesRequest, opts ...grpc.CallOption) (RepositoryService_GetRawChangesClient, error) { + stream, err := grpc.NewClientStream(ctx, &_RepositoryService_serviceDesc.Streams[5], c.cc, "/gitaly.RepositoryService/GetRawChanges", opts...) + if err != nil { + return nil, err + } + x := &repositoryServiceGetRawChangesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RepositoryService_GetRawChangesClient interface { + Recv() (*GetRawChangesResponse, error) + grpc.ClientStream +} + +type repositoryServiceGetRawChangesClient struct { + grpc.ClientStream +} + +func (x *repositoryServiceGetRawChangesClient) Recv() (*GetRawChangesResponse, error) { + m := new(GetRawChangesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *repositoryServiceClient) SearchFilesByContent(ctx context.Context, in *SearchFilesByContentRequest, opts ...grpc.CallOption) (RepositoryService_SearchFilesByContentClient, error) { + stream, err := grpc.NewClientStream(ctx, &_RepositoryService_serviceDesc.Streams[6], c.cc, "/gitaly.RepositoryService/SearchFilesByContent", opts...) + if err != nil { + return nil, err + } + x := &repositoryServiceSearchFilesByContentClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RepositoryService_SearchFilesByContentClient interface { + Recv() (*SearchFilesByContentResponse, error) + grpc.ClientStream +} + +type repositoryServiceSearchFilesByContentClient struct { + grpc.ClientStream +} + +func (x *repositoryServiceSearchFilesByContentClient) Recv() (*SearchFilesByContentResponse, error) { + m := new(SearchFilesByContentResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *repositoryServiceClient) SearchFilesByName(ctx context.Context, in *SearchFilesByNameRequest, opts ...grpc.CallOption) (RepositoryService_SearchFilesByNameClient, error) { + stream, err := grpc.NewClientStream(ctx, &_RepositoryService_serviceDesc.Streams[7], c.cc, "/gitaly.RepositoryService/SearchFilesByName", opts...) + if err != nil { + return nil, err + } + x := &repositoryServiceSearchFilesByNameClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RepositoryService_SearchFilesByNameClient interface { + Recv() (*SearchFilesByNameResponse, error) + grpc.ClientStream +} + +type repositoryServiceSearchFilesByNameClient struct { + grpc.ClientStream +} + +func (x *repositoryServiceSearchFilesByNameClient) Recv() (*SearchFilesByNameResponse, error) { + m := new(SearchFilesByNameResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *repositoryServiceClient) RestoreCustomHooks(ctx context.Context, opts ...grpc.CallOption) (RepositoryService_RestoreCustomHooksClient, error) { + stream, err := grpc.NewClientStream(ctx, &_RepositoryService_serviceDesc.Streams[8], c.cc, "/gitaly.RepositoryService/RestoreCustomHooks", opts...) + if err != nil { + return nil, err + } + x := &repositoryServiceRestoreCustomHooksClient{stream} + return x, nil +} + +type RepositoryService_RestoreCustomHooksClient interface { + Send(*RestoreCustomHooksRequest) error + CloseAndRecv() (*RestoreCustomHooksResponse, error) + grpc.ClientStream +} + +type repositoryServiceRestoreCustomHooksClient struct { + grpc.ClientStream +} + +func (x *repositoryServiceRestoreCustomHooksClient) Send(m *RestoreCustomHooksRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *repositoryServiceRestoreCustomHooksClient) CloseAndRecv() (*RestoreCustomHooksResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(RestoreCustomHooksResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *repositoryServiceClient) BackupCustomHooks(ctx context.Context, in *BackupCustomHooksRequest, opts ...grpc.CallOption) (RepositoryService_BackupCustomHooksClient, error) { + stream, err := grpc.NewClientStream(ctx, &_RepositoryService_serviceDesc.Streams[9], c.cc, "/gitaly.RepositoryService/BackupCustomHooks", opts...) + if err != nil { + return nil, err + } + x := &repositoryServiceBackupCustomHooksClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type RepositoryService_BackupCustomHooksClient interface { + Recv() (*BackupCustomHooksResponse, error) + grpc.ClientStream +} + +type repositoryServiceBackupCustomHooksClient struct { + grpc.ClientStream +} + +func (x *repositoryServiceBackupCustomHooksClient) Recv() (*BackupCustomHooksResponse, error) { + m := new(BackupCustomHooksResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// Server API for RepositoryService service + +type RepositoryServiceServer interface { + RepositoryExists(context.Context, *RepositoryExistsRequest) (*RepositoryExistsResponse, error) + RepackIncremental(context.Context, *RepackIncrementalRequest) (*RepackIncrementalResponse, error) + RepackFull(context.Context, *RepackFullRequest) (*RepackFullResponse, error) + GarbageCollect(context.Context, *GarbageCollectRequest) (*GarbageCollectResponse, error) + RepositorySize(context.Context, *RepositorySizeRequest) (*RepositorySizeResponse, error) + ApplyGitattributes(context.Context, *ApplyGitattributesRequest) (*ApplyGitattributesResponse, error) + FetchRemote(context.Context, *FetchRemoteRequest) (*FetchRemoteResponse, error) + CreateRepository(context.Context, *CreateRepositoryRequest) (*CreateRepositoryResponse, error) + GetArchive(*GetArchiveRequest, RepositoryService_GetArchiveServer) error + HasLocalBranches(context.Context, *HasLocalBranchesRequest) (*HasLocalBranchesResponse, error) + FetchSourceBranch(context.Context, *FetchSourceBranchRequest) (*FetchSourceBranchResponse, error) + Fsck(context.Context, *FsckRequest) (*FsckResponse, error) + WriteRef(context.Context, *WriteRefRequest) (*WriteRefResponse, error) + FindMergeBase(context.Context, *FindMergeBaseRequest) (*FindMergeBaseResponse, error) + CreateFork(context.Context, *CreateForkRequest) (*CreateForkResponse, error) + IsRebaseInProgress(context.Context, *IsRebaseInProgressRequest) (*IsRebaseInProgressResponse, error) + IsSquashInProgress(context.Context, *IsSquashInProgressRequest) (*IsSquashInProgressResponse, error) + CreateRepositoryFromURL(context.Context, *CreateRepositoryFromURLRequest) (*CreateRepositoryFromURLResponse, error) + CreateBundle(*CreateBundleRequest, RepositoryService_CreateBundleServer) error + CreateRepositoryFromBundle(RepositoryService_CreateRepositoryFromBundleServer) error + WriteConfig(context.Context, *WriteConfigRequest) (*WriteConfigResponse, error) + SetConfig(context.Context, *SetConfigRequest) (*SetConfigResponse, error) + DeleteConfig(context.Context, *DeleteConfigRequest) (*DeleteConfigResponse, error) + FindLicense(context.Context, *FindLicenseRequest) (*FindLicenseResponse, error) + GetInfoAttributes(*GetInfoAttributesRequest, RepositoryService_GetInfoAttributesServer) error + CalculateChecksum(context.Context, *CalculateChecksumRequest) (*CalculateChecksumResponse, error) + Cleanup(context.Context, *CleanupRequest) (*CleanupResponse, error) + GetSnapshot(*GetSnapshotRequest, RepositoryService_GetSnapshotServer) error + CreateRepositoryFromSnapshot(context.Context, *CreateRepositoryFromSnapshotRequest) (*CreateRepositoryFromSnapshotResponse, error) + GetRawChanges(*GetRawChangesRequest, RepositoryService_GetRawChangesServer) error + SearchFilesByContent(*SearchFilesByContentRequest, RepositoryService_SearchFilesByContentServer) error + SearchFilesByName(*SearchFilesByNameRequest, RepositoryService_SearchFilesByNameServer) error + RestoreCustomHooks(RepositoryService_RestoreCustomHooksServer) error + BackupCustomHooks(*BackupCustomHooksRequest, RepositoryService_BackupCustomHooksServer) error +} + +func RegisterRepositoryServiceServer(s *grpc.Server, srv RepositoryServiceServer) { + s.RegisterService(&_RepositoryService_serviceDesc, srv) +} + +func _RepositoryService_RepositoryExists_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RepositoryExistsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).RepositoryExists(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/RepositoryExists", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).RepositoryExists(ctx, req.(*RepositoryExistsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_RepackIncremental_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RepackIncrementalRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).RepackIncremental(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/RepackIncremental", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).RepackIncremental(ctx, req.(*RepackIncrementalRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_RepackFull_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RepackFullRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).RepackFull(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/RepackFull", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).RepackFull(ctx, req.(*RepackFullRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_GarbageCollect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GarbageCollectRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).GarbageCollect(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/GarbageCollect", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).GarbageCollect(ctx, req.(*GarbageCollectRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_RepositorySize_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RepositorySizeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).RepositorySize(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/RepositorySize", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).RepositorySize(ctx, req.(*RepositorySizeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_ApplyGitattributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ApplyGitattributesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).ApplyGitattributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/ApplyGitattributes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).ApplyGitattributes(ctx, req.(*ApplyGitattributesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_FetchRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FetchRemoteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).FetchRemote(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/FetchRemote", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).FetchRemote(ctx, req.(*FetchRemoteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_CreateRepository_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateRepositoryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).CreateRepository(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/CreateRepository", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).CreateRepository(ctx, req.(*CreateRepositoryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_GetArchive_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetArchiveRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RepositoryServiceServer).GetArchive(m, &repositoryServiceGetArchiveServer{stream}) +} + +type RepositoryService_GetArchiveServer interface { + Send(*GetArchiveResponse) error + grpc.ServerStream +} + +type repositoryServiceGetArchiveServer struct { + grpc.ServerStream +} + +func (x *repositoryServiceGetArchiveServer) Send(m *GetArchiveResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RepositoryService_HasLocalBranches_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(HasLocalBranchesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).HasLocalBranches(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/HasLocalBranches", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).HasLocalBranches(ctx, req.(*HasLocalBranchesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_FetchSourceBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FetchSourceBranchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).FetchSourceBranch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/FetchSourceBranch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).FetchSourceBranch(ctx, req.(*FetchSourceBranchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_Fsck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FsckRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).Fsck(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/Fsck", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).Fsck(ctx, req.(*FsckRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_WriteRef_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WriteRefRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).WriteRef(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/WriteRef", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).WriteRef(ctx, req.(*WriteRefRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_FindMergeBase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindMergeBaseRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).FindMergeBase(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/FindMergeBase", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).FindMergeBase(ctx, req.(*FindMergeBaseRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_CreateFork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateForkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).CreateFork(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/CreateFork", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).CreateFork(ctx, req.(*CreateForkRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_IsRebaseInProgress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(IsRebaseInProgressRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).IsRebaseInProgress(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/IsRebaseInProgress", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).IsRebaseInProgress(ctx, req.(*IsRebaseInProgressRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_IsSquashInProgress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(IsSquashInProgressRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).IsSquashInProgress(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/IsSquashInProgress", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).IsSquashInProgress(ctx, req.(*IsSquashInProgressRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_CreateRepositoryFromURL_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateRepositoryFromURLRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).CreateRepositoryFromURL(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/CreateRepositoryFromURL", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).CreateRepositoryFromURL(ctx, req.(*CreateRepositoryFromURLRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_CreateBundle_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(CreateBundleRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RepositoryServiceServer).CreateBundle(m, &repositoryServiceCreateBundleServer{stream}) +} + +type RepositoryService_CreateBundleServer interface { + Send(*CreateBundleResponse) error + grpc.ServerStream +} + +type repositoryServiceCreateBundleServer struct { + grpc.ServerStream +} + +func (x *repositoryServiceCreateBundleServer) Send(m *CreateBundleResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RepositoryService_CreateRepositoryFromBundle_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(RepositoryServiceServer).CreateRepositoryFromBundle(&repositoryServiceCreateRepositoryFromBundleServer{stream}) +} + +type RepositoryService_CreateRepositoryFromBundleServer interface { + SendAndClose(*CreateRepositoryFromBundleResponse) error + Recv() (*CreateRepositoryFromBundleRequest, error) + grpc.ServerStream +} + +type repositoryServiceCreateRepositoryFromBundleServer struct { + grpc.ServerStream +} + +func (x *repositoryServiceCreateRepositoryFromBundleServer) SendAndClose(m *CreateRepositoryFromBundleResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *repositoryServiceCreateRepositoryFromBundleServer) Recv() (*CreateRepositoryFromBundleRequest, error) { + m := new(CreateRepositoryFromBundleRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _RepositoryService_WriteConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WriteConfigRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).WriteConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/WriteConfig", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).WriteConfig(ctx, req.(*WriteConfigRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_SetConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetConfigRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).SetConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/SetConfig", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).SetConfig(ctx, req.(*SetConfigRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_DeleteConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteConfigRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).DeleteConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/DeleteConfig", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).DeleteConfig(ctx, req.(*DeleteConfigRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_FindLicense_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindLicenseRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).FindLicense(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/FindLicense", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).FindLicense(ctx, req.(*FindLicenseRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_GetInfoAttributes_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetInfoAttributesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RepositoryServiceServer).GetInfoAttributes(m, &repositoryServiceGetInfoAttributesServer{stream}) +} + +type RepositoryService_GetInfoAttributesServer interface { + Send(*GetInfoAttributesResponse) error + grpc.ServerStream +} + +type repositoryServiceGetInfoAttributesServer struct { + grpc.ServerStream +} + +func (x *repositoryServiceGetInfoAttributesServer) Send(m *GetInfoAttributesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RepositoryService_CalculateChecksum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CalculateChecksumRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).CalculateChecksum(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/CalculateChecksum", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).CalculateChecksum(ctx, req.(*CalculateChecksumRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_Cleanup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CleanupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).Cleanup(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/Cleanup", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).Cleanup(ctx, req.(*CleanupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_GetSnapshot_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetSnapshotRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RepositoryServiceServer).GetSnapshot(m, &repositoryServiceGetSnapshotServer{stream}) +} + +type RepositoryService_GetSnapshotServer interface { + Send(*GetSnapshotResponse) error + grpc.ServerStream +} + +type repositoryServiceGetSnapshotServer struct { + grpc.ServerStream +} + +func (x *repositoryServiceGetSnapshotServer) Send(m *GetSnapshotResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RepositoryService_CreateRepositoryFromSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateRepositoryFromSnapshotRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RepositoryServiceServer).CreateRepositoryFromSnapshot(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.RepositoryService/CreateRepositoryFromSnapshot", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RepositoryServiceServer).CreateRepositoryFromSnapshot(ctx, req.(*CreateRepositoryFromSnapshotRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RepositoryService_GetRawChanges_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetRawChangesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RepositoryServiceServer).GetRawChanges(m, &repositoryServiceGetRawChangesServer{stream}) +} + +type RepositoryService_GetRawChangesServer interface { + Send(*GetRawChangesResponse) error + grpc.ServerStream +} + +type repositoryServiceGetRawChangesServer struct { + grpc.ServerStream +} + +func (x *repositoryServiceGetRawChangesServer) Send(m *GetRawChangesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RepositoryService_SearchFilesByContent_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(SearchFilesByContentRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RepositoryServiceServer).SearchFilesByContent(m, &repositoryServiceSearchFilesByContentServer{stream}) +} + +type RepositoryService_SearchFilesByContentServer interface { + Send(*SearchFilesByContentResponse) error + grpc.ServerStream +} + +type repositoryServiceSearchFilesByContentServer struct { + grpc.ServerStream +} + +func (x *repositoryServiceSearchFilesByContentServer) Send(m *SearchFilesByContentResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RepositoryService_SearchFilesByName_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(SearchFilesByNameRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RepositoryServiceServer).SearchFilesByName(m, &repositoryServiceSearchFilesByNameServer{stream}) +} + +type RepositoryService_SearchFilesByNameServer interface { + Send(*SearchFilesByNameResponse) error + grpc.ServerStream +} + +type repositoryServiceSearchFilesByNameServer struct { + grpc.ServerStream +} + +func (x *repositoryServiceSearchFilesByNameServer) Send(m *SearchFilesByNameResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _RepositoryService_RestoreCustomHooks_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(RepositoryServiceServer).RestoreCustomHooks(&repositoryServiceRestoreCustomHooksServer{stream}) +} + +type RepositoryService_RestoreCustomHooksServer interface { + SendAndClose(*RestoreCustomHooksResponse) error + Recv() (*RestoreCustomHooksRequest, error) + grpc.ServerStream +} + +type repositoryServiceRestoreCustomHooksServer struct { + grpc.ServerStream +} + +func (x *repositoryServiceRestoreCustomHooksServer) SendAndClose(m *RestoreCustomHooksResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *repositoryServiceRestoreCustomHooksServer) Recv() (*RestoreCustomHooksRequest, error) { + m := new(RestoreCustomHooksRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _RepositoryService_BackupCustomHooks_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(BackupCustomHooksRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(RepositoryServiceServer).BackupCustomHooks(m, &repositoryServiceBackupCustomHooksServer{stream}) +} + +type RepositoryService_BackupCustomHooksServer interface { + Send(*BackupCustomHooksResponse) error + grpc.ServerStream +} + +type repositoryServiceBackupCustomHooksServer struct { + grpc.ServerStream +} + +func (x *repositoryServiceBackupCustomHooksServer) Send(m *BackupCustomHooksResponse) error { + return x.ServerStream.SendMsg(m) +} + +var _RepositoryService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.RepositoryService", + HandlerType: (*RepositoryServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "RepositoryExists", + Handler: _RepositoryService_RepositoryExists_Handler, + }, + { + MethodName: "RepackIncremental", + Handler: _RepositoryService_RepackIncremental_Handler, + }, + { + MethodName: "RepackFull", + Handler: _RepositoryService_RepackFull_Handler, + }, + { + MethodName: "GarbageCollect", + Handler: _RepositoryService_GarbageCollect_Handler, + }, + { + MethodName: "RepositorySize", + Handler: _RepositoryService_RepositorySize_Handler, + }, + { + MethodName: "ApplyGitattributes", + Handler: _RepositoryService_ApplyGitattributes_Handler, + }, + { + MethodName: "FetchRemote", + Handler: _RepositoryService_FetchRemote_Handler, + }, + { + MethodName: "CreateRepository", + Handler: _RepositoryService_CreateRepository_Handler, + }, + { + MethodName: "HasLocalBranches", + Handler: _RepositoryService_HasLocalBranches_Handler, + }, + { + MethodName: "FetchSourceBranch", + Handler: _RepositoryService_FetchSourceBranch_Handler, + }, + { + MethodName: "Fsck", + Handler: _RepositoryService_Fsck_Handler, + }, + { + MethodName: "WriteRef", + Handler: _RepositoryService_WriteRef_Handler, + }, + { + MethodName: "FindMergeBase", + Handler: _RepositoryService_FindMergeBase_Handler, + }, + { + MethodName: "CreateFork", + Handler: _RepositoryService_CreateFork_Handler, + }, + { + MethodName: "IsRebaseInProgress", + Handler: _RepositoryService_IsRebaseInProgress_Handler, + }, + { + MethodName: "IsSquashInProgress", + Handler: _RepositoryService_IsSquashInProgress_Handler, + }, + { + MethodName: "CreateRepositoryFromURL", + Handler: _RepositoryService_CreateRepositoryFromURL_Handler, + }, + { + MethodName: "WriteConfig", + Handler: _RepositoryService_WriteConfig_Handler, + }, + { + MethodName: "SetConfig", + Handler: _RepositoryService_SetConfig_Handler, + }, + { + MethodName: "DeleteConfig", + Handler: _RepositoryService_DeleteConfig_Handler, + }, + { + MethodName: "FindLicense", + Handler: _RepositoryService_FindLicense_Handler, + }, + { + MethodName: "CalculateChecksum", + Handler: _RepositoryService_CalculateChecksum_Handler, + }, + { + MethodName: "Cleanup", + Handler: _RepositoryService_Cleanup_Handler, + }, + { + MethodName: "CreateRepositoryFromSnapshot", + Handler: _RepositoryService_CreateRepositoryFromSnapshot_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "GetArchive", + Handler: _RepositoryService_GetArchive_Handler, + ServerStreams: true, + }, + { + StreamName: "CreateBundle", + Handler: _RepositoryService_CreateBundle_Handler, + ServerStreams: true, + }, + { + StreamName: "CreateRepositoryFromBundle", + Handler: _RepositoryService_CreateRepositoryFromBundle_Handler, + ClientStreams: true, + }, + { + StreamName: "GetInfoAttributes", + Handler: _RepositoryService_GetInfoAttributes_Handler, + ServerStreams: true, + }, + { + StreamName: "GetSnapshot", + Handler: _RepositoryService_GetSnapshot_Handler, + ServerStreams: true, + }, + { + StreamName: "GetRawChanges", + Handler: _RepositoryService_GetRawChanges_Handler, + ServerStreams: true, + }, + { + StreamName: "SearchFilesByContent", + Handler: _RepositoryService_SearchFilesByContent_Handler, + ServerStreams: true, + }, + { + StreamName: "SearchFilesByName", + Handler: _RepositoryService_SearchFilesByName_Handler, + ServerStreams: true, + }, + { + StreamName: "RestoreCustomHooks", + Handler: _RepositoryService_RestoreCustomHooks_Handler, + ClientStreams: true, + }, + { + StreamName: "BackupCustomHooks", + Handler: _RepositoryService_BackupCustomHooks_Handler, + ServerStreams: true, + }, + }, + Metadata: "repository-service.proto", +} + +func init() { proto.RegisterFile("repository-service.proto", fileDescriptor11) } + +var fileDescriptor11 = []byte{ + // 2363 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x5a, 0x51, 0x6f, 0xdb, 0xc8, + 0x11, 0x96, 0x2c, 0xcb, 0x92, 0x46, 0xca, 0x9d, 0xbc, 0x76, 0x1c, 0x8a, 0x71, 0xe2, 0x84, 0x09, + 0xee, 0x72, 0x77, 0xa9, 0x7b, 0xe7, 0x3c, 0x34, 0x40, 0x5b, 0x1c, 0x6c, 0x49, 0xb6, 0x95, 0xc4, + 0x8e, 0x4b, 0x27, 0x08, 0x1a, 0x5c, 0x20, 0xd0, 0xd4, 0xca, 0x22, 0x44, 0x71, 0x95, 0xe5, 0x2a, + 0x3e, 0x5f, 0x5f, 0x7b, 0xc0, 0x3d, 0xb6, 0x7f, 0xa5, 0x7f, 0xa5, 0xbf, 0xa2, 0xe8, 0x4b, 0x7f, + 0x42, 0xb1, 0xbb, 0x14, 0x97, 0x14, 0x49, 0x35, 0x00, 0xd3, 0xf6, 0x8d, 0x3b, 0xb3, 0x3b, 0x33, + 0x3b, 0x33, 0x3b, 0xbb, 0xf3, 0x49, 0xa0, 0x51, 0x3c, 0x25, 0xbe, 0xc3, 0x08, 0xbd, 0xfe, 0x95, + 0x8f, 0xe9, 0x07, 0xc7, 0xc6, 0xbb, 0x53, 0x4a, 0x18, 0x41, 0x6b, 0x97, 0x0e, 0xb3, 0xdc, 0x6b, + 0xbd, 0xe1, 0x8f, 0x2c, 0x8a, 0x07, 0x92, 0x6a, 0x9c, 0xc0, 0x2d, 0x33, 0x5c, 0xd1, 0xfd, 0xd1, + 0xf1, 0x99, 0x6f, 0xe2, 0xf7, 0x33, 0xec, 0x33, 0xb4, 0x07, 0xa0, 0x84, 0x69, 0xc5, 0x7b, 0xc5, + 0x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0xc9, 0xbf, 0x03, 0x00, + 0x00, 0xff, 0xff, 0xd6, 0x96, 0xf8, 0x6b, 0x7a, 0x22, 0x00, 0x00, +} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/server.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/server.pb.go new file mode 100644 index 0000000..fea68f5 --- /dev/null +++ b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/server.pb.go @@ -0,0 +1,193 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: server.proto + +package gitalypb + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +type ServerInfoRequest struct { +} + +func (m *ServerInfoRequest) Reset() { *m = ServerInfoRequest{} } +func (m *ServerInfoRequest) String() string { return proto.CompactTextString(m) } +func (*ServerInfoRequest) ProtoMessage() {} +func (*ServerInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptor12, []int{0} } + +type ServerInfoResponse struct { + ServerVersion string `protobuf:"bytes,1,opt,name=server_version,json=serverVersion" json:"server_version,omitempty"` + GitVersion string `protobuf:"bytes,2,opt,name=git_version,json=gitVersion" json:"git_version,omitempty"` + StorageStatuses []*ServerInfoResponse_StorageStatus `protobuf:"bytes,3,rep,name=storage_statuses,json=storageStatuses" json:"storage_statuses,omitempty"` +} + +func (m *ServerInfoResponse) Reset() { *m = ServerInfoResponse{} } +func (m *ServerInfoResponse) String() string { return proto.CompactTextString(m) } +func (*ServerInfoResponse) ProtoMessage() {} +func (*ServerInfoResponse) Descriptor() ([]byte, []int) { return fileDescriptor12, []int{1} } + +func (m *ServerInfoResponse) GetServerVersion() string { + if m != nil { + return m.ServerVersion + } + return "" +} + +func (m *ServerInfoResponse) GetGitVersion() string { + if m != nil { + return m.GitVersion + } + return "" +} + +func (m *ServerInfoResponse) GetStorageStatuses() []*ServerInfoResponse_StorageStatus { + if m != nil { + return m.StorageStatuses + } + return nil +} + +type ServerInfoResponse_StorageStatus struct { + StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName" json:"storage_name,omitempty"` + Readable bool `protobuf:"varint,2,opt,name=readable" json:"readable,omitempty"` + Writeable bool `protobuf:"varint,3,opt,name=writeable" json:"writeable,omitempty"` +} + +func (m *ServerInfoResponse_StorageStatus) Reset() { *m = ServerInfoResponse_StorageStatus{} } +func (m *ServerInfoResponse_StorageStatus) String() string { return proto.CompactTextString(m) } +func (*ServerInfoResponse_StorageStatus) ProtoMessage() {} +func (*ServerInfoResponse_StorageStatus) Descriptor() ([]byte, []int) { + return fileDescriptor12, []int{1, 0} +} + +func (m *ServerInfoResponse_StorageStatus) GetStorageName() string { + if m != nil { + return m.StorageName + } + return "" +} + +func (m *ServerInfoResponse_StorageStatus) GetReadable() bool { + if m != nil { + return m.Readable + } + return false +} + +func (m *ServerInfoResponse_StorageStatus) GetWriteable() bool { + if m != nil { + return m.Writeable + } + return false +} + +func init() { + proto.RegisterType((*ServerInfoRequest)(nil), "gitaly.ServerInfoRequest") + proto.RegisterType((*ServerInfoResponse)(nil), "gitaly.ServerInfoResponse") + proto.RegisterType((*ServerInfoResponse_StorageStatus)(nil), "gitaly.ServerInfoResponse.StorageStatus") +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// Client API for ServerService service + +type ServerServiceClient interface { + ServerInfo(ctx context.Context, in *ServerInfoRequest, opts ...grpc.CallOption) (*ServerInfoResponse, error) +} + +type serverServiceClient struct { + cc *grpc.ClientConn +} + +func NewServerServiceClient(cc *grpc.ClientConn) ServerServiceClient { + return &serverServiceClient{cc} +} + +func (c *serverServiceClient) ServerInfo(ctx context.Context, in *ServerInfoRequest, opts ...grpc.CallOption) (*ServerInfoResponse, error) { + out := new(ServerInfoResponse) + err := grpc.Invoke(ctx, "/gitaly.ServerService/ServerInfo", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for ServerService service + +type ServerServiceServer interface { + ServerInfo(context.Context, *ServerInfoRequest) (*ServerInfoResponse, error) +} + +func RegisterServerServiceServer(s *grpc.Server, srv ServerServiceServer) { + s.RegisterService(&_ServerService_serviceDesc, srv) +} + +func _ServerService_ServerInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ServerInfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ServerServiceServer).ServerInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.ServerService/ServerInfo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ServerServiceServer).ServerInfo(ctx, req.(*ServerInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _ServerService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.ServerService", + HandlerType: (*ServerServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ServerInfo", + Handler: _ServerService_ServerInfo_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "server.proto", +} + +func init() { proto.RegisterFile("server.proto", fileDescriptor12) } + +var fileDescriptor12 = []byte{ + // 258 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xcf, 0x4a, 0xc3, 0x40, + 0x10, 0xc6, 0x6d, 0x03, 0xa5, 0x9d, 0x34, 0xfe, 0x19, 0x2f, 0x35, 0x08, 0xd6, 0x80, 0x90, 0x53, + 0x0e, 0xf5, 0x19, 0x3c, 0x78, 0xf1, 0x90, 0x40, 0xaf, 0x65, 0xab, 0x63, 0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e8, 0x19, 0xaf, 0xfe, 0xca, 0xa1, 0x6f, 0x9b, 0xa6, 0xff, 0x47, 0xcc, 0x4e, 0x96, + 0x03, 0xfd, 0x9d, 0xfb, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xcc, 0xe4, 0x68, 0x27, 0xad, 0x01, + 0x00, 0x00, +} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/shared.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/shared.pb.go new file mode 100644 index 0000000..c141236 --- /dev/null +++ b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/shared.pb.go @@ -0,0 +1,376 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: shared.proto + +package gitalypb + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import google_protobuf "github.com/golang/protobuf/ptypes/timestamp" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +type Repository struct { + StorageName string `protobuf:"bytes,2,opt,name=storage_name,json=storageName" json:"storage_name,omitempty"` + RelativePath string `protobuf:"bytes,3,opt,name=relative_path,json=relativePath" json:"relative_path,omitempty"` + // Sets the GIT_OBJECT_DIRECTORY envvar on git commands to the value of this field. + // It influences the object storage directory the SHA1 directories are created underneath. + GitObjectDirectory string `protobuf:"bytes,4,opt,name=git_object_directory,json=gitObjectDirectory" json:"git_object_directory,omitempty"` + // Sets the GIT_ALTERNATE_OBJECT_DIRECTORIES envvar on git commands to the values of this field. + // It influences the list of Git object directories which can be used to search for Git objects. + GitAlternateObjectDirectories []string `protobuf:"bytes,5,rep,name=git_alternate_object_directories,json=gitAlternateObjectDirectories" json:"git_alternate_object_directories,omitempty"` + // Used in callbacks to GitLab so that it knows what repository the event is + // associated with. May be left empty on RPC's that do not perform callbacks. + // During project creation, `gl_repository` may not be known. + GlRepository string `protobuf:"bytes,6,opt,name=gl_repository,json=glRepository" json:"gl_repository,omitempty"` + // The human-readable GitLab project name (e.g. gitlab-org/gitlab-ce). + // When hashed storage is use, this associates a project name with its + // path on disk. The name can change over time (e.g. when a project is + // renamed). This is primarily used for logging/debugging at the + // moment. + GlProjectName string `protobuf:"bytes,7,opt,name=gl_project_name,json=glProjectName" json:"gl_project_name,omitempty"` +} + +func (m *Repository) Reset() { *m = Repository{} } +func (m *Repository) String() string { return proto.CompactTextString(m) } +func (*Repository) ProtoMessage() {} +func (*Repository) Descriptor() ([]byte, []int) { return fileDescriptor13, []int{0} } + +func (m *Repository) GetStorageName() string { + if m != nil { + return m.StorageName + } + return "" +} + +func (m *Repository) GetRelativePath() string { + if m != nil { + return m.RelativePath + } + return "" +} + +func (m *Repository) GetGitObjectDirectory() string { + if m != nil { + return m.GitObjectDirectory + } + return "" +} + +func (m *Repository) GetGitAlternateObjectDirectories() []string { + if m != nil { + return m.GitAlternateObjectDirectories + } + return nil +} + +func (m *Repository) GetGlRepository() string { + if m != nil { + return m.GlRepository + } + return "" +} + +func (m *Repository) GetGlProjectName() string { + if m != nil { + return m.GlProjectName + } + return "" +} + +// Corresponds to Gitlab::Git::Commit +type GitCommit struct { + Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` + Subject []byte `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` + Body []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` + Author *CommitAuthor `protobuf:"bytes,4,opt,name=author" json:"author,omitempty"` + Committer *CommitAuthor `protobuf:"bytes,5,opt,name=committer" json:"committer,omitempty"` + ParentIds []string `protobuf:"bytes,6,rep,name=parent_ids,json=parentIds" json:"parent_ids,omitempty"` + // If body exceeds a certain threshold, it will be nullified, + // but its size will be set in body_size so we can know if + // a commit had a body in the first place. + BodySize int64 `protobuf:"varint,7,opt,name=body_size,json=bodySize" json:"body_size,omitempty"` +} + +func (m *GitCommit) Reset() { *m = GitCommit{} } +func (m *GitCommit) String() string { return proto.CompactTextString(m) } +func (*GitCommit) ProtoMessage() {} +func (*GitCommit) Descriptor() ([]byte, []int) { return fileDescriptor13, []int{1} } + +func (m *GitCommit) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *GitCommit) GetSubject() []byte { + if m != nil { + return m.Subject + } + return nil +} + +func (m *GitCommit) GetBody() []byte { + if m != nil { + return m.Body + } + return nil +} + +func (m *GitCommit) GetAuthor() *CommitAuthor { + if m != nil { + return m.Author + } + return nil +} + +func (m *GitCommit) GetCommitter() *CommitAuthor { + if m != nil { + return m.Committer + } + return nil +} + +func (m *GitCommit) GetParentIds() []string { + if m != nil { + return m.ParentIds + } + return nil +} + +func (m *GitCommit) GetBodySize() int64 { + if m != nil { + return m.BodySize + } + return 0 +} + +type CommitAuthor struct { + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Email []byte `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` + Date *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=date" json:"date,omitempty"` +} + +func (m *CommitAuthor) Reset() { *m = CommitAuthor{} } +func (m *CommitAuthor) String() string { return proto.CompactTextString(m) } +func (*CommitAuthor) ProtoMessage() {} +func (*CommitAuthor) Descriptor() ([]byte, []int) { return fileDescriptor13, []int{2} } + +func (m *CommitAuthor) GetName() []byte { + if m != nil { + return m.Name + } + return nil +} + +func (m *CommitAuthor) GetEmail() []byte { + if m != nil { + return m.Email + } + return nil +} + +func (m *CommitAuthor) GetDate() *google_protobuf.Timestamp { + if m != nil { + return m.Date + } + return nil +} + +type ExitStatus struct { + Value int32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"` +} + +func (m *ExitStatus) Reset() { *m = ExitStatus{} } +func (m *ExitStatus) String() string { return proto.CompactTextString(m) } +func (*ExitStatus) ProtoMessage() {} +func (*ExitStatus) Descriptor() ([]byte, []int) { return fileDescriptor13, []int{3} } + +func (m *ExitStatus) GetValue() int32 { + if m != nil { + return m.Value + } + return 0 +} + +// Corresponds to Gitlab::Git::Branch +type Branch struct { + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + TargetCommit *GitCommit `protobuf:"bytes,2,opt,name=target_commit,json=targetCommit" json:"target_commit,omitempty"` +} + +func (m *Branch) Reset() { *m = Branch{} } +func (m *Branch) String() string { return proto.CompactTextString(m) } +func (*Branch) ProtoMessage() {} +func (*Branch) Descriptor() ([]byte, []int) { return fileDescriptor13, []int{4} } + +func (m *Branch) GetName() []byte { + if m != nil { + return m.Name + } + return nil +} + +func (m *Branch) GetTargetCommit() *GitCommit { + if m != nil { + return m.TargetCommit + } + return nil +} + +type Tag struct { + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` + TargetCommit *GitCommit `protobuf:"bytes,3,opt,name=target_commit,json=targetCommit" json:"target_commit,omitempty"` + // If message exceeds a certain threshold, it will be nullified, + // but its size will be set in message_size so we can know if + // a tag had a message in the first place. + Message []byte `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` + MessageSize int64 `protobuf:"varint,5,opt,name=message_size,json=messageSize" json:"message_size,omitempty"` + Tagger *CommitAuthor `protobuf:"bytes,6,opt,name=tagger" json:"tagger,omitempty"` +} + +func (m *Tag) Reset() { *m = Tag{} } +func (m *Tag) String() string { return proto.CompactTextString(m) } +func (*Tag) ProtoMessage() {} +func (*Tag) Descriptor() ([]byte, []int) { return fileDescriptor13, []int{5} } + +func (m *Tag) GetName() []byte { + if m != nil { + return m.Name + } + return nil +} + +func (m *Tag) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *Tag) GetTargetCommit() *GitCommit { + if m != nil { + return m.TargetCommit + } + return nil +} + +func (m *Tag) GetMessage() []byte { + if m != nil { + return m.Message + } + return nil +} + +func (m *Tag) GetMessageSize() int64 { + if m != nil { + return m.MessageSize + } + return 0 +} + +func (m *Tag) GetTagger() *CommitAuthor { + if m != nil { + return m.Tagger + } + return nil +} + +type User struct { + GlId string `protobuf:"bytes,1,opt,name=gl_id,json=glId" json:"gl_id,omitempty"` + Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Email []byte `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` + GlUsername string `protobuf:"bytes,4,opt,name=gl_username,json=glUsername" json:"gl_username,omitempty"` +} + +func (m *User) Reset() { *m = User{} } +func (m *User) String() string { return proto.CompactTextString(m) } +func (*User) ProtoMessage() {} +func (*User) Descriptor() ([]byte, []int) { return fileDescriptor13, []int{6} } + +func (m *User) GetGlId() string { + if m != nil { + return m.GlId + } + return "" +} + +func (m *User) GetName() []byte { + if m != nil { + return m.Name + } + return nil +} + +func (m *User) GetEmail() []byte { + if m != nil { + return m.Email + } + return nil +} + +func (m *User) GetGlUsername() string { + if m != nil { + return m.GlUsername + } + return "" +} + +func init() { + proto.RegisterType((*Repository)(nil), "gitaly.Repository") + proto.RegisterType((*GitCommit)(nil), "gitaly.GitCommit") + proto.RegisterType((*CommitAuthor)(nil), "gitaly.CommitAuthor") + proto.RegisterType((*ExitStatus)(nil), "gitaly.ExitStatus") + proto.RegisterType((*Branch)(nil), "gitaly.Branch") + proto.RegisterType((*Tag)(nil), "gitaly.Tag") + proto.RegisterType((*User)(nil), "gitaly.User") +} + +func init() { proto.RegisterFile("shared.proto", fileDescriptor13) } + +var fileDescriptor13 = []byte{ + // 594 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xc1, 0x6e, 0xd4, 0x3c, + 0x10, 0xd6, 0x66, 0xb3, 0xdb, 0xee, 0x6c, 0xfa, 0xff, 0x60, 0x7a, 0x88, 0x8a, 0xaa, 0x96, 0x20, + 0xa1, 0x1e, 0x50, 0x8a, 0x16, 0x89, 0x7b, 0x0b, 0xa8, 0x2a, 0x07, 0xa8, 0xd2, 0xf6, 0xc2, 0x25, + 0xf2, 0x6e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ff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/smarthttp.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/smarthttp.pb.go new file mode 100644 index 0000000..826b2b1 --- /dev/null +++ b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/smarthttp.pb.go @@ -0,0 +1,555 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: smarthttp.proto + +package gitalypb + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +type InfoRefsRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + // Parameters to use with git -c (key=value pairs) + GitConfigOptions []string `protobuf:"bytes,2,rep,name=git_config_options,json=gitConfigOptions" json:"git_config_options,omitempty"` + // Git protocol version + GitProtocol string `protobuf:"bytes,3,opt,name=git_protocol,json=gitProtocol" json:"git_protocol,omitempty"` +} + +func (m *InfoRefsRequest) Reset() { *m = InfoRefsRequest{} } +func (m *InfoRefsRequest) String() string { return proto.CompactTextString(m) } +func (*InfoRefsRequest) ProtoMessage() {} +func (*InfoRefsRequest) Descriptor() ([]byte, []int) { return fileDescriptor14, []int{0} } + +func (m *InfoRefsRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *InfoRefsRequest) GetGitConfigOptions() []string { + if m != nil { + return m.GitConfigOptions + } + return nil +} + +func (m *InfoRefsRequest) GetGitProtocol() string { + if m != nil { + return m.GitProtocol + } + return "" +} + +type InfoRefsResponse struct { + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` +} + +func (m *InfoRefsResponse) Reset() { *m = InfoRefsResponse{} } +func (m *InfoRefsResponse) String() string { return proto.CompactTextString(m) } +func (*InfoRefsResponse) ProtoMessage() {} +func (*InfoRefsResponse) Descriptor() ([]byte, []int) { return fileDescriptor14, []int{1} } + +func (m *InfoRefsResponse) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +type PostUploadPackRequest struct { + // repository should only be present in the first message of the stream + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + // Raw data to be copied to stdin of 'git upload-pack' + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + // Parameters to use with git -c (key=value pairs) + GitConfigOptions []string `protobuf:"bytes,3,rep,name=git_config_options,json=gitConfigOptions" json:"git_config_options,omitempty"` + // Git protocol version + GitProtocol string `protobuf:"bytes,4,opt,name=git_protocol,json=gitProtocol" json:"git_protocol,omitempty"` +} + +func (m *PostUploadPackRequest) Reset() { *m = PostUploadPackRequest{} } +func (m *PostUploadPackRequest) String() string { return proto.CompactTextString(m) } +func (*PostUploadPackRequest) ProtoMessage() {} +func (*PostUploadPackRequest) Descriptor() ([]byte, []int) { return fileDescriptor14, []int{2} } + +func (m *PostUploadPackRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *PostUploadPackRequest) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +func (m *PostUploadPackRequest) GetGitConfigOptions() []string { + if m != nil { + return m.GitConfigOptions + } + return nil +} + +func (m *PostUploadPackRequest) GetGitProtocol() string { + if m != nil { + return m.GitProtocol + } + return "" +} + +type PostUploadPackResponse struct { + // Raw data from stdout of 'git upload-pack' + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` +} + +func (m *PostUploadPackResponse) Reset() { *m = PostUploadPackResponse{} } +func (m *PostUploadPackResponse) String() string { return proto.CompactTextString(m) } +func (*PostUploadPackResponse) ProtoMessage() {} +func (*PostUploadPackResponse) Descriptor() ([]byte, []int) { return fileDescriptor14, []int{3} } + +func (m *PostUploadPackResponse) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +type PostReceivePackRequest struct { + // repository should only be present in the first message of the stream + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + // Raw data to be copied to stdin of 'git receive-pack' + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + // gl_id, gl_repository, and gl_username become env variables, used by the Git {pre,post}-receive + // hooks. They should only be present in the first message of the stream. + GlId string `protobuf:"bytes,3,opt,name=gl_id,json=glId" json:"gl_id,omitempty"` + GlRepository string `protobuf:"bytes,4,opt,name=gl_repository,json=glRepository" json:"gl_repository,omitempty"` + GlUsername string `protobuf:"bytes,5,opt,name=gl_username,json=glUsername" json:"gl_username,omitempty"` + // Git protocol version + GitProtocol string `protobuf:"bytes,6,opt,name=git_protocol,json=gitProtocol" json:"git_protocol,omitempty"` + // Parameters to use with git -c (key=value pairs) + GitConfigOptions []string `protobuf:"bytes,7,rep,name=git_config_options,json=gitConfigOptions" json:"git_config_options,omitempty"` +} + +func (m *PostReceivePackRequest) Reset() { *m = PostReceivePackRequest{} } +func (m *PostReceivePackRequest) String() string { return proto.CompactTextString(m) } +func (*PostReceivePackRequest) ProtoMessage() {} +func (*PostReceivePackRequest) Descriptor() ([]byte, []int) { return fileDescriptor14, []int{4} } + +func (m *PostReceivePackRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *PostReceivePackRequest) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +func (m *PostReceivePackRequest) GetGlId() string { + if m != nil { + return m.GlId + } + return "" +} + +func (m *PostReceivePackRequest) GetGlRepository() string { + if m != nil { + return m.GlRepository + } + return "" +} + +func (m *PostReceivePackRequest) GetGlUsername() string { + if m != nil { + return m.GlUsername + } + return "" +} + +func (m *PostReceivePackRequest) GetGitProtocol() string { + if m != nil { + return m.GitProtocol + } + return "" +} + +func (m *PostReceivePackRequest) GetGitConfigOptions() []string { + if m != nil { + return m.GitConfigOptions + } + return nil +} + +type PostReceivePackResponse struct { + // Raw data from stdout of 'git receive-pack' + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` +} + +func (m *PostReceivePackResponse) Reset() { *m = PostReceivePackResponse{} } +func (m *PostReceivePackResponse) String() string { return proto.CompactTextString(m) } +func (*PostReceivePackResponse) ProtoMessage() {} +func (*PostReceivePackResponse) Descriptor() ([]byte, []int) { return fileDescriptor14, []int{5} } + +func (m *PostReceivePackResponse) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +func init() { + proto.RegisterType((*InfoRefsRequest)(nil), "gitaly.InfoRefsRequest") + proto.RegisterType((*InfoRefsResponse)(nil), "gitaly.InfoRefsResponse") + proto.RegisterType((*PostUploadPackRequest)(nil), "gitaly.PostUploadPackRequest") + proto.RegisterType((*PostUploadPackResponse)(nil), "gitaly.PostUploadPackResponse") + proto.RegisterType((*PostReceivePackRequest)(nil), "gitaly.PostReceivePackRequest") + proto.RegisterType((*PostReceivePackResponse)(nil), "gitaly.PostReceivePackResponse") +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// Client API for SmartHTTPService service + +type SmartHTTPServiceClient interface { + // The response body for GET /info/refs?service=git-upload-pack + InfoRefsUploadPack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTPService_InfoRefsUploadPackClient, error) + // The response body for GET /info/refs?service=git-receive-pack + InfoRefsReceivePack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTPService_InfoRefsReceivePackClient, error) + // Request and response body for POST /upload-pack + PostUploadPack(ctx context.Context, opts ...grpc.CallOption) (SmartHTTPService_PostUploadPackClient, error) + // Request and response body for POST /receive-pack + PostReceivePack(ctx context.Context, opts ...grpc.CallOption) (SmartHTTPService_PostReceivePackClient, error) +} + +type smartHTTPServiceClient struct { + cc *grpc.ClientConn +} + +func NewSmartHTTPServiceClient(cc *grpc.ClientConn) SmartHTTPServiceClient { + return &smartHTTPServiceClient{cc} +} + +func (c *smartHTTPServiceClient) InfoRefsUploadPack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTPService_InfoRefsUploadPackClient, error) { + stream, err := grpc.NewClientStream(ctx, &_SmartHTTPService_serviceDesc.Streams[0], c.cc, "/gitaly.SmartHTTPService/InfoRefsUploadPack", opts...) + if err != nil { + return nil, err + } + x := &smartHTTPServiceInfoRefsUploadPackClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type SmartHTTPService_InfoRefsUploadPackClient interface { + Recv() (*InfoRefsResponse, error) + grpc.ClientStream +} + +type smartHTTPServiceInfoRefsUploadPackClient struct { + grpc.ClientStream +} + +func (x *smartHTTPServiceInfoRefsUploadPackClient) Recv() (*InfoRefsResponse, error) { + m := new(InfoRefsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *smartHTTPServiceClient) InfoRefsReceivePack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTPService_InfoRefsReceivePackClient, error) { + stream, err := grpc.NewClientStream(ctx, &_SmartHTTPService_serviceDesc.Streams[1], c.cc, "/gitaly.SmartHTTPService/InfoRefsReceivePack", opts...) + if err != nil { + return nil, err + } + x := &smartHTTPServiceInfoRefsReceivePackClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type SmartHTTPService_InfoRefsReceivePackClient interface { + Recv() (*InfoRefsResponse, error) + grpc.ClientStream +} + +type smartHTTPServiceInfoRefsReceivePackClient struct { + grpc.ClientStream +} + +func (x *smartHTTPServiceInfoRefsReceivePackClient) Recv() (*InfoRefsResponse, error) { + m := new(InfoRefsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *smartHTTPServiceClient) PostUploadPack(ctx context.Context, opts ...grpc.CallOption) (SmartHTTPService_PostUploadPackClient, error) { + stream, err := grpc.NewClientStream(ctx, &_SmartHTTPService_serviceDesc.Streams[2], c.cc, "/gitaly.SmartHTTPService/PostUploadPack", opts...) + if err != nil { + return nil, err + } + x := &smartHTTPServicePostUploadPackClient{stream} + return x, nil +} + +type SmartHTTPService_PostUploadPackClient interface { + Send(*PostUploadPackRequest) error + Recv() (*PostUploadPackResponse, error) + grpc.ClientStream +} + +type smartHTTPServicePostUploadPackClient struct { + grpc.ClientStream +} + +func (x *smartHTTPServicePostUploadPackClient) Send(m *PostUploadPackRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *smartHTTPServicePostUploadPackClient) Recv() (*PostUploadPackResponse, error) { + m := new(PostUploadPackResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *smartHTTPServiceClient) PostReceivePack(ctx context.Context, opts ...grpc.CallOption) (SmartHTTPService_PostReceivePackClient, error) { + stream, err := grpc.NewClientStream(ctx, &_SmartHTTPService_serviceDesc.Streams[3], c.cc, "/gitaly.SmartHTTPService/PostReceivePack", opts...) + if err != nil { + return nil, err + } + x := &smartHTTPServicePostReceivePackClient{stream} + return x, nil +} + +type SmartHTTPService_PostReceivePackClient interface { + Send(*PostReceivePackRequest) error + Recv() (*PostReceivePackResponse, error) + grpc.ClientStream +} + +type smartHTTPServicePostReceivePackClient struct { + grpc.ClientStream +} + +func (x *smartHTTPServicePostReceivePackClient) Send(m *PostReceivePackRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *smartHTTPServicePostReceivePackClient) Recv() (*PostReceivePackResponse, error) { + m := new(PostReceivePackResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// Server API for SmartHTTPService service + +type SmartHTTPServiceServer interface { + // The response body for GET /info/refs?service=git-upload-pack + InfoRefsUploadPack(*InfoRefsRequest, SmartHTTPService_InfoRefsUploadPackServer) error + // The response body for GET /info/refs?service=git-receive-pack + InfoRefsReceivePack(*InfoRefsRequest, SmartHTTPService_InfoRefsReceivePackServer) error + // Request and response body for POST /upload-pack + PostUploadPack(SmartHTTPService_PostUploadPackServer) error + // Request and response body for POST /receive-pack + PostReceivePack(SmartHTTPService_PostReceivePackServer) error +} + +func RegisterSmartHTTPServiceServer(s *grpc.Server, srv SmartHTTPServiceServer) { + s.RegisterService(&_SmartHTTPService_serviceDesc, srv) +} + +func _SmartHTTPService_InfoRefsUploadPack_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(InfoRefsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(SmartHTTPServiceServer).InfoRefsUploadPack(m, &smartHTTPServiceInfoRefsUploadPackServer{stream}) +} + +type SmartHTTPService_InfoRefsUploadPackServer interface { + Send(*InfoRefsResponse) error + grpc.ServerStream +} + +type smartHTTPServiceInfoRefsUploadPackServer struct { + grpc.ServerStream +} + +func (x *smartHTTPServiceInfoRefsUploadPackServer) Send(m *InfoRefsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _SmartHTTPService_InfoRefsReceivePack_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(InfoRefsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(SmartHTTPServiceServer).InfoRefsReceivePack(m, &smartHTTPServiceInfoRefsReceivePackServer{stream}) +} + +type SmartHTTPService_InfoRefsReceivePackServer interface { + Send(*InfoRefsResponse) error + grpc.ServerStream +} + +type smartHTTPServiceInfoRefsReceivePackServer struct { + grpc.ServerStream +} + +func (x *smartHTTPServiceInfoRefsReceivePackServer) Send(m *InfoRefsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _SmartHTTPService_PostUploadPack_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(SmartHTTPServiceServer).PostUploadPack(&smartHTTPServicePostUploadPackServer{stream}) +} + +type SmartHTTPService_PostUploadPackServer interface { + Send(*PostUploadPackResponse) error + Recv() (*PostUploadPackRequest, error) + grpc.ServerStream +} + +type smartHTTPServicePostUploadPackServer struct { + grpc.ServerStream +} + +func (x *smartHTTPServicePostUploadPackServer) Send(m *PostUploadPackResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *smartHTTPServicePostUploadPackServer) Recv() (*PostUploadPackRequest, error) { + m := new(PostUploadPackRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _SmartHTTPService_PostReceivePack_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(SmartHTTPServiceServer).PostReceivePack(&smartHTTPServicePostReceivePackServer{stream}) +} + +type SmartHTTPService_PostReceivePackServer interface { + Send(*PostReceivePackResponse) error + Recv() (*PostReceivePackRequest, error) + grpc.ServerStream +} + +type smartHTTPServicePostReceivePackServer struct { + grpc.ServerStream +} + +func (x *smartHTTPServicePostReceivePackServer) Send(m *PostReceivePackResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *smartHTTPServicePostReceivePackServer) Recv() (*PostReceivePackRequest, error) { + m := new(PostReceivePackRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +var _SmartHTTPService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.SmartHTTPService", + HandlerType: (*SmartHTTPServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "InfoRefsUploadPack", + Handler: _SmartHTTPService_InfoRefsUploadPack_Handler, + ServerStreams: true, + }, + { + StreamName: "InfoRefsReceivePack", + Handler: _SmartHTTPService_InfoRefsReceivePack_Handler, + ServerStreams: true, + }, + { + StreamName: "PostUploadPack", + Handler: _SmartHTTPService_PostUploadPack_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "PostReceivePack", + Handler: _SmartHTTPService_PostReceivePack_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "smarthttp.proto", +} + +func init() { proto.RegisterFile("smarthttp.proto", fileDescriptor14) } + +var fileDescriptor14 = []byte{ + // 423 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x53, 0xd1, 0x8a, 0xd3, 0x40, + 0x14, 0x75, 0xd2, 0x6e, 0x65, 0x6f, 0xa3, 0x2d, 0x77, 0xd1, 0x0d, 0x01, 0xdd, 0x1a, 0x41, 0xf2, + 0xb0, 0x96, 0xa5, 0x7e, 0x82, 0x2f, 0x2e, 0x0a, 0x86, 0xd9, 0x2d, 0xf8, 0x16, 0xc6, 0x64, 0x3a, + 0x3b, 0x38, 0x9b, 0x89, 0x99, 0xd9, 0x85, 0xfe, 0x83, 0xcf, 0x7e, 0x87, 0x5f, 0xe4, 0xb7, 0x48, + 0x93, 0xa6, 0x69, 0x9b, 0x46, 0x44, 0xf1, 0x2d, 0xdc, 0x7b, 0x72, 0xee, 0x39, 0xe7, 0xde, 0x81, + 0x91, 0xb9, 0x65, 0x85, 0xbd, 0xb1, 0x36, 0x9f, 0xe6, 0x85, 0xb6, 0x1a, 0x07, 0x42, 0x5a, 0xa6, + 0x96, 0xbe, 0x6b, 0x6e, 0x58, 0xc1, 0xd3, 0xaa, 0x1a, 0x7c, 0x27, 0x30, 0xba, 0xcc, 0x16, 0x9a, + 0xf2, 0x85, 0xa1, 0xfc, 0xeb, 0x1d, 0x37, 0x16, 0x67, 0x00, 0x05, 0xcf, 0xb5, 0x91, 0x56, 0x17, + 0x4b, 0x8f, 0x4c, 0x48, 0x38, 0x9c, 0xe1, 0xb4, 0xfa, 0x7d, 0x4a, 0x37, 0x1d, 0xba, 0x85, 0xc2, + 0x73, 0x40, 0x21, 0x6d, 0x9c, 0xe8, 0x6c, 0x21, 0x45, 0xac, 0x73, 0x2b, 0x75, 0x66, 0x3c, 0x67, + 0xd2, 0x0b, 0x8f, 0xe9, 0x58, 0x48, 0xfb, 0xb6, 0x6c, 0x7c, 0xac, 0xea, 0xf8, 0x02, 0xdc, 0x15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 0xe0, 0xc1, 0x05, 0xc1, 0x0f, 0x70, 0xd2, 0xd4, 0x37, 0xa2, 0xfe, 0x96, + 0x6d, 0x0e, 0x8f, 0x77, 0x6f, 0x03, 0x9f, 0xd5, 0xf8, 0x83, 0x57, 0xee, 0x3f, 0xef, 0x6a, 0xd7, + 0xa4, 0x21, 0xb9, 0x20, 0xf8, 0x09, 0x46, 0x7b, 0xa9, 0xe1, 0xce, 0x8f, 0xed, 0xe3, 0xf2, 0xcf, + 0x3a, 0xfb, 0xdb, 0xcc, 0x9f, 0x07, 0xe5, 0x6a, 0xdf, 0xfc, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xf1, + 0x46, 0x34, 0x66, 0x70, 0x04, 0x00, 0x00, +} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/ssh.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/ssh.pb.go new file mode 100644 index 0000000..f3fc796 --- /dev/null +++ b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/ssh.pb.go @@ -0,0 +1,549 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: ssh.proto + +package gitalypb + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +type SSHUploadPackRequest struct { + // 'repository' must be present in the first message. + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + // A chunk of raw data to be copied to 'git upload-pack' standard input + Stdin []byte `protobuf:"bytes,2,opt,name=stdin,proto3" json:"stdin,omitempty"` + // Parameters to use with git -c (key=value pairs) + GitConfigOptions []string `protobuf:"bytes,4,rep,name=git_config_options,json=gitConfigOptions" json:"git_config_options,omitempty"` + // Git protocol version + GitProtocol string `protobuf:"bytes,5,opt,name=git_protocol,json=gitProtocol" json:"git_protocol,omitempty"` +} + +func (m *SSHUploadPackRequest) Reset() { *m = SSHUploadPackRequest{} } +func (m *SSHUploadPackRequest) String() string { return proto.CompactTextString(m) } +func (*SSHUploadPackRequest) ProtoMessage() {} +func (*SSHUploadPackRequest) Descriptor() ([]byte, []int) { return fileDescriptor15, []int{0} } + +func (m *SSHUploadPackRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *SSHUploadPackRequest) GetStdin() []byte { + if m != nil { + return m.Stdin + } + return nil +} + +func (m *SSHUploadPackRequest) GetGitConfigOptions() []string { + if m != nil { + return m.GitConfigOptions + } + return nil +} + +func (m *SSHUploadPackRequest) GetGitProtocol() string { + if m != nil { + return m.GitProtocol + } + return "" +} + +type SSHUploadPackResponse struct { + // A chunk of raw data from 'git upload-pack' standard output + Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` + // A chunk of raw data from 'git upload-pack' standard error + Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` + // This field may be nil. This is intentional: only when the remote + // command has finished can we return its exit status. + ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus" json:"exit_status,omitempty"` +} + +func (m *SSHUploadPackResponse) Reset() { *m = SSHUploadPackResponse{} } +func (m *SSHUploadPackResponse) String() string { return proto.CompactTextString(m) } +func (*SSHUploadPackResponse) ProtoMessage() {} +func (*SSHUploadPackResponse) Descriptor() ([]byte, []int) { return fileDescriptor15, []int{1} } + +func (m *SSHUploadPackResponse) GetStdout() []byte { + if m != nil { + return m.Stdout + } + return nil +} + +func (m *SSHUploadPackResponse) GetStderr() []byte { + if m != nil { + return m.Stderr + } + return nil +} + +func (m *SSHUploadPackResponse) GetExitStatus() *ExitStatus { + if m != nil { + return m.ExitStatus + } + return nil +} + +type SSHReceivePackRequest struct { + // 'repository' must be present in the first message. + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + // A chunk of raw data to be copied to 'git upload-pack' standard input + Stdin []byte `protobuf:"bytes,2,opt,name=stdin,proto3" json:"stdin,omitempty"` + // Contents of GL_ID, GL_REPOSITORY, and GL_USERNAME environment variables + // for 'git receive-pack' + GlId string `protobuf:"bytes,3,opt,name=gl_id,json=glId" json:"gl_id,omitempty"` + GlRepository string `protobuf:"bytes,4,opt,name=gl_repository,json=glRepository" json:"gl_repository,omitempty"` + GlUsername string `protobuf:"bytes,5,opt,name=gl_username,json=glUsername" json:"gl_username,omitempty"` + // Git protocol version + GitProtocol string `protobuf:"bytes,6,opt,name=git_protocol,json=gitProtocol" json:"git_protocol,omitempty"` + // Parameters to use with git -c (key=value pairs) + GitConfigOptions []string `protobuf:"bytes,7,rep,name=git_config_options,json=gitConfigOptions" json:"git_config_options,omitempty"` +} + +func (m *SSHReceivePackRequest) Reset() { *m = SSHReceivePackRequest{} } +func (m *SSHReceivePackRequest) String() string { return proto.CompactTextString(m) } +func (*SSHReceivePackRequest) ProtoMessage() {} +func (*SSHReceivePackRequest) Descriptor() ([]byte, []int) { return fileDescriptor15, []int{2} } + +func (m *SSHReceivePackRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *SSHReceivePackRequest) GetStdin() []byte { + if m != nil { + return m.Stdin + } + return nil +} + +func (m *SSHReceivePackRequest) GetGlId() string { + if m != nil { + return m.GlId + } + return "" +} + +func (m *SSHReceivePackRequest) GetGlRepository() string { + if m != nil { + return m.GlRepository + } + return "" +} + +func (m *SSHReceivePackRequest) GetGlUsername() string { + if m != nil { + return m.GlUsername + } + return "" +} + +func (m *SSHReceivePackRequest) GetGitProtocol() string { + if m != nil { + return m.GitProtocol + } + return "" +} + +func (m *SSHReceivePackRequest) GetGitConfigOptions() []string { + if m != nil { + return m.GitConfigOptions + } + return nil +} + +type SSHReceivePackResponse struct { + // A chunk of raw data from 'git receive-pack' standard output + Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` + // A chunk of raw data from 'git receive-pack' standard error + Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` + // This field may be nil. This is intentional: only when the remote + // command has finished can we return its exit status. + ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus" json:"exit_status,omitempty"` +} + +func (m *SSHReceivePackResponse) Reset() { *m = SSHReceivePackResponse{} } +func (m *SSHReceivePackResponse) String() string { return proto.CompactTextString(m) } +func (*SSHReceivePackResponse) ProtoMessage() {} +func (*SSHReceivePackResponse) Descriptor() ([]byte, []int) { return fileDescriptor15, []int{3} } + +func (m *SSHReceivePackResponse) GetStdout() []byte { + if m != nil { + return m.Stdout + } + return nil +} + +func (m *SSHReceivePackResponse) GetStderr() []byte { + if m != nil { + return m.Stderr + } + return nil +} + +func (m *SSHReceivePackResponse) GetExitStatus() *ExitStatus { + if m != nil { + return m.ExitStatus + } + return nil +} + +type SSHUploadArchiveRequest struct { + // 'repository' must be present in the first message. + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + // A chunk of raw data to be copied to 'git upload-archive' standard input + Stdin []byte `protobuf:"bytes,2,opt,name=stdin,proto3" json:"stdin,omitempty"` +} + +func (m *SSHUploadArchiveRequest) Reset() { *m = SSHUploadArchiveRequest{} } +func (m *SSHUploadArchiveRequest) String() string { return proto.CompactTextString(m) } +func (*SSHUploadArchiveRequest) ProtoMessage() {} +func (*SSHUploadArchiveRequest) Descriptor() ([]byte, []int) { return fileDescriptor15, []int{4} } + +func (m *SSHUploadArchiveRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *SSHUploadArchiveRequest) GetStdin() []byte { + if m != nil { + return m.Stdin + } + return nil +} + +type SSHUploadArchiveResponse struct { + // A chunk of raw data from 'git upload-archive' standard output + Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` + // A chunk of raw data from 'git upload-archive' standard error + Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` + // This value will only be set on the last message + ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus" json:"exit_status,omitempty"` +} + +func (m *SSHUploadArchiveResponse) Reset() { *m = SSHUploadArchiveResponse{} } +func (m *SSHUploadArchiveResponse) String() string { return proto.CompactTextString(m) } +func (*SSHUploadArchiveResponse) ProtoMessage() {} +func (*SSHUploadArchiveResponse) Descriptor() ([]byte, []int) { return fileDescriptor15, []int{5} } + +func (m *SSHUploadArchiveResponse) GetStdout() []byte { + if m != nil { + return m.Stdout + } + return nil +} + +func (m *SSHUploadArchiveResponse) GetStderr() []byte { + if m != nil { + return m.Stderr + } + return nil +} + +func (m *SSHUploadArchiveResponse) GetExitStatus() *ExitStatus { + if m != nil { + return m.ExitStatus + } + return nil +} + +func init() { + proto.RegisterType((*SSHUploadPackRequest)(nil), "gitaly.SSHUploadPackRequest") + proto.RegisterType((*SSHUploadPackResponse)(nil), "gitaly.SSHUploadPackResponse") + proto.RegisterType((*SSHReceivePackRequest)(nil), "gitaly.SSHReceivePackRequest") + proto.RegisterType((*SSHReceivePackResponse)(nil), "gitaly.SSHReceivePackResponse") + proto.RegisterType((*SSHUploadArchiveRequest)(nil), "gitaly.SSHUploadArchiveRequest") + proto.RegisterType((*SSHUploadArchiveResponse)(nil), "gitaly.SSHUploadArchiveResponse") +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// Client API for SSHService service + +type SSHServiceClient interface { + // To forward 'git upload-pack' to Gitaly for SSH sessions + SSHUploadPack(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHUploadPackClient, error) + // To forward 'git receive-pack' to Gitaly for SSH sessions + SSHReceivePack(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHReceivePackClient, error) + // To forward 'git upload-archive' to Gitaly for SSH sessions + SSHUploadArchive(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHUploadArchiveClient, error) +} + +type sSHServiceClient struct { + cc *grpc.ClientConn +} + +func NewSSHServiceClient(cc *grpc.ClientConn) SSHServiceClient { + return &sSHServiceClient{cc} +} + +func (c *sSHServiceClient) SSHUploadPack(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHUploadPackClient, error) { + stream, err := grpc.NewClientStream(ctx, &_SSHService_serviceDesc.Streams[0], c.cc, "/gitaly.SSHService/SSHUploadPack", opts...) + if err != nil { + return nil, err + } + x := &sSHServiceSSHUploadPackClient{stream} + return x, nil +} + +type SSHService_SSHUploadPackClient interface { + Send(*SSHUploadPackRequest) error + Recv() (*SSHUploadPackResponse, error) + grpc.ClientStream +} + +type sSHServiceSSHUploadPackClient struct { + grpc.ClientStream +} + +func (x *sSHServiceSSHUploadPackClient) Send(m *SSHUploadPackRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *sSHServiceSSHUploadPackClient) Recv() (*SSHUploadPackResponse, error) { + m := new(SSHUploadPackResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *sSHServiceClient) SSHReceivePack(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHReceivePackClient, error) { + stream, err := grpc.NewClientStream(ctx, &_SSHService_serviceDesc.Streams[1], c.cc, "/gitaly.SSHService/SSHReceivePack", opts...) + if err != nil { + return nil, err + } + x := &sSHServiceSSHReceivePackClient{stream} + return x, nil +} + +type SSHService_SSHReceivePackClient interface { + Send(*SSHReceivePackRequest) error + Recv() (*SSHReceivePackResponse, error) + grpc.ClientStream +} + +type sSHServiceSSHReceivePackClient struct { + grpc.ClientStream +} + +func (x *sSHServiceSSHReceivePackClient) Send(m *SSHReceivePackRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *sSHServiceSSHReceivePackClient) Recv() (*SSHReceivePackResponse, error) { + m := new(SSHReceivePackResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *sSHServiceClient) SSHUploadArchive(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHUploadArchiveClient, error) { + stream, err := grpc.NewClientStream(ctx, &_SSHService_serviceDesc.Streams[2], c.cc, "/gitaly.SSHService/SSHUploadArchive", opts...) + if err != nil { + return nil, err + } + x := &sSHServiceSSHUploadArchiveClient{stream} + return x, nil +} + +type SSHService_SSHUploadArchiveClient interface { + Send(*SSHUploadArchiveRequest) error + Recv() (*SSHUploadArchiveResponse, error) + grpc.ClientStream +} + +type sSHServiceSSHUploadArchiveClient struct { + grpc.ClientStream +} + +func (x *sSHServiceSSHUploadArchiveClient) Send(m *SSHUploadArchiveRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *sSHServiceSSHUploadArchiveClient) Recv() (*SSHUploadArchiveResponse, error) { + m := new(SSHUploadArchiveResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// Server API for SSHService service + +type SSHServiceServer interface { + // To forward 'git upload-pack' to Gitaly for SSH sessions + SSHUploadPack(SSHService_SSHUploadPackServer) error + // To forward 'git receive-pack' to Gitaly for SSH sessions + SSHReceivePack(SSHService_SSHReceivePackServer) error + // To forward 'git upload-archive' to Gitaly for SSH sessions + SSHUploadArchive(SSHService_SSHUploadArchiveServer) error +} + +func RegisterSSHServiceServer(s *grpc.Server, srv SSHServiceServer) { + s.RegisterService(&_SSHService_serviceDesc, srv) +} + +func _SSHService_SSHUploadPack_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(SSHServiceServer).SSHUploadPack(&sSHServiceSSHUploadPackServer{stream}) +} + +type SSHService_SSHUploadPackServer interface { + Send(*SSHUploadPackResponse) error + Recv() (*SSHUploadPackRequest, error) + grpc.ServerStream +} + +type sSHServiceSSHUploadPackServer struct { + grpc.ServerStream +} + +func (x *sSHServiceSSHUploadPackServer) Send(m *SSHUploadPackResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *sSHServiceSSHUploadPackServer) Recv() (*SSHUploadPackRequest, error) { + m := new(SSHUploadPackRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _SSHService_SSHReceivePack_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(SSHServiceServer).SSHReceivePack(&sSHServiceSSHReceivePackServer{stream}) +} + +type SSHService_SSHReceivePackServer interface { + Send(*SSHReceivePackResponse) error + Recv() (*SSHReceivePackRequest, error) + grpc.ServerStream +} + +type sSHServiceSSHReceivePackServer struct { + grpc.ServerStream +} + +func (x *sSHServiceSSHReceivePackServer) Send(m *SSHReceivePackResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *sSHServiceSSHReceivePackServer) Recv() (*SSHReceivePackRequest, error) { + m := new(SSHReceivePackRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _SSHService_SSHUploadArchive_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(SSHServiceServer).SSHUploadArchive(&sSHServiceSSHUploadArchiveServer{stream}) +} + +type SSHService_SSHUploadArchiveServer interface { + Send(*SSHUploadArchiveResponse) error + Recv() (*SSHUploadArchiveRequest, error) + grpc.ServerStream +} + +type sSHServiceSSHUploadArchiveServer struct { + grpc.ServerStream +} + +func (x *sSHServiceSSHUploadArchiveServer) Send(m *SSHUploadArchiveResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *sSHServiceSSHUploadArchiveServer) Recv() (*SSHUploadArchiveRequest, error) { + m := new(SSHUploadArchiveRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +var _SSHService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.SSHService", + HandlerType: (*SSHServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "SSHUploadPack", + Handler: _SSHService_SSHUploadPack_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "SSHReceivePack", + Handler: _SSHService_SSHReceivePack_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "SSHUploadArchive", + Handler: _SSHService_SSHUploadArchive_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "ssh.proto", +} + +func init() { proto.RegisterFile("ssh.proto", fileDescriptor15) } + +var fileDescriptor15 = []byte{ + // 452 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x53, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0xc5, 0x89, 0x13, 0xc8, 0xc4, 0x45, 0xd1, 0xd2, 0x16, 0x2b, 0x02, 0x6a, 0xcc, 0xc5, 0x07, + 0x14, 0xa1, 0xf4, 0x0b, 0x10, 0x42, 0x2a, 0x5c, 0xa8, 0xd6, 0xca, 0x89, 0x83, 0x65, 0xec, 0x61, + 0xb3, 0x62, 0xeb, 0x35, 0xbb, 0x9b, 0xa8, 0x95, 0x40, 0x7c, 0x01, 0x37, 0xbe, 0x8b, 0x6f, 0x42, + 0xac, 0x4d, 0xb0, 0xe3, 0xfa, 0x06, 0xb9, 0x79, 0xe6, 0x8d, 0xdf, 0xcc, 0xbc, 0x37, 0x0b, 0x13, + 0xad, 0xd7, 0x8b, 0x52, 0x49, 0x23, 0xc9, 0x98, 0x71, 0x93, 0x8a, 0x9b, 0xb9, 0xa7, 0xd7, 0xa9, + 0xc2, 0xbc, 0xca, 0x86, 0x3f, 0x1d, 0x38, 0x8e, 0xe3, 0x8b, 0x55, 0x29, 0x64, 0x9a, 0x5f, 0xa6, + 0xd9, 0x27, 0x8a, 0x9f, 0x37, 0xa8, 0x0d, 0x59, 0x02, 0x28, 0x2c, 0xa5, 0xe6, 0x46, 0xaa, 0x1b, + 0xdf, 0x09, 0x9c, 0x68, 0xba, 0x24, 0x8b, 0x8a, 0x63, 0x41, 0x77, 0x08, 0x6d, 0x54, 0x91, 0x63, + 0x18, 0x69, 0x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, 0xdc, 0x11, 0xbf, 0xc7, 0xcd, 0xbb, 0xb7, + 0xbb, 0x19, 0x7e, 0x85, 0xd3, 0x7d, 0x39, 0x0e, 0x69, 0x47, 0x06, 0x0f, 0x77, 0xc7, 0xf0, 0x52, + 0x65, 0x6b, 0xbe, 0xc5, 0x7f, 0xee, 0x47, 0xf8, 0x0d, 0xfc, 0x6e, 0x93, 0x03, 0x6e, 0xb9, 0xfc, + 0x31, 0x00, 0x88, 0xe3, 0x8b, 0x18, 0xd5, 0x96, 0x67, 0x48, 0x28, 0x1c, 0xb5, 0x5e, 0x00, 0x79, + 0xf4, 0xe7, 0xff, 0xdb, 0x1e, 0xfa, 0xfc, 0x71, 0x0f, 0x5a, 0x6d, 0x10, 0xde, 0x89, 0x9c, 0x17, + 0x0e, 0x59, 0xc1, 0xfd, 0xb6, 0x8f, 0xa4, 0xf9, 0x5b, 0xf7, 0xdc, 0xe7, 0x4f, 0xfa, 0xe0, 0x16, + 0xed, 0x7b, 0x98, 0xed, 0x4b, 0x47, 0xce, 0x3a, 0xf3, 0xb4, 0x9d, 0x9b, 0x07, 0xfd, 0x05, 0x4d, + 0xf2, 0x0f, 0x63, 0x7b, 0xc6, 0xe7, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x1e, 0x98, 0x8e, 0xd7, + 0x04, 0x05, 0x00, 0x00, +} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/storage.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/storage.pb.go new file mode 100644 index 0000000..1b5122d --- /dev/null +++ b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/storage.pb.go @@ -0,0 +1,243 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: storage.proto + +package gitalypb + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +type ListDirectoriesRequest struct { + StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName" json:"storage_name,omitempty"` + Depth uint32 `protobuf:"varint,2,opt,name=depth" json:"depth,omitempty"` +} + +func (m *ListDirectoriesRequest) Reset() { *m = ListDirectoriesRequest{} } +func (m *ListDirectoriesRequest) String() string { return proto.CompactTextString(m) } +func (*ListDirectoriesRequest) ProtoMessage() {} +func (*ListDirectoriesRequest) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{0} } + +func (m *ListDirectoriesRequest) GetStorageName() string { + if m != nil { + return m.StorageName + } + return "" +} + +func (m *ListDirectoriesRequest) GetDepth() uint32 { + if m != nil { + return m.Depth + } + return 0 +} + +type ListDirectoriesResponse struct { + Paths []string `protobuf:"bytes,1,rep,name=paths" json:"paths,omitempty"` +} + +func (m *ListDirectoriesResponse) Reset() { *m = ListDirectoriesResponse{} } +func (m *ListDirectoriesResponse) String() string { return proto.CompactTextString(m) } +func (*ListDirectoriesResponse) ProtoMessage() {} +func (*ListDirectoriesResponse) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{1} } + +func (m *ListDirectoriesResponse) GetPaths() []string { + if m != nil { + return m.Paths + } + return nil +} + +type DeleteAllRepositoriesRequest struct { + StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName" json:"storage_name,omitempty"` +} + +func (m *DeleteAllRepositoriesRequest) Reset() { *m = DeleteAllRepositoriesRequest{} } +func (m *DeleteAllRepositoriesRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteAllRepositoriesRequest) ProtoMessage() {} +func (*DeleteAllRepositoriesRequest) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{2} } + +func (m *DeleteAllRepositoriesRequest) GetStorageName() string { + if m != nil { + return m.StorageName + } + return "" +} + +type DeleteAllRepositoriesResponse struct { +} + +func (m *DeleteAllRepositoriesResponse) Reset() { *m = DeleteAllRepositoriesResponse{} } +func (m *DeleteAllRepositoriesResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteAllRepositoriesResponse) ProtoMessage() {} +func (*DeleteAllRepositoriesResponse) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{3} } + +func init() { + proto.RegisterType((*ListDirectoriesRequest)(nil), "gitaly.ListDirectoriesRequest") + proto.RegisterType((*ListDirectoriesResponse)(nil), "gitaly.ListDirectoriesResponse") + proto.RegisterType((*DeleteAllRepositoriesRequest)(nil), "gitaly.DeleteAllRepositoriesRequest") + proto.RegisterType((*DeleteAllRepositoriesResponse)(nil), "gitaly.DeleteAllRepositoriesResponse") +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// Client API for StorageService service + +type StorageServiceClient interface { + ListDirectories(ctx context.Context, in *ListDirectoriesRequest, opts ...grpc.CallOption) (StorageService_ListDirectoriesClient, error) + DeleteAllRepositories(ctx context.Context, in *DeleteAllRepositoriesRequest, opts ...grpc.CallOption) (*DeleteAllRepositoriesResponse, error) +} + +type storageServiceClient struct { + cc *grpc.ClientConn +} + +func NewStorageServiceClient(cc *grpc.ClientConn) StorageServiceClient { + return &storageServiceClient{cc} +} + +func (c *storageServiceClient) ListDirectories(ctx context.Context, in *ListDirectoriesRequest, opts ...grpc.CallOption) (StorageService_ListDirectoriesClient, error) { + stream, err := grpc.NewClientStream(ctx, &_StorageService_serviceDesc.Streams[0], c.cc, "/gitaly.StorageService/ListDirectories", opts...) + if err != nil { + return nil, err + } + x := &storageServiceListDirectoriesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type StorageService_ListDirectoriesClient interface { + Recv() (*ListDirectoriesResponse, error) + grpc.ClientStream +} + +type storageServiceListDirectoriesClient struct { + grpc.ClientStream +} + +func (x *storageServiceListDirectoriesClient) Recv() (*ListDirectoriesResponse, error) { + m := new(ListDirectoriesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *storageServiceClient) DeleteAllRepositories(ctx context.Context, in *DeleteAllRepositoriesRequest, opts ...grpc.CallOption) (*DeleteAllRepositoriesResponse, error) { + out := new(DeleteAllRepositoriesResponse) + err := grpc.Invoke(ctx, "/gitaly.StorageService/DeleteAllRepositories", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for StorageService service + +type StorageServiceServer interface { + ListDirectories(*ListDirectoriesRequest, StorageService_ListDirectoriesServer) error + DeleteAllRepositories(context.Context, *DeleteAllRepositoriesRequest) (*DeleteAllRepositoriesResponse, error) +} + +func RegisterStorageServiceServer(s *grpc.Server, srv StorageServiceServer) { + s.RegisterService(&_StorageService_serviceDesc, srv) +} + +func _StorageService_ListDirectories_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListDirectoriesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(StorageServiceServer).ListDirectories(m, &storageServiceListDirectoriesServer{stream}) +} + +type StorageService_ListDirectoriesServer interface { + Send(*ListDirectoriesResponse) error + grpc.ServerStream +} + +type storageServiceListDirectoriesServer struct { + grpc.ServerStream +} + +func (x *storageServiceListDirectoriesServer) Send(m *ListDirectoriesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _StorageService_DeleteAllRepositories_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteAllRepositoriesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(StorageServiceServer).DeleteAllRepositories(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.StorageService/DeleteAllRepositories", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(StorageServiceServer).DeleteAllRepositories(ctx, req.(*DeleteAllRepositoriesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _StorageService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.StorageService", + HandlerType: (*StorageServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "DeleteAllRepositories", + Handler: _StorageService_DeleteAllRepositories_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "ListDirectories", + Handler: _StorageService_ListDirectories_Handler, + ServerStreams: true, + }, + }, + Metadata: "storage.proto", +} + +func init() { proto.RegisterFile("storage.proto", fileDescriptor16) } + +var fileDescriptor16 = []byte{ + // 238 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2d, 0x2e, 0xc9, 0x2f, + 0x4a, 0x4c, 0x4f, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x4b, 0xcf, 0x2c, 0x49, 0xcc, + 0xa9, 0x54, 0x0a, 0xe4, 0x12, 0xf3, 0xc9, 0x2c, 0x2e, 0x71, 0xc9, 0x2c, 0x4a, 0x4d, 0x2e, 0xc9, + 0x2f, 0xca, 0x4c, 0x2d, 0x0e, 0x4a, 0x2d, 0x2c, 0x4d, 0x2d, 0x2e, 0x11, 0x52, 0xe4, 0xe2, 0x81, + 0x6a, 0x89, 0xcf, 0x4b, 0xcc, 0x4d, 0x95, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0xe2, 0x86, 0x8a, + 0xf9, 0x25, 0xe6, 0xa6, 0x0a, 0x89, 0x70, 0xb1, 0xa6, 0xa4, 0x16, 0x94, 0x64, 0x48, 0x30, 0x29, + 0x30, 0x6a, 0xf0, 0x06, 0x41, 0x38, 0x4a, 0xfa, 0x5c, 0xe2, 0x18, 0x46, 0x16, 0x17, 0xe4, 0xe7, + 0x15, 0x83, 0x35, 0x14, 0x24, 0x96, 0x64, 0x14, 0x4b, 0x30, 0x2a, 0x30, 0x6b, 0x70, 0x06, 0x41, + 0x38, 0x4a, 0x8e, 0x5c, 0x32, 0x2e, 0xa9, 0x39, 0xa9, 0x25, 0xa9, 0x8e, 0x39, 0x39, 0x41, 0xa9, + 0x05, 0xf9, 0xc5, 0x99, 0xa4, 0xba, 0x44, 0x49, 0x9e, 0x4b, 0x16, 0x87, 0x11, 0x10, 0x9b, 0x8d, + 0x2e, 0x30, 0x72, 0xf1, 0x05, 0x43, 0x34, 0x04, 0xa7, 0x16, 0x95, 0x65, 0x26, 0xa7, 0x0a, 0x85, + 0x71, 0xf1, 0xa3, 0xb9, 0x53, 0x48, 0x4e, 0x0f, 0x12, 0x2c, 0x7a, 0xd8, 0xc3, 0x44, 0x4a, 0x1e, + 0xa7, 0x3c, 0xc4, 0x1a, 0x25, 0x06, 0x03, 0x46, 0xa1, 0x34, 0x2e, 0x51, 0xac, 0x6e, 0x11, 0x52, + 0x81, 0xe9, 0xc6, 0xe7, 0x5b, 0x29, 0x55, 0x02, 0xaa, 0x60, 0x36, 0x25, 0xb1, 0x81, 0x63, 0xd2, + 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xb8, 0xfc, 0x6c, 0x48, 0xda, 0x01, 0x00, 0x00, +} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/wiki.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/wiki.pb.go new file mode 100644 index 0000000..5c83942 --- /dev/null +++ b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/gitalypb/wiki.pb.go @@ -0,0 +1,1236 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: wiki.proto + +package gitalypb + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +type WikiCommitDetails struct { + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Email []byte `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` + Message []byte `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` + UserId int32 `protobuf:"varint,4,opt,name=user_id,json=userId" json:"user_id,omitempty"` + UserName []byte `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` +} + +func (m *WikiCommitDetails) Reset() { *m = WikiCommitDetails{} } +func (m *WikiCommitDetails) String() string { return proto.CompactTextString(m) } +func (*WikiCommitDetails) ProtoMessage() {} +func (*WikiCommitDetails) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{0} } + +func (m *WikiCommitDetails) GetName() []byte { + if m != nil { + return m.Name + } + return nil +} + +func (m *WikiCommitDetails) GetEmail() []byte { + if m != nil { + return m.Email + } + return nil +} + +func (m *WikiCommitDetails) GetMessage() []byte { + if m != nil { + return m.Message + } + return nil +} + +func (m *WikiCommitDetails) GetUserId() int32 { + if m != nil { + return m.UserId + } + return 0 +} + +func (m *WikiCommitDetails) GetUserName() []byte { + if m != nil { + return m.UserName + } + return nil +} + +type WikiPageVersion struct { + Commit *GitCommit `protobuf:"bytes,1,opt,name=commit" json:"commit,omitempty"` + Format string `protobuf:"bytes,2,opt,name=format" json:"format,omitempty"` +} + +func (m *WikiPageVersion) Reset() { *m = WikiPageVersion{} } +func (m *WikiPageVersion) String() string { return proto.CompactTextString(m) } +func (*WikiPageVersion) ProtoMessage() {} +func (*WikiPageVersion) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{1} } + +func (m *WikiPageVersion) GetCommit() *GitCommit { + if m != nil { + return m.Commit + } + return nil +} + +func (m *WikiPageVersion) GetFormat() string { + if m != nil { + return m.Format + } + return "" +} + +type WikiPage struct { + // These fields are only present in the first message of a WikiPage stream + Version *WikiPageVersion `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"` + Format string `protobuf:"bytes,2,opt,name=format" json:"format,omitempty"` + Title []byte `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` + UrlPath string `protobuf:"bytes,4,opt,name=url_path,json=urlPath" json:"url_path,omitempty"` + Path []byte `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` + Name []byte `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` + Historical bool `protobuf:"varint,7,opt,name=historical" json:"historical,omitempty"` + // This field is present in all messages of a WikiPage stream + RawData []byte `protobuf:"bytes,8,opt,name=raw_data,json=rawData,proto3" json:"raw_data,omitempty"` +} + +func (m *WikiPage) Reset() { *m = WikiPage{} } +func (m *WikiPage) String() string { return proto.CompactTextString(m) } +func (*WikiPage) ProtoMessage() {} +func (*WikiPage) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{2} } + +func (m *WikiPage) GetVersion() *WikiPageVersion { + if m != nil { + return m.Version + } + return nil +} + +func (m *WikiPage) GetFormat() string { + if m != nil { + return m.Format + } + return "" +} + +func (m *WikiPage) GetTitle() []byte { + if m != nil { + return m.Title + } + return nil +} + +func (m *WikiPage) GetUrlPath() string { + if m != nil { + return m.UrlPath + } + return "" +} + +func (m *WikiPage) GetPath() []byte { + if m != nil { + return m.Path + } + return nil +} + +func (m *WikiPage) GetName() []byte { + if m != nil { + return m.Name + } + return nil +} + +func (m *WikiPage) GetHistorical() bool { + if m != nil { + return m.Historical + } + return false +} + +func (m *WikiPage) GetRawData() []byte { + if m != nil { + return m.RawData + } + return nil +} + +type WikiGetPageVersionsRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + PagePath []byte `protobuf:"bytes,2,opt,name=page_path,json=pagePath,proto3" json:"page_path,omitempty"` + Page int32 `protobuf:"varint,3,opt,name=page" json:"page,omitempty"` + PerPage int32 `protobuf:"varint,4,opt,name=per_page,json=perPage" json:"per_page,omitempty"` +} + +func (m *WikiGetPageVersionsRequest) Reset() { *m = WikiGetPageVersionsRequest{} } +func (m *WikiGetPageVersionsRequest) String() string { return proto.CompactTextString(m) } +func (*WikiGetPageVersionsRequest) ProtoMessage() {} +func (*WikiGetPageVersionsRequest) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{3} } + +func (m *WikiGetPageVersionsRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *WikiGetPageVersionsRequest) GetPagePath() []byte { + if m != nil { + return m.PagePath + } + return nil +} + +func (m *WikiGetPageVersionsRequest) GetPage() int32 { + if m != nil { + return m.Page + } + return 0 +} + +func (m *WikiGetPageVersionsRequest) GetPerPage() int32 { + if m != nil { + return m.PerPage + } + return 0 +} + +type WikiGetPageVersionsResponse struct { + Versions []*WikiPageVersion `protobuf:"bytes,1,rep,name=versions" json:"versions,omitempty"` +} + +func (m *WikiGetPageVersionsResponse) Reset() { *m = WikiGetPageVersionsResponse{} } +func (m *WikiGetPageVersionsResponse) String() string { return proto.CompactTextString(m) } +func (*WikiGetPageVersionsResponse) ProtoMessage() {} +func (*WikiGetPageVersionsResponse) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{4} } + +func (m *WikiGetPageVersionsResponse) GetVersions() []*WikiPageVersion { + if m != nil { + return m.Versions + } + return nil +} + +// This message is sent in a stream because the 'content' field may be large. +type WikiWritePageRequest struct { + // These following fields are only present in the first message. + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Format string `protobuf:"bytes,3,opt,name=format" json:"format,omitempty"` + CommitDetails *WikiCommitDetails `protobuf:"bytes,4,opt,name=commit_details,json=commitDetails" json:"commit_details,omitempty"` + // This field is present in all messages. + Content []byte `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` +} + +func (m *WikiWritePageRequest) Reset() { *m = WikiWritePageRequest{} } +func (m *WikiWritePageRequest) String() string { return proto.CompactTextString(m) } +func (*WikiWritePageRequest) ProtoMessage() {} +func (*WikiWritePageRequest) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{5} } + +func (m *WikiWritePageRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *WikiWritePageRequest) GetName() []byte { + if m != nil { + return m.Name + } + return nil +} + +func (m *WikiWritePageRequest) GetFormat() string { + if m != nil { + return m.Format + } + return "" +} + +func (m *WikiWritePageRequest) GetCommitDetails() *WikiCommitDetails { + if m != nil { + return m.CommitDetails + } + return nil +} + +func (m *WikiWritePageRequest) GetContent() []byte { + if m != nil { + return m.Content + } + return nil +} + +type WikiWritePageResponse struct { + DuplicateError []byte `protobuf:"bytes,1,opt,name=duplicate_error,json=duplicateError,proto3" json:"duplicate_error,omitempty"` +} + +func (m *WikiWritePageResponse) Reset() { *m = WikiWritePageResponse{} } +func (m *WikiWritePageResponse) String() string { return proto.CompactTextString(m) } +func (*WikiWritePageResponse) ProtoMessage() {} +func (*WikiWritePageResponse) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{6} } + +func (m *WikiWritePageResponse) GetDuplicateError() []byte { + if m != nil { + return m.DuplicateError + } + return nil +} + +type WikiUpdatePageRequest struct { + // There fields are only present in the first message of the stream + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + PagePath []byte `protobuf:"bytes,2,opt,name=page_path,json=pagePath,proto3" json:"page_path,omitempty"` + Title []byte `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` + Format string `protobuf:"bytes,4,opt,name=format" json:"format,omitempty"` + CommitDetails *WikiCommitDetails `protobuf:"bytes,5,opt,name=commit_details,json=commitDetails" json:"commit_details,omitempty"` + // This field is present in all messages + Content []byte `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` +} + +func (m *WikiUpdatePageRequest) Reset() { *m = WikiUpdatePageRequest{} } +func (m *WikiUpdatePageRequest) String() string { return proto.CompactTextString(m) } +func (*WikiUpdatePageRequest) ProtoMessage() {} +func (*WikiUpdatePageRequest) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{7} } + +func (m *WikiUpdatePageRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *WikiUpdatePageRequest) GetPagePath() []byte { + if m != nil { + return m.PagePath + } + return nil +} + +func (m *WikiUpdatePageRequest) GetTitle() []byte { + if m != nil { + return m.Title + } + return nil +} + +func (m *WikiUpdatePageRequest) GetFormat() string { + if m != nil { + return m.Format + } + return "" +} + +func (m *WikiUpdatePageRequest) GetCommitDetails() *WikiCommitDetails { + if m != nil { + return m.CommitDetails + } + return nil +} + +func (m *WikiUpdatePageRequest) GetContent() []byte { + if m != nil { + return m.Content + } + return nil +} + +type WikiUpdatePageResponse struct { + Error []byte `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *WikiUpdatePageResponse) Reset() { *m = WikiUpdatePageResponse{} } +func (m *WikiUpdatePageResponse) String() string { return proto.CompactTextString(m) } +func (*WikiUpdatePageResponse) ProtoMessage() {} +func (*WikiUpdatePageResponse) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{8} } + +func (m *WikiUpdatePageResponse) GetError() []byte { + if m != nil { + return m.Error + } + return nil +} + +type WikiDeletePageRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + PagePath []byte `protobuf:"bytes,2,opt,name=page_path,json=pagePath,proto3" json:"page_path,omitempty"` + CommitDetails *WikiCommitDetails `protobuf:"bytes,3,opt,name=commit_details,json=commitDetails" json:"commit_details,omitempty"` +} + +func (m *WikiDeletePageRequest) Reset() { *m = WikiDeletePageRequest{} } +func (m *WikiDeletePageRequest) String() string { return proto.CompactTextString(m) } +func (*WikiDeletePageRequest) ProtoMessage() {} +func (*WikiDeletePageRequest) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{9} } + +func (m *WikiDeletePageRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *WikiDeletePageRequest) GetPagePath() []byte { + if m != nil { + return m.PagePath + } + return nil +} + +func (m *WikiDeletePageRequest) GetCommitDetails() *WikiCommitDetails { + if m != nil { + return m.CommitDetails + } + return nil +} + +type WikiDeletePageResponse struct { +} + +func (m *WikiDeletePageResponse) Reset() { *m = WikiDeletePageResponse{} } +func (m *WikiDeletePageResponse) String() string { return proto.CompactTextString(m) } +func (*WikiDeletePageResponse) ProtoMessage() {} +func (*WikiDeletePageResponse) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{10} } + +type WikiFindPageRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Title []byte `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + Revision []byte `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"` + Directory []byte `protobuf:"bytes,4,opt,name=directory,proto3" json:"directory,omitempty"` +} + +func (m *WikiFindPageRequest) Reset() { *m = WikiFindPageRequest{} } +func (m *WikiFindPageRequest) String() string { return proto.CompactTextString(m) } +func (*WikiFindPageRequest) ProtoMessage() {} +func (*WikiFindPageRequest) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{11} } + +func (m *WikiFindPageRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *WikiFindPageRequest) GetTitle() []byte { + if m != nil { + return m.Title + } + return nil +} + +func (m *WikiFindPageRequest) GetRevision() []byte { + if m != nil { + return m.Revision + } + return nil +} + +func (m *WikiFindPageRequest) GetDirectory() []byte { + if m != nil { + return m.Directory + } + return nil +} + +// WikiFindPageResponse is a stream because we need multiple WikiPage +// messages to send the raw_data field. +type WikiFindPageResponse struct { + Page *WikiPage `protobuf:"bytes,1,opt,name=page" json:"page,omitempty"` +} + +func (m *WikiFindPageResponse) Reset() { *m = WikiFindPageResponse{} } +func (m *WikiFindPageResponse) String() string { return proto.CompactTextString(m) } +func (*WikiFindPageResponse) ProtoMessage() {} +func (*WikiFindPageResponse) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{12} } + +func (m *WikiFindPageResponse) GetPage() *WikiPage { + if m != nil { + return m.Page + } + return nil +} + +type WikiFindFileRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Optional: revision + Revision []byte `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"` +} + +func (m *WikiFindFileRequest) Reset() { *m = WikiFindFileRequest{} } +func (m *WikiFindFileRequest) String() string { return proto.CompactTextString(m) } +func (*WikiFindFileRequest) ProtoMessage() {} +func (*WikiFindFileRequest) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{13} } + +func (m *WikiFindFileRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *WikiFindFileRequest) GetName() []byte { + if m != nil { + return m.Name + } + return nil +} + +func (m *WikiFindFileRequest) GetRevision() []byte { + if m != nil { + return m.Revision + } + return nil +} + +type WikiFindFileResponse struct { + // If 'name' is empty, the file was not found. + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType" json:"mime_type,omitempty"` + RawData []byte `protobuf:"bytes,3,opt,name=raw_data,json=rawData,proto3" json:"raw_data,omitempty"` + Path []byte `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` +} + +func (m *WikiFindFileResponse) Reset() { *m = WikiFindFileResponse{} } +func (m *WikiFindFileResponse) String() string { return proto.CompactTextString(m) } +func (*WikiFindFileResponse) ProtoMessage() {} +func (*WikiFindFileResponse) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{14} } + +func (m *WikiFindFileResponse) GetName() []byte { + if m != nil { + return m.Name + } + return nil +} + +func (m *WikiFindFileResponse) GetMimeType() string { + if m != nil { + return m.MimeType + } + return "" +} + +func (m *WikiFindFileResponse) GetRawData() []byte { + if m != nil { + return m.RawData + } + return nil +} + +func (m *WikiFindFileResponse) GetPath() []byte { + if m != nil { + return m.Path + } + return nil +} + +type WikiGetAllPagesRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + // Passing 0 means no limit is applied + Limit uint32 `protobuf:"varint,2,opt,name=limit" json:"limit,omitempty"` +} + +func (m *WikiGetAllPagesRequest) Reset() { *m = WikiGetAllPagesRequest{} } +func (m *WikiGetAllPagesRequest) String() string { return proto.CompactTextString(m) } +func (*WikiGetAllPagesRequest) ProtoMessage() {} +func (*WikiGetAllPagesRequest) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{15} } + +func (m *WikiGetAllPagesRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *WikiGetAllPagesRequest) GetLimit() uint32 { + if m != nil { + return m.Limit + } + return 0 +} + +// The WikiGetAllPagesResponse stream is a concatenation of WikiPage streams +type WikiGetAllPagesResponse struct { + Page *WikiPage `protobuf:"bytes,1,opt,name=page" json:"page,omitempty"` + // When end_of_page is true it signals a change of page for the next Response message (if any) + EndOfPage bool `protobuf:"varint,2,opt,name=end_of_page,json=endOfPage" json:"end_of_page,omitempty"` +} + +func (m *WikiGetAllPagesResponse) Reset() { *m = WikiGetAllPagesResponse{} } +func (m *WikiGetAllPagesResponse) String() string { return proto.CompactTextString(m) } +func (*WikiGetAllPagesResponse) ProtoMessage() {} +func (*WikiGetAllPagesResponse) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{16} } + +func (m *WikiGetAllPagesResponse) GetPage() *WikiPage { + if m != nil { + return m.Page + } + return nil +} + +func (m *WikiGetAllPagesResponse) GetEndOfPage() bool { + if m != nil { + return m.EndOfPage + } + return false +} + +type WikiGetFormattedDataRequest struct { + Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` + Title []byte `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + Revision []byte `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"` + Directory []byte `protobuf:"bytes,4,opt,name=directory,proto3" json:"directory,omitempty"` +} + +func (m *WikiGetFormattedDataRequest) Reset() { *m = WikiGetFormattedDataRequest{} } +func (m *WikiGetFormattedDataRequest) String() string { return proto.CompactTextString(m) } +func (*WikiGetFormattedDataRequest) ProtoMessage() {} +func (*WikiGetFormattedDataRequest) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{17} } + +func (m *WikiGetFormattedDataRequest) GetRepository() *Repository { + if m != nil { + return m.Repository + } + return nil +} + +func (m *WikiGetFormattedDataRequest) GetTitle() []byte { + if m != nil { + return m.Title + } + return nil +} + +func (m *WikiGetFormattedDataRequest) GetRevision() []byte { + if m != nil { + return m.Revision + } + return nil +} + +func (m *WikiGetFormattedDataRequest) GetDirectory() []byte { + if m != nil { + return m.Directory + } + return nil +} + +type WikiGetFormattedDataResponse struct { + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` +} + +func (m *WikiGetFormattedDataResponse) Reset() { *m = WikiGetFormattedDataResponse{} } +func (m *WikiGetFormattedDataResponse) String() string { return proto.CompactTextString(m) } +func (*WikiGetFormattedDataResponse) ProtoMessage() {} +func (*WikiGetFormattedDataResponse) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{18} } + +func (m *WikiGetFormattedDataResponse) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +func init() { + proto.RegisterType((*WikiCommitDetails)(nil), "gitaly.WikiCommitDetails") + proto.RegisterType((*WikiPageVersion)(nil), "gitaly.WikiPageVersion") + proto.RegisterType((*WikiPage)(nil), "gitaly.WikiPage") + proto.RegisterType((*WikiGetPageVersionsRequest)(nil), "gitaly.WikiGetPageVersionsRequest") + proto.RegisterType((*WikiGetPageVersionsResponse)(nil), "gitaly.WikiGetPageVersionsResponse") + proto.RegisterType((*WikiWritePageRequest)(nil), "gitaly.WikiWritePageRequest") + proto.RegisterType((*WikiWritePageResponse)(nil), "gitaly.WikiWritePageResponse") + proto.RegisterType((*WikiUpdatePageRequest)(nil), "gitaly.WikiUpdatePageRequest") + proto.RegisterType((*WikiUpdatePageResponse)(nil), "gitaly.WikiUpdatePageResponse") + proto.RegisterType((*WikiDeletePageRequest)(nil), "gitaly.WikiDeletePageRequest") + proto.RegisterType((*WikiDeletePageResponse)(nil), "gitaly.WikiDeletePageResponse") + proto.RegisterType((*WikiFindPageRequest)(nil), "gitaly.WikiFindPageRequest") + proto.RegisterType((*WikiFindPageResponse)(nil), "gitaly.WikiFindPageResponse") + proto.RegisterType((*WikiFindFileRequest)(nil), "gitaly.WikiFindFileRequest") + proto.RegisterType((*WikiFindFileResponse)(nil), "gitaly.WikiFindFileResponse") + proto.RegisterType((*WikiGetAllPagesRequest)(nil), "gitaly.WikiGetAllPagesRequest") + proto.RegisterType((*WikiGetAllPagesResponse)(nil), "gitaly.WikiGetAllPagesResponse") + proto.RegisterType((*WikiGetFormattedDataRequest)(nil), "gitaly.WikiGetFormattedDataRequest") + proto.RegisterType((*WikiGetFormattedDataResponse)(nil), "gitaly.WikiGetFormattedDataResponse") +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// Client API for WikiService service + +type WikiServiceClient interface { + WikiGetPageVersions(ctx context.Context, in *WikiGetPageVersionsRequest, opts ...grpc.CallOption) (WikiService_WikiGetPageVersionsClient, error) + WikiWritePage(ctx context.Context, opts ...grpc.CallOption) (WikiService_WikiWritePageClient, error) + WikiUpdatePage(ctx context.Context, opts ...grpc.CallOption) (WikiService_WikiUpdatePageClient, error) + WikiDeletePage(ctx context.Context, in *WikiDeletePageRequest, opts ...grpc.CallOption) (*WikiDeletePageResponse, error) + // WikiFindPage returns a stream because the page's raw_data field may be arbitrarily large. + WikiFindPage(ctx context.Context, in *WikiFindPageRequest, opts ...grpc.CallOption) (WikiService_WikiFindPageClient, error) + WikiFindFile(ctx context.Context, in *WikiFindFileRequest, opts ...grpc.CallOption) (WikiService_WikiFindFileClient, error) + WikiGetAllPages(ctx context.Context, in *WikiGetAllPagesRequest, opts ...grpc.CallOption) (WikiService_WikiGetAllPagesClient, error) + WikiGetFormattedData(ctx context.Context, in *WikiGetFormattedDataRequest, opts ...grpc.CallOption) (WikiService_WikiGetFormattedDataClient, error) +} + +type wikiServiceClient struct { + cc *grpc.ClientConn +} + +func NewWikiServiceClient(cc *grpc.ClientConn) WikiServiceClient { + return &wikiServiceClient{cc} +} + +func (c *wikiServiceClient) WikiGetPageVersions(ctx context.Context, in *WikiGetPageVersionsRequest, opts ...grpc.CallOption) (WikiService_WikiGetPageVersionsClient, error) { + stream, err := grpc.NewClientStream(ctx, &_WikiService_serviceDesc.Streams[0], c.cc, "/gitaly.WikiService/WikiGetPageVersions", opts...) + if err != nil { + return nil, err + } + x := &wikiServiceWikiGetPageVersionsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type WikiService_WikiGetPageVersionsClient interface { + Recv() (*WikiGetPageVersionsResponse, error) + grpc.ClientStream +} + +type wikiServiceWikiGetPageVersionsClient struct { + grpc.ClientStream +} + +func (x *wikiServiceWikiGetPageVersionsClient) Recv() (*WikiGetPageVersionsResponse, error) { + m := new(WikiGetPageVersionsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *wikiServiceClient) WikiWritePage(ctx context.Context, opts ...grpc.CallOption) (WikiService_WikiWritePageClient, error) { + stream, err := grpc.NewClientStream(ctx, &_WikiService_serviceDesc.Streams[1], c.cc, "/gitaly.WikiService/WikiWritePage", opts...) + if err != nil { + return nil, err + } + x := &wikiServiceWikiWritePageClient{stream} + return x, nil +} + +type WikiService_WikiWritePageClient interface { + Send(*WikiWritePageRequest) error + CloseAndRecv() (*WikiWritePageResponse, error) + grpc.ClientStream +} + +type wikiServiceWikiWritePageClient struct { + grpc.ClientStream +} + +func (x *wikiServiceWikiWritePageClient) Send(m *WikiWritePageRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *wikiServiceWikiWritePageClient) CloseAndRecv() (*WikiWritePageResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(WikiWritePageResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *wikiServiceClient) WikiUpdatePage(ctx context.Context, opts ...grpc.CallOption) (WikiService_WikiUpdatePageClient, error) { + stream, err := grpc.NewClientStream(ctx, &_WikiService_serviceDesc.Streams[2], c.cc, "/gitaly.WikiService/WikiUpdatePage", opts...) + if err != nil { + return nil, err + } + x := &wikiServiceWikiUpdatePageClient{stream} + return x, nil +} + +type WikiService_WikiUpdatePageClient interface { + Send(*WikiUpdatePageRequest) error + CloseAndRecv() (*WikiUpdatePageResponse, error) + grpc.ClientStream +} + +type wikiServiceWikiUpdatePageClient struct { + grpc.ClientStream +} + +func (x *wikiServiceWikiUpdatePageClient) Send(m *WikiUpdatePageRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *wikiServiceWikiUpdatePageClient) CloseAndRecv() (*WikiUpdatePageResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(WikiUpdatePageResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *wikiServiceClient) WikiDeletePage(ctx context.Context, in *WikiDeletePageRequest, opts ...grpc.CallOption) (*WikiDeletePageResponse, error) { + out := new(WikiDeletePageResponse) + err := grpc.Invoke(ctx, "/gitaly.WikiService/WikiDeletePage", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *wikiServiceClient) WikiFindPage(ctx context.Context, in *WikiFindPageRequest, opts ...grpc.CallOption) (WikiService_WikiFindPageClient, error) { + stream, err := grpc.NewClientStream(ctx, &_WikiService_serviceDesc.Streams[3], c.cc, "/gitaly.WikiService/WikiFindPage", opts...) + if err != nil { + return nil, err + } + x := &wikiServiceWikiFindPageClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type WikiService_WikiFindPageClient interface { + Recv() (*WikiFindPageResponse, error) + grpc.ClientStream +} + +type wikiServiceWikiFindPageClient struct { + grpc.ClientStream +} + +func (x *wikiServiceWikiFindPageClient) Recv() (*WikiFindPageResponse, error) { + m := new(WikiFindPageResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *wikiServiceClient) WikiFindFile(ctx context.Context, in *WikiFindFileRequest, opts ...grpc.CallOption) (WikiService_WikiFindFileClient, error) { + stream, err := grpc.NewClientStream(ctx, &_WikiService_serviceDesc.Streams[4], c.cc, "/gitaly.WikiService/WikiFindFile", opts...) + if err != nil { + return nil, err + } + x := &wikiServiceWikiFindFileClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type WikiService_WikiFindFileClient interface { + Recv() (*WikiFindFileResponse, error) + grpc.ClientStream +} + +type wikiServiceWikiFindFileClient struct { + grpc.ClientStream +} + +func (x *wikiServiceWikiFindFileClient) Recv() (*WikiFindFileResponse, error) { + m := new(WikiFindFileResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *wikiServiceClient) WikiGetAllPages(ctx context.Context, in *WikiGetAllPagesRequest, opts ...grpc.CallOption) (WikiService_WikiGetAllPagesClient, error) { + stream, err := grpc.NewClientStream(ctx, &_WikiService_serviceDesc.Streams[5], c.cc, "/gitaly.WikiService/WikiGetAllPages", opts...) + if err != nil { + return nil, err + } + x := &wikiServiceWikiGetAllPagesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type WikiService_WikiGetAllPagesClient interface { + Recv() (*WikiGetAllPagesResponse, error) + grpc.ClientStream +} + +type wikiServiceWikiGetAllPagesClient struct { + grpc.ClientStream +} + +func (x *wikiServiceWikiGetAllPagesClient) Recv() (*WikiGetAllPagesResponse, error) { + m := new(WikiGetAllPagesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *wikiServiceClient) WikiGetFormattedData(ctx context.Context, in *WikiGetFormattedDataRequest, opts ...grpc.CallOption) (WikiService_WikiGetFormattedDataClient, error) { + stream, err := grpc.NewClientStream(ctx, &_WikiService_serviceDesc.Streams[6], c.cc, "/gitaly.WikiService/WikiGetFormattedData", opts...) + if err != nil { + return nil, err + } + x := &wikiServiceWikiGetFormattedDataClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type WikiService_WikiGetFormattedDataClient interface { + Recv() (*WikiGetFormattedDataResponse, error) + grpc.ClientStream +} + +type wikiServiceWikiGetFormattedDataClient struct { + grpc.ClientStream +} + +func (x *wikiServiceWikiGetFormattedDataClient) Recv() (*WikiGetFormattedDataResponse, error) { + m := new(WikiGetFormattedDataResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// Server API for WikiService service + +type WikiServiceServer interface { + WikiGetPageVersions(*WikiGetPageVersionsRequest, WikiService_WikiGetPageVersionsServer) error + WikiWritePage(WikiService_WikiWritePageServer) error + WikiUpdatePage(WikiService_WikiUpdatePageServer) error + WikiDeletePage(context.Context, *WikiDeletePageRequest) (*WikiDeletePageResponse, error) + // WikiFindPage returns a stream because the page's raw_data field may be arbitrarily large. + WikiFindPage(*WikiFindPageRequest, WikiService_WikiFindPageServer) error + WikiFindFile(*WikiFindFileRequest, WikiService_WikiFindFileServer) error + WikiGetAllPages(*WikiGetAllPagesRequest, WikiService_WikiGetAllPagesServer) error + WikiGetFormattedData(*WikiGetFormattedDataRequest, WikiService_WikiGetFormattedDataServer) error +} + +func RegisterWikiServiceServer(s *grpc.Server, srv WikiServiceServer) { + s.RegisterService(&_WikiService_serviceDesc, srv) +} + +func _WikiService_WikiGetPageVersions_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(WikiGetPageVersionsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(WikiServiceServer).WikiGetPageVersions(m, &wikiServiceWikiGetPageVersionsServer{stream}) +} + +type WikiService_WikiGetPageVersionsServer interface { + Send(*WikiGetPageVersionsResponse) error + grpc.ServerStream +} + +type wikiServiceWikiGetPageVersionsServer struct { + grpc.ServerStream +} + +func (x *wikiServiceWikiGetPageVersionsServer) Send(m *WikiGetPageVersionsResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _WikiService_WikiWritePage_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(WikiServiceServer).WikiWritePage(&wikiServiceWikiWritePageServer{stream}) +} + +type WikiService_WikiWritePageServer interface { + SendAndClose(*WikiWritePageResponse) error + Recv() (*WikiWritePageRequest, error) + grpc.ServerStream +} + +type wikiServiceWikiWritePageServer struct { + grpc.ServerStream +} + +func (x *wikiServiceWikiWritePageServer) SendAndClose(m *WikiWritePageResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *wikiServiceWikiWritePageServer) Recv() (*WikiWritePageRequest, error) { + m := new(WikiWritePageRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _WikiService_WikiUpdatePage_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(WikiServiceServer).WikiUpdatePage(&wikiServiceWikiUpdatePageServer{stream}) +} + +type WikiService_WikiUpdatePageServer interface { + SendAndClose(*WikiUpdatePageResponse) error + Recv() (*WikiUpdatePageRequest, error) + grpc.ServerStream +} + +type wikiServiceWikiUpdatePageServer struct { + grpc.ServerStream +} + +func (x *wikiServiceWikiUpdatePageServer) SendAndClose(m *WikiUpdatePageResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *wikiServiceWikiUpdatePageServer) Recv() (*WikiUpdatePageRequest, error) { + m := new(WikiUpdatePageRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _WikiService_WikiDeletePage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(WikiDeletePageRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WikiServiceServer).WikiDeletePage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gitaly.WikiService/WikiDeletePage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WikiServiceServer).WikiDeletePage(ctx, req.(*WikiDeletePageRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WikiService_WikiFindPage_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(WikiFindPageRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(WikiServiceServer).WikiFindPage(m, &wikiServiceWikiFindPageServer{stream}) +} + +type WikiService_WikiFindPageServer interface { + Send(*WikiFindPageResponse) error + grpc.ServerStream +} + +type wikiServiceWikiFindPageServer struct { + grpc.ServerStream +} + +func (x *wikiServiceWikiFindPageServer) Send(m *WikiFindPageResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _WikiService_WikiFindFile_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(WikiFindFileRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(WikiServiceServer).WikiFindFile(m, &wikiServiceWikiFindFileServer{stream}) +} + +type WikiService_WikiFindFileServer interface { + Send(*WikiFindFileResponse) error + grpc.ServerStream +} + +type wikiServiceWikiFindFileServer struct { + grpc.ServerStream +} + +func (x *wikiServiceWikiFindFileServer) Send(m *WikiFindFileResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _WikiService_WikiGetAllPages_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(WikiGetAllPagesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(WikiServiceServer).WikiGetAllPages(m, &wikiServiceWikiGetAllPagesServer{stream}) +} + +type WikiService_WikiGetAllPagesServer interface { + Send(*WikiGetAllPagesResponse) error + grpc.ServerStream +} + +type wikiServiceWikiGetAllPagesServer struct { + grpc.ServerStream +} + +func (x *wikiServiceWikiGetAllPagesServer) Send(m *WikiGetAllPagesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _WikiService_WikiGetFormattedData_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(WikiGetFormattedDataRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(WikiServiceServer).WikiGetFormattedData(m, &wikiServiceWikiGetFormattedDataServer{stream}) +} + +type WikiService_WikiGetFormattedDataServer interface { + Send(*WikiGetFormattedDataResponse) error + grpc.ServerStream +} + +type wikiServiceWikiGetFormattedDataServer struct { + grpc.ServerStream +} + +func (x *wikiServiceWikiGetFormattedDataServer) Send(m *WikiGetFormattedDataResponse) error { + return x.ServerStream.SendMsg(m) +} + +var _WikiService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gitaly.WikiService", + HandlerType: (*WikiServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "WikiDeletePage", + Handler: _WikiService_WikiDeletePage_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "WikiGetPageVersions", + Handler: _WikiService_WikiGetPageVersions_Handler, + ServerStreams: true, + }, + { + StreamName: "WikiWritePage", + Handler: _WikiService_WikiWritePage_Handler, + ClientStreams: true, + }, + { + StreamName: "WikiUpdatePage", + Handler: _WikiService_WikiUpdatePage_Handler, + ClientStreams: true, + }, + { + StreamName: "WikiFindPage", + Handler: _WikiService_WikiFindPage_Handler, + ServerStreams: true, + }, + { + StreamName: "WikiFindFile", + Handler: _WikiService_WikiFindFile_Handler, + ServerStreams: true, + }, + { + StreamName: "WikiGetAllPages", + Handler: _WikiService_WikiGetAllPages_Handler, + ServerStreams: true, + }, + { + StreamName: "WikiGetFormattedData", + Handler: _WikiService_WikiGetFormattedData_Handler, + ServerStreams: true, + }, + }, + Metadata: "wiki.proto", +} + +func init() { proto.RegisterFile("wiki.proto", fileDescriptor17) } + +var fileDescriptor17 = []byte{ + // 937 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0xcd, 0x6e, 0xe4, 0x44, + 0x10, 0x5e, 0x67, 0xfe, 0x3c, 0x95, 0x9f, 0x65, 0x9b, 0x65, 0xe3, 0x75, 0x42, 0x88, 0x9a, 0x95, + 0x08, 0x97, 0x08, 0x66, 0xaf, 0x1c, 0x16, 0x11, 0x12, 0x71, 0x00, 0x82, 0x77, 0xd9, 0x3d, 0x5a, + 0x9d, 0x71, 0x25, 0x69, 0xad, 0x3d, 0x36, 0xed, 0x9e, 0x44, 0xf3, 0x10, 0x3c, 0x00, 0x12, 0x17, + 0xae, 0x3c, 0x09, 0x67, 0xde, 0x82, 0x2b, 0x4f, 0x80, 0xfa, 0xc7, 0xe3, 0xb6, 0x67, 0x32, 0x28, + 0x0c, 0x48, 0xdc, 0xdc, 0x55, 0xdd, 0xd5, 0xf5, 0x7d, 0x5f, 0x57, 0xd5, 0x0c, 0xc0, 0x2d, 0x7f, + 0xcb, 0x8f, 0x0b, 0x91, 0xcb, 0x9c, 0xf4, 0xaf, 0xb8, 0x64, 0xe9, 0x2c, 0xdc, 0x2a, 0xaf, 0x99, + 0xc0, 0xc4, 0x58, 0xe9, 0x8f, 0x1e, 0x3c, 0x7a, 0xc3, 0xdf, 0xf2, 0x2f, 0xf2, 0x2c, 0xe3, 0xf2, + 0x04, 0x25, 0xe3, 0x69, 0x49, 0x08, 0x74, 0x27, 0x2c, 0xc3, 0xc0, 0x3b, 0xf4, 0x8e, 0xb6, 0x22, + 0xfd, 0x4d, 0x1e, 0x43, 0x0f, 0x33, 0xc6, 0xd3, 0x60, 0x43, 0x1b, 0xcd, 0x82, 0x04, 0x30, 0xc8, + 0xb0, 0x2c, 0xd9, 0x15, 0x06, 0x1d, 0x6d, 0xa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0xfa, 0x9d, 0xb8, 0x68, 0x1a, 0x4f, 0xfb, 0x5d, 0x92, 0xf6, 0x83, 0x59, 0x56, 0x58, 0xe1, + 0xb3, 0xd5, 0x9b, 0xea, 0x6b, 0x2e, 0xfa, 0xfa, 0x3f, 0xc0, 0xf3, 0xbf, 0x02, 0x00, 0x00, 0xff, + 0xff, 0x1d, 0x26, 0x5c, 0x57, 0x27, 0x0c, 0x00, 0x00, +} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/helper/inforefs.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/helper/inforefs.go deleted file mode 100644 index 5ddfbc2..0000000 --- a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/helper/inforefs.go +++ /dev/null @@ -1,32 +0,0 @@ -package helper - -import ( - "io" - - pb "gitlab.com/gitlab-org/gitaly-proto/go" -) - -type InfoRefsClient interface { - Recv() (*pb.InfoRefsResponse, error) -} - -type InfoRefsClientWriterTo struct { - InfoRefsClient -} - -func (clientReader *InfoRefsClientWriterTo) WriteTo(w io.Writer) (total int64, err error) { - for { - response, err := clientReader.Recv() - if err == io.EOF { - return total, nil - } else if err != nil { - return total, err - } - - n, err := w.Write(response.GetData()) - total += int64(n) - if err != nil { - return total, err - } - } -} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/helper/stream.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/helper/stream.go deleted file mode 100644 index 77cd157..0000000 --- a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/helper/stream.go +++ /dev/null @@ -1,44 +0,0 @@ -package helper - -import ( - "io" -) - -// NewReceiveReader turns receiver into an io.Reader. Errors from the -// receiver function are passed on unmodified. This means receiver should -// emit io.EOF when done. -func NewReceiveReader(receiver func() ([]byte, error)) io.Reader { - return &receiveReader{receiver: receiver} -} - -type receiveReader struct { - receiver func() ([]byte, error) - data []byte - err error -} - -func (rr *receiveReader) Read(p []byte) (int, error) { - if len(rr.data) == 0 { - rr.data, rr.err = rr.receiver() - } - n := copy(p, rr.data) - rr.data = rr.data[n:] - if len(rr.data) == 0 { - return n, rr.err - } - return n, nil -} - -// NewSendWriter turns sender into an io.Writer. The number of 'bytes -// written' reported back is always len(p). -func NewSendWriter(sender func(p []byte) error) io.Writer { - return &sendWriter{sender: sender} -} - -type sendWriter struct { - sender func([]byte) error -} - -func (sw *sendWriter) Write(p []byte) (int, error) { - return len(p), sw.sender(p) -} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/namespace.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/namespace.pb.go deleted file mode 100644 index bc9c575..0000000 --- a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/namespace.pb.go +++ /dev/null @@ -1,369 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: namespace.proto - -package gitaly - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -type AddNamespaceRequest struct { - StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName" json:"storage_name,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` -} - -func (m *AddNamespaceRequest) Reset() { *m = AddNamespaceRequest{} } -func (m *AddNamespaceRequest) String() string { return proto.CompactTextString(m) } -func (*AddNamespaceRequest) ProtoMessage() {} -func (*AddNamespaceRequest) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{0} } - -func (m *AddNamespaceRequest) GetStorageName() string { - if m != nil { - return m.StorageName - } - return "" -} - -func (m *AddNamespaceRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type RemoveNamespaceRequest struct { - StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName" json:"storage_name,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` -} - -func (m *RemoveNamespaceRequest) Reset() { *m = RemoveNamespaceRequest{} } -func (m *RemoveNamespaceRequest) String() string { return proto.CompactTextString(m) } -func (*RemoveNamespaceRequest) ProtoMessage() {} -func (*RemoveNamespaceRequest) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{1} } - -func (m *RemoveNamespaceRequest) GetStorageName() string { - if m != nil { - return m.StorageName - } - return "" -} - -func (m *RemoveNamespaceRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type RenameNamespaceRequest struct { - StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName" json:"storage_name,omitempty"` - From string `protobuf:"bytes,2,opt,name=from" json:"from,omitempty"` - To string `protobuf:"bytes,3,opt,name=to" json:"to,omitempty"` -} - -func (m *RenameNamespaceRequest) Reset() { *m = RenameNamespaceRequest{} } -func (m *RenameNamespaceRequest) String() string { return proto.CompactTextString(m) } -func (*RenameNamespaceRequest) ProtoMessage() {} -func (*RenameNamespaceRequest) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{2} } - -func (m *RenameNamespaceRequest) GetStorageName() string { - if m != nil { - return m.StorageName - } - return "" -} - -func (m *RenameNamespaceRequest) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *RenameNamespaceRequest) GetTo() string { - if m != nil { - return m.To - } - return "" -} - -type NamespaceExistsRequest struct { - StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName" json:"storage_name,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` -} - -func (m *NamespaceExistsRequest) Reset() { *m = NamespaceExistsRequest{} } -func (m *NamespaceExistsRequest) String() string { return proto.CompactTextString(m) } -func (*NamespaceExistsRequest) ProtoMessage() {} -func (*NamespaceExistsRequest) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{3} } - -func (m *NamespaceExistsRequest) GetStorageName() string { - if m != nil { - return m.StorageName - } - return "" -} - -func (m *NamespaceExistsRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type NamespaceExistsResponse struct { - Exists bool `protobuf:"varint,1,opt,name=exists" json:"exists,omitempty"` -} - -func (m *NamespaceExistsResponse) Reset() { *m = NamespaceExistsResponse{} } -func (m *NamespaceExistsResponse) String() string { return proto.CompactTextString(m) } -func (*NamespaceExistsResponse) ProtoMessage() {} -func (*NamespaceExistsResponse) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{4} } - -func (m *NamespaceExistsResponse) GetExists() bool { - if m != nil { - return m.Exists - } - return false -} - -type AddNamespaceResponse struct { -} - -func (m *AddNamespaceResponse) Reset() { *m = AddNamespaceResponse{} } -func (m *AddNamespaceResponse) String() string { return proto.CompactTextString(m) } -func (*AddNamespaceResponse) ProtoMessage() {} -func (*AddNamespaceResponse) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{5} } - -type RemoveNamespaceResponse struct { -} - -func (m *RemoveNamespaceResponse) Reset() { *m = RemoveNamespaceResponse{} } -func (m *RemoveNamespaceResponse) String() string { return proto.CompactTextString(m) } -func (*RemoveNamespaceResponse) ProtoMessage() {} -func (*RemoveNamespaceResponse) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{6} } - -type RenameNamespaceResponse struct { -} - -func (m *RenameNamespaceResponse) Reset() { *m = RenameNamespaceResponse{} } -func (m *RenameNamespaceResponse) String() string { return proto.CompactTextString(m) } -func (*RenameNamespaceResponse) ProtoMessage() {} -func (*RenameNamespaceResponse) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{7} } - -func init() { - proto.RegisterType((*AddNamespaceRequest)(nil), "gitaly.AddNamespaceRequest") - proto.RegisterType((*RemoveNamespaceRequest)(nil), "gitaly.RemoveNamespaceRequest") - proto.RegisterType((*RenameNamespaceRequest)(nil), "gitaly.RenameNamespaceRequest") - proto.RegisterType((*NamespaceExistsRequest)(nil), "gitaly.NamespaceExistsRequest") - proto.RegisterType((*NamespaceExistsResponse)(nil), "gitaly.NamespaceExistsResponse") - proto.RegisterType((*AddNamespaceResponse)(nil), "gitaly.AddNamespaceResponse") - proto.RegisterType((*RemoveNamespaceResponse)(nil), "gitaly.RemoveNamespaceResponse") - proto.RegisterType((*RenameNamespaceResponse)(nil), "gitaly.RenameNamespaceResponse") -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for NamespaceService service - -type NamespaceServiceClient interface { - AddNamespace(ctx context.Context, in *AddNamespaceRequest, opts ...grpc.CallOption) (*AddNamespaceResponse, error) - RemoveNamespace(ctx context.Context, in *RemoveNamespaceRequest, opts ...grpc.CallOption) (*RemoveNamespaceResponse, error) - RenameNamespace(ctx context.Context, in *RenameNamespaceRequest, opts ...grpc.CallOption) (*RenameNamespaceResponse, error) - NamespaceExists(ctx context.Context, in *NamespaceExistsRequest, opts ...grpc.CallOption) (*NamespaceExistsResponse, error) -} - -type namespaceServiceClient struct { - cc *grpc.ClientConn -} - -func NewNamespaceServiceClient(cc *grpc.ClientConn) NamespaceServiceClient { - return &namespaceServiceClient{cc} -} - -func (c *namespaceServiceClient) AddNamespace(ctx context.Context, in *AddNamespaceRequest, opts ...grpc.CallOption) (*AddNamespaceResponse, error) { - out := new(AddNamespaceResponse) - err := grpc.Invoke(ctx, "/gitaly.NamespaceService/AddNamespace", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *namespaceServiceClient) RemoveNamespace(ctx context.Context, in *RemoveNamespaceRequest, opts ...grpc.CallOption) (*RemoveNamespaceResponse, error) { - out := new(RemoveNamespaceResponse) - err := grpc.Invoke(ctx, "/gitaly.NamespaceService/RemoveNamespace", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *namespaceServiceClient) RenameNamespace(ctx context.Context, in *RenameNamespaceRequest, opts ...grpc.CallOption) (*RenameNamespaceResponse, error) { - out := new(RenameNamespaceResponse) - err := grpc.Invoke(ctx, "/gitaly.NamespaceService/RenameNamespace", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *namespaceServiceClient) NamespaceExists(ctx context.Context, in *NamespaceExistsRequest, opts ...grpc.CallOption) (*NamespaceExistsResponse, error) { - out := new(NamespaceExistsResponse) - err := grpc.Invoke(ctx, "/gitaly.NamespaceService/NamespaceExists", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for NamespaceService service - -type NamespaceServiceServer interface { - AddNamespace(context.Context, *AddNamespaceRequest) (*AddNamespaceResponse, error) - RemoveNamespace(context.Context, *RemoveNamespaceRequest) (*RemoveNamespaceResponse, error) - RenameNamespace(context.Context, *RenameNamespaceRequest) (*RenameNamespaceResponse, error) - NamespaceExists(context.Context, *NamespaceExistsRequest) (*NamespaceExistsResponse, error) -} - -func RegisterNamespaceServiceServer(s *grpc.Server, srv NamespaceServiceServer) { - s.RegisterService(&_NamespaceService_serviceDesc, srv) -} - -func _NamespaceService_AddNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddNamespaceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(NamespaceServiceServer).AddNamespace(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.NamespaceService/AddNamespace", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NamespaceServiceServer).AddNamespace(ctx, req.(*AddNamespaceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _NamespaceService_RemoveNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveNamespaceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(NamespaceServiceServer).RemoveNamespace(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.NamespaceService/RemoveNamespace", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NamespaceServiceServer).RemoveNamespace(ctx, req.(*RemoveNamespaceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _NamespaceService_RenameNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RenameNamespaceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(NamespaceServiceServer).RenameNamespace(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.NamespaceService/RenameNamespace", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NamespaceServiceServer).RenameNamespace(ctx, req.(*RenameNamespaceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _NamespaceService_NamespaceExists_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(NamespaceExistsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(NamespaceServiceServer).NamespaceExists(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.NamespaceService/NamespaceExists", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NamespaceServiceServer).NamespaceExists(ctx, req.(*NamespaceExistsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _NamespaceService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.NamespaceService", - HandlerType: (*NamespaceServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "AddNamespace", - Handler: _NamespaceService_AddNamespace_Handler, - }, - { - MethodName: "RemoveNamespace", - Handler: _NamespaceService_RemoveNamespace_Handler, - }, - { - MethodName: "RenameNamespace", - Handler: _NamespaceService_RenameNamespace_Handler, - }, - { - MethodName: "NamespaceExists", - Handler: _NamespaceService_NamespaceExists_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "namespace.proto", -} - -func init() { proto.RegisterFile("namespace.proto", fileDescriptor5) } - -var fileDescriptor5 = []byte{ - // 291 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xcf, 0x4b, 0xcc, 0x4d, - 0x2d, 0x2e, 0x48, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x4b, 0xcf, 0x2c, - 0x49, 0xcc, 0xa9, 0x54, 0xf2, 0xe1, 0x12, 0x76, 0x4c, 0x49, 0xf1, 0x83, 0xc9, 0x06, 0xa5, 0x16, - 0x96, 0xa6, 0x16, 0x97, 0x08, 0x29, 0x72, 0xf1, 0x14, 0x97, 0xe4, 0x17, 0x25, 0xa6, 0xa7, 0xc6, - 0x83, 0x74, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x71, 0x43, 0xc5, 0x40, 0xca, 0x85, 0x84, - 0xb8, 0x58, 0xc0, 0x52, 0x4c, 0x60, 0x29, 0x30, 0x5b, 0xc9, 0x9f, 0x4b, 0x2c, 0x28, 0x35, 0x37, - 0xbf, 0x2c, 0x95, 0x5a, 0x06, 0xc6, 0x83, 0x0c, 0x04, 0xb1, 0xc8, 0x34, 0x30, 0xad, 0x28, 0x3f, - 0x17, 0x66, 0x20, 0x88, 0x2d, 0xc4, 0xc7, 0xc5, 0x54, 0x92, 0x2f, 0xc1, 0x0c, 0x16, 0x61, 0x2a, - 0xc9, 0x07, 0xb9, 0x18, 0x6e, 0xb4, 0x6b, 0x45, 0x66, 0x71, 0x49, 0x31, 0x85, 0x2e, 0x36, 0xe4, - 0x12, 0xc7, 0x30, 0xb0, 0xb8, 0x20, 0x3f, 0xaf, 0x38, 0x55, 0x48, 0x8c, 0x8b, 0x2d, 0x15, 0x2c, - 0x02, 0x36, 0x8b, 0x23, 0x08, 0xca, 0x53, 0x12, 0xe3, 0x12, 0x41, 0x8d, 0x03, 0x88, 0x7a, 0x25, - 0x49, 0x2e, 0x71, 0x8c, 0xd0, 0x44, 0x96, 0x42, 0x0b, 0x17, 0x88, 0x94, 0xd1, 0x43, 0x26, 0x2e, - 0x01, 0xb8, 0x68, 0x70, 0x6a, 0x51, 0x59, 0x66, 0x72, 0xaa, 0x90, 0x37, 0x17, 0x0f, 0xb2, 0x15, - 0x42, 0xd2, 0x7a, 0x90, 0xf8, 0xd7, 0xc3, 0x12, 0xf9, 0x52, 0x32, 0xd8, 0x25, 0xa1, 0x56, 0x33, - 0x08, 0x85, 0x70, 0xf1, 0xa3, 0xb9, 0x4b, 0x48, 0x0e, 0xa6, 0x05, 0x7b, 0xf4, 0x4b, 0xc9, 0xe3, - 0x94, 0x47, 0x35, 0x15, 0xc5, 0x4b, 0xc8, 0xa6, 0x62, 0x4b, 0x03, 0xc8, 0xa6, 0x62, 0x0d, 0x0b, - 0x88, 0xa9, 0x68, 0xd1, 0x81, 0x30, 0x15, 0x7b, 0xc4, 0x23, 0x4c, 0xc5, 0x11, 0x8f, 0x4a, 0x0c, - 0x49, 0x6c, 0xe0, 0x4c, 0x64, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xe3, 0x36, 0x4b, 0x73, 0x57, - 0x03, 0x00, 0x00, -} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/notifications.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/notifications.pb.go deleted file mode 100644 index de7eac2..0000000 --- a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/notifications.pb.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: notifications.proto - -package gitaly - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -type PostReceiveRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` -} - -func (m *PostReceiveRequest) Reset() { *m = PostReceiveRequest{} } -func (m *PostReceiveRequest) String() string { return proto.CompactTextString(m) } -func (*PostReceiveRequest) ProtoMessage() {} -func (*PostReceiveRequest) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{0} } - -func (m *PostReceiveRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -type PostReceiveResponse struct { -} - -func (m *PostReceiveResponse) Reset() { *m = PostReceiveResponse{} } -func (m *PostReceiveResponse) String() string { return proto.CompactTextString(m) } -func (*PostReceiveResponse) ProtoMessage() {} -func (*PostReceiveResponse) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{1} } - -func init() { - proto.RegisterType((*PostReceiveRequest)(nil), "gitaly.PostReceiveRequest") - proto.RegisterType((*PostReceiveResponse)(nil), "gitaly.PostReceiveResponse") -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for NotificationService service - -type NotificationServiceClient interface { - PostReceive(ctx context.Context, in *PostReceiveRequest, opts ...grpc.CallOption) (*PostReceiveResponse, error) -} - -type notificationServiceClient struct { - cc *grpc.ClientConn -} - -func NewNotificationServiceClient(cc *grpc.ClientConn) NotificationServiceClient { - return ¬ificationServiceClient{cc} -} - -func (c *notificationServiceClient) PostReceive(ctx context.Context, in *PostReceiveRequest, opts ...grpc.CallOption) (*PostReceiveResponse, error) { - out := new(PostReceiveResponse) - err := grpc.Invoke(ctx, "/gitaly.NotificationService/PostReceive", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for NotificationService service - -type NotificationServiceServer interface { - PostReceive(context.Context, *PostReceiveRequest) (*PostReceiveResponse, error) -} - -func RegisterNotificationServiceServer(s *grpc.Server, srv NotificationServiceServer) { - s.RegisterService(&_NotificationService_serviceDesc, srv) -} - -func _NotificationService_PostReceive_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PostReceiveRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(NotificationServiceServer).PostReceive(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.NotificationService/PostReceive", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NotificationServiceServer).PostReceive(ctx, req.(*PostReceiveRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _NotificationService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.NotificationService", - HandlerType: (*NotificationServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "PostReceive", - Handler: _NotificationService_PostReceive_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "notifications.proto", -} - -func init() { proto.RegisterFile("notifications.proto", fileDescriptor6) } - -var fileDescriptor6 = []byte{ - // 170 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xce, 0xcb, 0x2f, 0xc9, - 0x4c, 0xcb, 0x4c, 0x4e, 0x2c, 0xc9, 0xcc, 0xcf, 0x2b, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, - 0x62, 0x4b, 0xcf, 0x2c, 0x49, 0xcc, 0xa9, 0x94, 0xe2, 0x29, 0xce, 0x48, 0x2c, 0x4a, 0x4d, 0x81, - 0x88, 0x2a, 0x79, 0x70, 0x09, 0x05, 0xe4, 0x17, 0x97, 0x04, 0xa5, 0x26, 0xa7, 0x66, 0x96, 0xa5, - 0x06, 0xa5, 0x16, 0x96, 0xa6, 0x16, 0x97, 0x08, 0x19, 0x71, 0x71, 0x15, 0xa5, 0x16, 0xe4, 0x17, - 0x67, 0x96, 0xe4, 0x17, 0x55, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0x09, 0xe9, 0x41, 0x0c, - 0xd0, 0x0b, 0x82, 0xcb, 0x04, 0x21, 0xa9, 0x52, 0x12, 0xe5, 0x12, 0x46, 0x31, 0xa9, 0xb8, 0x20, - 0x3f, 0xaf, 0x38, 0xd5, 0x28, 0x9e, 0x4b, 0xd8, 0x0f, 0xc9, 0x35, 0xc1, 0xa9, 0x45, 0x65, 0x99, - 0xc9, 0xa9, 0x42, 0x1e, 0x5c, 0xdc, 0x48, 0xaa, 0x85, 0xa4, 0x60, 0x86, 0x63, 0x3a, 0x46, 0x4a, - 0x1a, 0xab, 0x1c, 0xc4, 0x78, 0x25, 0x86, 0x24, 0x36, 0xb0, 0x47, 0x8c, 0x01, 0x01, 0x00, 0x00, - 0xff, 0xff, 0x98, 0xea, 0xcc, 0xff, 0xf5, 0x00, 0x00, 0x00, -} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/operations.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/operations.pb.go deleted file mode 100644 index 793e319..0000000 --- a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/operations.pb.go +++ /dev/null @@ -1,1963 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: operations.proto - -package gitaly - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -type UserCommitFilesActionHeader_ActionType int32 - -const ( - UserCommitFilesActionHeader_CREATE UserCommitFilesActionHeader_ActionType = 0 - UserCommitFilesActionHeader_CREATE_DIR UserCommitFilesActionHeader_ActionType = 1 - UserCommitFilesActionHeader_UPDATE UserCommitFilesActionHeader_ActionType = 2 - UserCommitFilesActionHeader_MOVE UserCommitFilesActionHeader_ActionType = 3 - UserCommitFilesActionHeader_DELETE UserCommitFilesActionHeader_ActionType = 4 -) - -var UserCommitFilesActionHeader_ActionType_name = map[int32]string{ - 0: "CREATE", - 1: "CREATE_DIR", - 2: "UPDATE", - 3: "MOVE", - 4: "DELETE", -} -var UserCommitFilesActionHeader_ActionType_value = map[string]int32{ - "CREATE": 0, - "CREATE_DIR": 1, - "UPDATE": 2, - "MOVE": 3, - "DELETE": 4, -} - -func (x UserCommitFilesActionHeader_ActionType) String() string { - return proto.EnumName(UserCommitFilesActionHeader_ActionType_name, int32(x)) -} -func (UserCommitFilesActionHeader_ActionType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor7, []int{19, 0} -} - -type UserCreateBranchRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - BranchName []byte `protobuf:"bytes,2,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"` - User *User `protobuf:"bytes,3,opt,name=user" json:"user,omitempty"` - StartPoint []byte `protobuf:"bytes,4,opt,name=start_point,json=startPoint,proto3" json:"start_point,omitempty"` -} - -func (m *UserCreateBranchRequest) Reset() { *m = UserCreateBranchRequest{} } -func (m *UserCreateBranchRequest) String() string { return proto.CompactTextString(m) } -func (*UserCreateBranchRequest) ProtoMessage() {} -func (*UserCreateBranchRequest) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{0} } - -func (m *UserCreateBranchRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *UserCreateBranchRequest) GetBranchName() []byte { - if m != nil { - return m.BranchName - } - return nil -} - -func (m *UserCreateBranchRequest) GetUser() *User { - if m != nil { - return m.User - } - return nil -} - -func (m *UserCreateBranchRequest) GetStartPoint() []byte { - if m != nil { - return m.StartPoint - } - return nil -} - -type UserCreateBranchResponse struct { - Branch *Branch `protobuf:"bytes,1,opt,name=branch" json:"branch,omitempty"` - // Error returned by the pre-receive hook. If no error was thrown, - // it's the empty string ("") - PreReceiveError string `protobuf:"bytes,2,opt,name=pre_receive_error,json=preReceiveError" json:"pre_receive_error,omitempty"` -} - -func (m *UserCreateBranchResponse) Reset() { *m = UserCreateBranchResponse{} } -func (m *UserCreateBranchResponse) String() string { return proto.CompactTextString(m) } -func (*UserCreateBranchResponse) ProtoMessage() {} -func (*UserCreateBranchResponse) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{1} } - -func (m *UserCreateBranchResponse) GetBranch() *Branch { - if m != nil { - return m.Branch - } - return nil -} - -func (m *UserCreateBranchResponse) GetPreReceiveError() string { - if m != nil { - return m.PreReceiveError - } - return "" -} - -type UserUpdateBranchRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - BranchName []byte `protobuf:"bytes,2,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"` - User *User `protobuf:"bytes,3,opt,name=user" json:"user,omitempty"` - Newrev []byte `protobuf:"bytes,4,opt,name=newrev,proto3" json:"newrev,omitempty"` - Oldrev []byte `protobuf:"bytes,5,opt,name=oldrev,proto3" json:"oldrev,omitempty"` -} - -func (m *UserUpdateBranchRequest) Reset() { *m = UserUpdateBranchRequest{} } -func (m *UserUpdateBranchRequest) String() string { return proto.CompactTextString(m) } -func (*UserUpdateBranchRequest) ProtoMessage() {} -func (*UserUpdateBranchRequest) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{2} } - -func (m *UserUpdateBranchRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *UserUpdateBranchRequest) GetBranchName() []byte { - if m != nil { - return m.BranchName - } - return nil -} - -func (m *UserUpdateBranchRequest) GetUser() *User { - if m != nil { - return m.User - } - return nil -} - -func (m *UserUpdateBranchRequest) GetNewrev() []byte { - if m != nil { - return m.Newrev - } - return nil -} - -func (m *UserUpdateBranchRequest) GetOldrev() []byte { - if m != nil { - return m.Oldrev - } - return nil -} - -type UserUpdateBranchResponse struct { - PreReceiveError string `protobuf:"bytes,1,opt,name=pre_receive_error,json=preReceiveError" json:"pre_receive_error,omitempty"` -} - -func (m *UserUpdateBranchResponse) Reset() { *m = UserUpdateBranchResponse{} } -func (m *UserUpdateBranchResponse) String() string { return proto.CompactTextString(m) } -func (*UserUpdateBranchResponse) ProtoMessage() {} -func (*UserUpdateBranchResponse) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{3} } - -func (m *UserUpdateBranchResponse) GetPreReceiveError() string { - if m != nil { - return m.PreReceiveError - } - return "" -} - -type UserDeleteBranchRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - BranchName []byte `protobuf:"bytes,2,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"` - User *User `protobuf:"bytes,3,opt,name=user" json:"user,omitempty"` -} - -func (m *UserDeleteBranchRequest) Reset() { *m = UserDeleteBranchRequest{} } -func (m *UserDeleteBranchRequest) String() string { return proto.CompactTextString(m) } -func (*UserDeleteBranchRequest) ProtoMessage() {} -func (*UserDeleteBranchRequest) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{4} } - -func (m *UserDeleteBranchRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *UserDeleteBranchRequest) GetBranchName() []byte { - if m != nil { - return m.BranchName - } - return nil -} - -func (m *UserDeleteBranchRequest) GetUser() *User { - if m != nil { - return m.User - } - return nil -} - -type UserDeleteBranchResponse struct { - PreReceiveError string `protobuf:"bytes,1,opt,name=pre_receive_error,json=preReceiveError" json:"pre_receive_error,omitempty"` -} - -func (m *UserDeleteBranchResponse) Reset() { *m = UserDeleteBranchResponse{} } -func (m *UserDeleteBranchResponse) String() string { return proto.CompactTextString(m) } -func (*UserDeleteBranchResponse) ProtoMessage() {} -func (*UserDeleteBranchResponse) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{5} } - -func (m *UserDeleteBranchResponse) GetPreReceiveError() string { - if m != nil { - return m.PreReceiveError - } - return "" -} - -type UserDeleteTagRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - TagName []byte `protobuf:"bytes,2,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` - User *User `protobuf:"bytes,3,opt,name=user" json:"user,omitempty"` -} - -func (m *UserDeleteTagRequest) Reset() { *m = UserDeleteTagRequest{} } -func (m *UserDeleteTagRequest) String() string { return proto.CompactTextString(m) } -func (*UserDeleteTagRequest) ProtoMessage() {} -func (*UserDeleteTagRequest) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{6} } - -func (m *UserDeleteTagRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *UserDeleteTagRequest) GetTagName() []byte { - if m != nil { - return m.TagName - } - return nil -} - -func (m *UserDeleteTagRequest) GetUser() *User { - if m != nil { - return m.User - } - return nil -} - -type UserDeleteTagResponse struct { - PreReceiveError string `protobuf:"bytes,1,opt,name=pre_receive_error,json=preReceiveError" json:"pre_receive_error,omitempty"` -} - -func (m *UserDeleteTagResponse) Reset() { *m = UserDeleteTagResponse{} } -func (m *UserDeleteTagResponse) String() string { return proto.CompactTextString(m) } -func (*UserDeleteTagResponse) ProtoMessage() {} -func (*UserDeleteTagResponse) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{7} } - -func (m *UserDeleteTagResponse) GetPreReceiveError() string { - if m != nil { - return m.PreReceiveError - } - return "" -} - -type UserCreateTagRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - TagName []byte `protobuf:"bytes,2,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` - User *User `protobuf:"bytes,3,opt,name=user" json:"user,omitempty"` - TargetRevision []byte `protobuf:"bytes,4,opt,name=target_revision,json=targetRevision,proto3" json:"target_revision,omitempty"` - Message []byte `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` -} - -func (m *UserCreateTagRequest) Reset() { *m = UserCreateTagRequest{} } -func (m *UserCreateTagRequest) String() string { return proto.CompactTextString(m) } -func (*UserCreateTagRequest) ProtoMessage() {} -func (*UserCreateTagRequest) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{8} } - -func (m *UserCreateTagRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *UserCreateTagRequest) GetTagName() []byte { - if m != nil { - return m.TagName - } - return nil -} - -func (m *UserCreateTagRequest) GetUser() *User { - if m != nil { - return m.User - } - return nil -} - -func (m *UserCreateTagRequest) GetTargetRevision() []byte { - if m != nil { - return m.TargetRevision - } - return nil -} - -func (m *UserCreateTagRequest) GetMessage() []byte { - if m != nil { - return m.Message - } - return nil -} - -type UserCreateTagResponse struct { - Tag *Tag `protobuf:"bytes,1,opt,name=tag" json:"tag,omitempty"` - Exists bool `protobuf:"varint,2,opt,name=exists" json:"exists,omitempty"` - PreReceiveError string `protobuf:"bytes,3,opt,name=pre_receive_error,json=preReceiveError" json:"pre_receive_error,omitempty"` -} - -func (m *UserCreateTagResponse) Reset() { *m = UserCreateTagResponse{} } -func (m *UserCreateTagResponse) String() string { return proto.CompactTextString(m) } -func (*UserCreateTagResponse) ProtoMessage() {} -func (*UserCreateTagResponse) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{9} } - -func (m *UserCreateTagResponse) GetTag() *Tag { - if m != nil { - return m.Tag - } - return nil -} - -func (m *UserCreateTagResponse) GetExists() bool { - if m != nil { - return m.Exists - } - return false -} - -func (m *UserCreateTagResponse) GetPreReceiveError() string { - if m != nil { - return m.PreReceiveError - } - return "" -} - -type UserMergeBranchRequest struct { - // First message - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - User *User `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"` - CommitId string `protobuf:"bytes,3,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` - Branch []byte `protobuf:"bytes,4,opt,name=branch,proto3" json:"branch,omitempty"` - Message []byte `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` - // Second message - // Tell the server to apply the merge to the branch - Apply bool `protobuf:"varint,6,opt,name=apply" json:"apply,omitempty"` -} - -func (m *UserMergeBranchRequest) Reset() { *m = UserMergeBranchRequest{} } -func (m *UserMergeBranchRequest) String() string { return proto.CompactTextString(m) } -func (*UserMergeBranchRequest) ProtoMessage() {} -func (*UserMergeBranchRequest) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{10} } - -func (m *UserMergeBranchRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *UserMergeBranchRequest) GetUser() *User { - if m != nil { - return m.User - } - return nil -} - -func (m *UserMergeBranchRequest) GetCommitId() string { - if m != nil { - return m.CommitId - } - return "" -} - -func (m *UserMergeBranchRequest) GetBranch() []byte { - if m != nil { - return m.Branch - } - return nil -} - -func (m *UserMergeBranchRequest) GetMessage() []byte { - if m != nil { - return m.Message - } - return nil -} - -func (m *UserMergeBranchRequest) GetApply() bool { - if m != nil { - return m.Apply - } - return false -} - -type UserMergeBranchResponse struct { - // First message - // The merge commit the branch will be updated to. The caller can still abort the merge. - CommitId string `protobuf:"bytes,1,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` - // Second message - // If set, the merge has been applied to the branch. - BranchUpdate *OperationBranchUpdate `protobuf:"bytes,3,opt,name=branch_update,json=branchUpdate" json:"branch_update,omitempty"` - PreReceiveError string `protobuf:"bytes,4,opt,name=pre_receive_error,json=preReceiveError" json:"pre_receive_error,omitempty"` -} - -func (m *UserMergeBranchResponse) Reset() { *m = UserMergeBranchResponse{} } -func (m *UserMergeBranchResponse) String() string { return proto.CompactTextString(m) } -func (*UserMergeBranchResponse) ProtoMessage() {} -func (*UserMergeBranchResponse) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{11} } - -func (m *UserMergeBranchResponse) GetCommitId() string { - if m != nil { - return m.CommitId - } - return "" -} - -func (m *UserMergeBranchResponse) GetBranchUpdate() *OperationBranchUpdate { - if m != nil { - return m.BranchUpdate - } - return nil -} - -func (m *UserMergeBranchResponse) GetPreReceiveError() string { - if m != nil { - return m.PreReceiveError - } - return "" -} - -type OperationBranchUpdate struct { - // If this string is non-empty the branch has been updated. - CommitId string `protobuf:"bytes,1,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` - // Used for cache invalidation in GitLab - RepoCreated bool `protobuf:"varint,2,opt,name=repo_created,json=repoCreated" json:"repo_created,omitempty"` - // Used for cache invalidation in GitLab - BranchCreated bool `protobuf:"varint,3,opt,name=branch_created,json=branchCreated" json:"branch_created,omitempty"` -} - -func (m *OperationBranchUpdate) Reset() { *m = OperationBranchUpdate{} } -func (m *OperationBranchUpdate) String() string { return proto.CompactTextString(m) } -func (*OperationBranchUpdate) ProtoMessage() {} -func (*OperationBranchUpdate) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{12} } - -func (m *OperationBranchUpdate) GetCommitId() string { - if m != nil { - return m.CommitId - } - return "" -} - -func (m *OperationBranchUpdate) GetRepoCreated() bool { - if m != nil { - return m.RepoCreated - } - return false -} - -func (m *OperationBranchUpdate) GetBranchCreated() bool { - if m != nil { - return m.BranchCreated - } - return false -} - -type UserFFBranchRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - User *User `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"` - CommitId string `protobuf:"bytes,3,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` - Branch []byte `protobuf:"bytes,4,opt,name=branch,proto3" json:"branch,omitempty"` -} - -func (m *UserFFBranchRequest) Reset() { *m = UserFFBranchRequest{} } -func (m *UserFFBranchRequest) String() string { return proto.CompactTextString(m) } -func (*UserFFBranchRequest) ProtoMessage() {} -func (*UserFFBranchRequest) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{13} } - -func (m *UserFFBranchRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *UserFFBranchRequest) GetUser() *User { - if m != nil { - return m.User - } - return nil -} - -func (m *UserFFBranchRequest) GetCommitId() string { - if m != nil { - return m.CommitId - } - return "" -} - -func (m *UserFFBranchRequest) GetBranch() []byte { - if m != nil { - return m.Branch - } - return nil -} - -type UserFFBranchResponse struct { - BranchUpdate *OperationBranchUpdate `protobuf:"bytes,1,opt,name=branch_update,json=branchUpdate" json:"branch_update,omitempty"` - PreReceiveError string `protobuf:"bytes,2,opt,name=pre_receive_error,json=preReceiveError" json:"pre_receive_error,omitempty"` -} - -func (m *UserFFBranchResponse) Reset() { *m = UserFFBranchResponse{} } -func (m *UserFFBranchResponse) String() string { return proto.CompactTextString(m) } -func (*UserFFBranchResponse) ProtoMessage() {} -func (*UserFFBranchResponse) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{14} } - -func (m *UserFFBranchResponse) GetBranchUpdate() *OperationBranchUpdate { - if m != nil { - return m.BranchUpdate - } - return nil -} - -func (m *UserFFBranchResponse) GetPreReceiveError() string { - if m != nil { - return m.PreReceiveError - } - return "" -} - -type UserCherryPickRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - User *User `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"` - Commit *GitCommit `protobuf:"bytes,3,opt,name=commit" json:"commit,omitempty"` - BranchName []byte `protobuf:"bytes,4,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"` - Message []byte `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` - StartBranchName []byte `protobuf:"bytes,6,opt,name=start_branch_name,json=startBranchName,proto3" json:"start_branch_name,omitempty"` - StartRepository *Repository `protobuf:"bytes,7,opt,name=start_repository,json=startRepository" json:"start_repository,omitempty"` -} - -func (m *UserCherryPickRequest) Reset() { *m = UserCherryPickRequest{} } -func (m *UserCherryPickRequest) String() string { return proto.CompactTextString(m) } -func (*UserCherryPickRequest) ProtoMessage() {} -func (*UserCherryPickRequest) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{15} } - -func (m *UserCherryPickRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *UserCherryPickRequest) GetUser() *User { - if m != nil { - return m.User - } - return nil -} - -func (m *UserCherryPickRequest) GetCommit() *GitCommit { - if m != nil { - return m.Commit - } - return nil -} - -func (m *UserCherryPickRequest) GetBranchName() []byte { - if m != nil { - return m.BranchName - } - return nil -} - -func (m *UserCherryPickRequest) GetMessage() []byte { - if m != nil { - return m.Message - } - return nil -} - -func (m *UserCherryPickRequest) GetStartBranchName() []byte { - if m != nil { - return m.StartBranchName - } - return nil -} - -func (m *UserCherryPickRequest) GetStartRepository() *Repository { - if m != nil { - return m.StartRepository - } - return nil -} - -type UserCherryPickResponse struct { - BranchUpdate *OperationBranchUpdate `protobuf:"bytes,1,opt,name=branch_update,json=branchUpdate" json:"branch_update,omitempty"` - CreateTreeError string `protobuf:"bytes,2,opt,name=create_tree_error,json=createTreeError" json:"create_tree_error,omitempty"` - CommitError string `protobuf:"bytes,3,opt,name=commit_error,json=commitError" json:"commit_error,omitempty"` - PreReceiveError string `protobuf:"bytes,4,opt,name=pre_receive_error,json=preReceiveError" json:"pre_receive_error,omitempty"` -} - -func (m *UserCherryPickResponse) Reset() { *m = UserCherryPickResponse{} } -func (m *UserCherryPickResponse) String() string { return proto.CompactTextString(m) } -func (*UserCherryPickResponse) ProtoMessage() {} -func (*UserCherryPickResponse) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{16} } - -func (m *UserCherryPickResponse) GetBranchUpdate() *OperationBranchUpdate { - if m != nil { - return m.BranchUpdate - } - return nil -} - -func (m *UserCherryPickResponse) GetCreateTreeError() string { - if m != nil { - return m.CreateTreeError - } - return "" -} - -func (m *UserCherryPickResponse) GetCommitError() string { - if m != nil { - return m.CommitError - } - return "" -} - -func (m *UserCherryPickResponse) GetPreReceiveError() string { - if m != nil { - return m.PreReceiveError - } - return "" -} - -type UserRevertRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - User *User `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"` - Commit *GitCommit `protobuf:"bytes,3,opt,name=commit" json:"commit,omitempty"` - BranchName []byte `protobuf:"bytes,4,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"` - Message []byte `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` - StartBranchName []byte `protobuf:"bytes,6,opt,name=start_branch_name,json=startBranchName,proto3" json:"start_branch_name,omitempty"` - StartRepository *Repository `protobuf:"bytes,7,opt,name=start_repository,json=startRepository" json:"start_repository,omitempty"` -} - -func (m *UserRevertRequest) Reset() { *m = UserRevertRequest{} } -func (m *UserRevertRequest) String() string { return proto.CompactTextString(m) } -func (*UserRevertRequest) ProtoMessage() {} -func (*UserRevertRequest) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{17} } - -func (m *UserRevertRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *UserRevertRequest) GetUser() *User { - if m != nil { - return m.User - } - return nil -} - -func (m *UserRevertRequest) GetCommit() *GitCommit { - if m != nil { - return m.Commit - } - return nil -} - -func (m *UserRevertRequest) GetBranchName() []byte { - if m != nil { - return m.BranchName - } - return nil -} - -func (m *UserRevertRequest) GetMessage() []byte { - if m != nil { - return m.Message - } - return nil -} - -func (m *UserRevertRequest) GetStartBranchName() []byte { - if m != nil { - return m.StartBranchName - } - return nil -} - -func (m *UserRevertRequest) GetStartRepository() *Repository { - if m != nil { - return m.StartRepository - } - return nil -} - -type UserRevertResponse struct { - BranchUpdate *OperationBranchUpdate `protobuf:"bytes,1,opt,name=branch_update,json=branchUpdate" json:"branch_update,omitempty"` - CreateTreeError string `protobuf:"bytes,2,opt,name=create_tree_error,json=createTreeError" json:"create_tree_error,omitempty"` - CommitError string `protobuf:"bytes,3,opt,name=commit_error,json=commitError" json:"commit_error,omitempty"` - PreReceiveError string `protobuf:"bytes,4,opt,name=pre_receive_error,json=preReceiveError" json:"pre_receive_error,omitempty"` -} - -func (m *UserRevertResponse) Reset() { *m = UserRevertResponse{} } -func (m *UserRevertResponse) String() string { return proto.CompactTextString(m) } -func (*UserRevertResponse) ProtoMessage() {} -func (*UserRevertResponse) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{18} } - -func (m *UserRevertResponse) GetBranchUpdate() *OperationBranchUpdate { - if m != nil { - return m.BranchUpdate - } - return nil -} - -func (m *UserRevertResponse) GetCreateTreeError() string { - if m != nil { - return m.CreateTreeError - } - return "" -} - -func (m *UserRevertResponse) GetCommitError() string { - if m != nil { - return m.CommitError - } - return "" -} - -func (m *UserRevertResponse) GetPreReceiveError() string { - if m != nil { - return m.PreReceiveError - } - return "" -} - -type UserCommitFilesActionHeader struct { - Action UserCommitFilesActionHeader_ActionType `protobuf:"varint,1,opt,name=action,enum=gitaly.UserCommitFilesActionHeader_ActionType" json:"action,omitempty"` - FilePath []byte `protobuf:"bytes,2,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` - PreviousPath []byte `protobuf:"bytes,3,opt,name=previous_path,json=previousPath,proto3" json:"previous_path,omitempty"` - Base64Content bool `protobuf:"varint,4,opt,name=base64_content,json=base64Content" json:"base64_content,omitempty"` -} - -func (m *UserCommitFilesActionHeader) Reset() { *m = UserCommitFilesActionHeader{} } -func (m *UserCommitFilesActionHeader) String() string { return proto.CompactTextString(m) } -func (*UserCommitFilesActionHeader) ProtoMessage() {} -func (*UserCommitFilesActionHeader) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{19} } - -func (m *UserCommitFilesActionHeader) GetAction() UserCommitFilesActionHeader_ActionType { - if m != nil { - return m.Action - } - return UserCommitFilesActionHeader_CREATE -} - -func (m *UserCommitFilesActionHeader) GetFilePath() []byte { - if m != nil { - return m.FilePath - } - return nil -} - -func (m *UserCommitFilesActionHeader) GetPreviousPath() []byte { - if m != nil { - return m.PreviousPath - } - return nil -} - -func (m *UserCommitFilesActionHeader) GetBase64Content() bool { - if m != nil { - return m.Base64Content - } - return false -} - -type UserCommitFilesAction struct { - // Types that are valid to be assigned to UserCommitFilesActionPayload: - // *UserCommitFilesAction_Header - // *UserCommitFilesAction_Content - UserCommitFilesActionPayload isUserCommitFilesAction_UserCommitFilesActionPayload `protobuf_oneof:"user_commit_files_action_payload"` -} - -func (m *UserCommitFilesAction) Reset() { *m = UserCommitFilesAction{} } -func (m *UserCommitFilesAction) String() string { return proto.CompactTextString(m) } -func (*UserCommitFilesAction) ProtoMessage() {} -func (*UserCommitFilesAction) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{20} } - -type isUserCommitFilesAction_UserCommitFilesActionPayload interface{ isUserCommitFilesAction_UserCommitFilesActionPayload() } - -type UserCommitFilesAction_Header struct { - Header *UserCommitFilesActionHeader `protobuf:"bytes,1,opt,name=header,oneof"` -} -type UserCommitFilesAction_Content struct { - Content []byte `protobuf:"bytes,2,opt,name=content,proto3,oneof"` -} - -func (*UserCommitFilesAction_Header) isUserCommitFilesAction_UserCommitFilesActionPayload() {} -func (*UserCommitFilesAction_Content) isUserCommitFilesAction_UserCommitFilesActionPayload() {} - -func (m *UserCommitFilesAction) GetUserCommitFilesActionPayload() isUserCommitFilesAction_UserCommitFilesActionPayload { - if m != nil { - return m.UserCommitFilesActionPayload - } - return nil -} - -func (m *UserCommitFilesAction) GetHeader() *UserCommitFilesActionHeader { - if x, ok := m.GetUserCommitFilesActionPayload().(*UserCommitFilesAction_Header); ok { - return x.Header - } - return nil -} - -func (m *UserCommitFilesAction) GetContent() []byte { - if x, ok := m.GetUserCommitFilesActionPayload().(*UserCommitFilesAction_Content); ok { - return x.Content - } - return nil -} - -// XXX_OneofFuncs is for the internal use of the proto package. -func (*UserCommitFilesAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _UserCommitFilesAction_OneofMarshaler, _UserCommitFilesAction_OneofUnmarshaler, _UserCommitFilesAction_OneofSizer, []interface{}{ - (*UserCommitFilesAction_Header)(nil), - (*UserCommitFilesAction_Content)(nil), - } -} - -func _UserCommitFilesAction_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*UserCommitFilesAction) - // user_commit_files_action_payload - switch x := m.UserCommitFilesActionPayload.(type) { - case *UserCommitFilesAction_Header: - b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Header); err != nil { - return err - } - case *UserCommitFilesAction_Content: - b.EncodeVarint(2<<3 | proto.WireBytes) - b.EncodeRawBytes(x.Content) - case nil: - default: - return fmt.Errorf("UserCommitFilesAction.UserCommitFilesActionPayload has unexpected type %T", x) - } - return nil -} - -func _UserCommitFilesAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*UserCommitFilesAction) - switch tag { - case 1: // user_commit_files_action_payload.header - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(UserCommitFilesActionHeader) - err := b.DecodeMessage(msg) - m.UserCommitFilesActionPayload = &UserCommitFilesAction_Header{msg} - return true, err - case 2: // user_commit_files_action_payload.content - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeRawBytes(true) - m.UserCommitFilesActionPayload = &UserCommitFilesAction_Content{x} - return true, err - default: - return false, nil - } -} - -func _UserCommitFilesAction_OneofSizer(msg proto.Message) (n int) { - m := msg.(*UserCommitFilesAction) - // user_commit_files_action_payload - switch x := m.UserCommitFilesActionPayload.(type) { - case *UserCommitFilesAction_Header: - s := proto.Size(x.Header) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *UserCommitFilesAction_Content: - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(len(x.Content))) - n += len(x.Content) - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - -type UserCommitFilesRequestHeader struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - User *User `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"` - BranchName []byte `protobuf:"bytes,3,opt,name=branch_name,json=branchName,proto3" json:"branch_name,omitempty"` - CommitMessage []byte `protobuf:"bytes,4,opt,name=commit_message,json=commitMessage,proto3" json:"commit_message,omitempty"` - CommitAuthorName []byte `protobuf:"bytes,5,opt,name=commit_author_name,json=commitAuthorName,proto3" json:"commit_author_name,omitempty"` - CommitAuthorEmail []byte `protobuf:"bytes,6,opt,name=commit_author_email,json=commitAuthorEmail,proto3" json:"commit_author_email,omitempty"` - StartBranchName []byte `protobuf:"bytes,7,opt,name=start_branch_name,json=startBranchName,proto3" json:"start_branch_name,omitempty"` - StartRepository *Repository `protobuf:"bytes,8,opt,name=start_repository,json=startRepository" json:"start_repository,omitempty"` -} - -func (m *UserCommitFilesRequestHeader) Reset() { *m = UserCommitFilesRequestHeader{} } -func (m *UserCommitFilesRequestHeader) String() string { return proto.CompactTextString(m) } -func (*UserCommitFilesRequestHeader) ProtoMessage() {} -func (*UserCommitFilesRequestHeader) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{21} } - -func (m *UserCommitFilesRequestHeader) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *UserCommitFilesRequestHeader) GetUser() *User { - if m != nil { - return m.User - } - return nil -} - -func (m *UserCommitFilesRequestHeader) GetBranchName() []byte { - if m != nil { - return m.BranchName - } - return nil -} - -func (m *UserCommitFilesRequestHeader) GetCommitMessage() []byte { - if m != nil { - return m.CommitMessage - } - return nil -} - -func (m *UserCommitFilesRequestHeader) GetCommitAuthorName() []byte { - if m != nil { - return m.CommitAuthorName - } - return nil -} - -func (m *UserCommitFilesRequestHeader) GetCommitAuthorEmail() []byte { - if m != nil { - return m.CommitAuthorEmail - } - return nil -} - -func (m *UserCommitFilesRequestHeader) GetStartBranchName() []byte { - if m != nil { - return m.StartBranchName - } - return nil -} - -func (m *UserCommitFilesRequestHeader) GetStartRepository() *Repository { - if m != nil { - return m.StartRepository - } - return nil -} - -type UserCommitFilesRequest struct { - // Types that are valid to be assigned to UserCommitFilesRequestPayload: - // *UserCommitFilesRequest_Header - // *UserCommitFilesRequest_Action - UserCommitFilesRequestPayload isUserCommitFilesRequest_UserCommitFilesRequestPayload `protobuf_oneof:"user_commit_files_request_payload"` -} - -func (m *UserCommitFilesRequest) Reset() { *m = UserCommitFilesRequest{} } -func (m *UserCommitFilesRequest) String() string { return proto.CompactTextString(m) } -func (*UserCommitFilesRequest) ProtoMessage() {} -func (*UserCommitFilesRequest) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{22} } - -type isUserCommitFilesRequest_UserCommitFilesRequestPayload interface{ isUserCommitFilesRequest_UserCommitFilesRequestPayload() } - -type UserCommitFilesRequest_Header struct { - Header *UserCommitFilesRequestHeader `protobuf:"bytes,1,opt,name=header,oneof"` -} -type UserCommitFilesRequest_Action struct { - Action *UserCommitFilesAction `protobuf:"bytes,2,opt,name=action,oneof"` -} - -func (*UserCommitFilesRequest_Header) isUserCommitFilesRequest_UserCommitFilesRequestPayload() {} -func (*UserCommitFilesRequest_Action) isUserCommitFilesRequest_UserCommitFilesRequestPayload() {} - -func (m *UserCommitFilesRequest) GetUserCommitFilesRequestPayload() isUserCommitFilesRequest_UserCommitFilesRequestPayload { - if m != nil { - return m.UserCommitFilesRequestPayload - } - return nil -} - -func (m *UserCommitFilesRequest) GetHeader() *UserCommitFilesRequestHeader { - if x, ok := m.GetUserCommitFilesRequestPayload().(*UserCommitFilesRequest_Header); ok { - return x.Header - } - return nil -} - -func (m *UserCommitFilesRequest) GetAction() *UserCommitFilesAction { - if x, ok := m.GetUserCommitFilesRequestPayload().(*UserCommitFilesRequest_Action); ok { - return x.Action - } - return nil -} - -// XXX_OneofFuncs is for the internal use of the proto package. -func (*UserCommitFilesRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _UserCommitFilesRequest_OneofMarshaler, _UserCommitFilesRequest_OneofUnmarshaler, _UserCommitFilesRequest_OneofSizer, []interface{}{ - (*UserCommitFilesRequest_Header)(nil), - (*UserCommitFilesRequest_Action)(nil), - } -} - -func _UserCommitFilesRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*UserCommitFilesRequest) - // user_commit_files_request_payload - switch x := m.UserCommitFilesRequestPayload.(type) { - case *UserCommitFilesRequest_Header: - b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Header); err != nil { - return err - } - case *UserCommitFilesRequest_Action: - b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Action); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("UserCommitFilesRequest.UserCommitFilesRequestPayload has unexpected type %T", x) - } - return nil -} - -func _UserCommitFilesRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*UserCommitFilesRequest) - switch tag { - case 1: // user_commit_files_request_payload.header - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(UserCommitFilesRequestHeader) - err := b.DecodeMessage(msg) - m.UserCommitFilesRequestPayload = &UserCommitFilesRequest_Header{msg} - return true, err - case 2: // user_commit_files_request_payload.action - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(UserCommitFilesAction) - err := b.DecodeMessage(msg) - m.UserCommitFilesRequestPayload = &UserCommitFilesRequest_Action{msg} - return true, err - default: - return false, nil - } -} - -func _UserCommitFilesRequest_OneofSizer(msg proto.Message) (n int) { - m := msg.(*UserCommitFilesRequest) - // user_commit_files_request_payload - switch x := m.UserCommitFilesRequestPayload.(type) { - case *UserCommitFilesRequest_Header: - s := proto.Size(x.Header) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *UserCommitFilesRequest_Action: - s := proto.Size(x.Action) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - -type UserCommitFilesResponse struct { - BranchUpdate *OperationBranchUpdate `protobuf:"bytes,1,opt,name=branch_update,json=branchUpdate" json:"branch_update,omitempty"` - IndexError string `protobuf:"bytes,2,opt,name=index_error,json=indexError" json:"index_error,omitempty"` - PreReceiveError string `protobuf:"bytes,3,opt,name=pre_receive_error,json=preReceiveError" json:"pre_receive_error,omitempty"` -} - -func (m *UserCommitFilesResponse) Reset() { *m = UserCommitFilesResponse{} } -func (m *UserCommitFilesResponse) String() string { return proto.CompactTextString(m) } -func (*UserCommitFilesResponse) ProtoMessage() {} -func (*UserCommitFilesResponse) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{23} } - -func (m *UserCommitFilesResponse) GetBranchUpdate() *OperationBranchUpdate { - if m != nil { - return m.BranchUpdate - } - return nil -} - -func (m *UserCommitFilesResponse) GetIndexError() string { - if m != nil { - return m.IndexError - } - return "" -} - -func (m *UserCommitFilesResponse) GetPreReceiveError() string { - if m != nil { - return m.PreReceiveError - } - return "" -} - -type UserRebaseRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - User *User `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"` - RebaseId string `protobuf:"bytes,3,opt,name=rebase_id,json=rebaseId" json:"rebase_id,omitempty"` - Branch []byte `protobuf:"bytes,4,opt,name=branch,proto3" json:"branch,omitempty"` - BranchSha string `protobuf:"bytes,5,opt,name=branch_sha,json=branchSha" json:"branch_sha,omitempty"` - RemoteRepository *Repository `protobuf:"bytes,6,opt,name=remote_repository,json=remoteRepository" json:"remote_repository,omitempty"` - RemoteBranch []byte `protobuf:"bytes,7,opt,name=remote_branch,json=remoteBranch,proto3" json:"remote_branch,omitempty"` -} - -func (m *UserRebaseRequest) Reset() { *m = UserRebaseRequest{} } -func (m *UserRebaseRequest) String() string { return proto.CompactTextString(m) } -func (*UserRebaseRequest) ProtoMessage() {} -func (*UserRebaseRequest) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{24} } - -func (m *UserRebaseRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *UserRebaseRequest) GetUser() *User { - if m != nil { - return m.User - } - return nil -} - -func (m *UserRebaseRequest) GetRebaseId() string { - if m != nil { - return m.RebaseId - } - return "" -} - -func (m *UserRebaseRequest) GetBranch() []byte { - if m != nil { - return m.Branch - } - return nil -} - -func (m *UserRebaseRequest) GetBranchSha() string { - if m != nil { - return m.BranchSha - } - return "" -} - -func (m *UserRebaseRequest) GetRemoteRepository() *Repository { - if m != nil { - return m.RemoteRepository - } - return nil -} - -func (m *UserRebaseRequest) GetRemoteBranch() []byte { - if m != nil { - return m.RemoteBranch - } - return nil -} - -type UserRebaseResponse struct { - RebaseSha string `protobuf:"bytes,1,opt,name=rebase_sha,json=rebaseSha" json:"rebase_sha,omitempty"` - PreReceiveError string `protobuf:"bytes,2,opt,name=pre_receive_error,json=preReceiveError" json:"pre_receive_error,omitempty"` - GitError string `protobuf:"bytes,3,opt,name=git_error,json=gitError" json:"git_error,omitempty"` -} - -func (m *UserRebaseResponse) Reset() { *m = UserRebaseResponse{} } -func (m *UserRebaseResponse) String() string { return proto.CompactTextString(m) } -func (*UserRebaseResponse) ProtoMessage() {} -func (*UserRebaseResponse) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{25} } - -func (m *UserRebaseResponse) GetRebaseSha() string { - if m != nil { - return m.RebaseSha - } - return "" -} - -func (m *UserRebaseResponse) GetPreReceiveError() string { - if m != nil { - return m.PreReceiveError - } - return "" -} - -func (m *UserRebaseResponse) GetGitError() string { - if m != nil { - return m.GitError - } - return "" -} - -type UserSquashRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - User *User `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"` - SquashId string `protobuf:"bytes,3,opt,name=squash_id,json=squashId" json:"squash_id,omitempty"` - Branch []byte `protobuf:"bytes,4,opt,name=branch,proto3" json:"branch,omitempty"` - StartSha string `protobuf:"bytes,5,opt,name=start_sha,json=startSha" json:"start_sha,omitempty"` - EndSha string `protobuf:"bytes,6,opt,name=end_sha,json=endSha" json:"end_sha,omitempty"` - Author *User `protobuf:"bytes,7,opt,name=author" json:"author,omitempty"` - CommitMessage []byte `protobuf:"bytes,8,opt,name=commit_message,json=commitMessage,proto3" json:"commit_message,omitempty"` -} - -func (m *UserSquashRequest) Reset() { *m = UserSquashRequest{} } -func (m *UserSquashRequest) String() string { return proto.CompactTextString(m) } -func (*UserSquashRequest) ProtoMessage() {} -func (*UserSquashRequest) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{26} } - -func (m *UserSquashRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *UserSquashRequest) GetUser() *User { - if m != nil { - return m.User - } - return nil -} - -func (m *UserSquashRequest) GetSquashId() string { - if m != nil { - return m.SquashId - } - return "" -} - -func (m *UserSquashRequest) GetBranch() []byte { - if m != nil { - return m.Branch - } - return nil -} - -func (m *UserSquashRequest) GetStartSha() string { - if m != nil { - return m.StartSha - } - return "" -} - -func (m *UserSquashRequest) GetEndSha() string { - if m != nil { - return m.EndSha - } - return "" -} - -func (m *UserSquashRequest) GetAuthor() *User { - if m != nil { - return m.Author - } - return nil -} - -func (m *UserSquashRequest) GetCommitMessage() []byte { - if m != nil { - return m.CommitMessage - } - return nil -} - -type UserSquashResponse struct { - SquashSha string `protobuf:"bytes,1,opt,name=squash_sha,json=squashSha" json:"squash_sha,omitempty"` - GitError string `protobuf:"bytes,3,opt,name=git_error,json=gitError" json:"git_error,omitempty"` -} - -func (m *UserSquashResponse) Reset() { *m = UserSquashResponse{} } -func (m *UserSquashResponse) String() string { return proto.CompactTextString(m) } -func (*UserSquashResponse) ProtoMessage() {} -func (*UserSquashResponse) Descriptor() ([]byte, []int) { return fileDescriptor7, []int{27} } - -func (m *UserSquashResponse) GetSquashSha() string { - if m != nil { - return m.SquashSha - } - return "" -} - -func (m *UserSquashResponse) GetGitError() string { - if m != nil { - return m.GitError - } - return "" -} - -func init() { - proto.RegisterType((*UserCreateBranchRequest)(nil), "gitaly.UserCreateBranchRequest") - proto.RegisterType((*UserCreateBranchResponse)(nil), "gitaly.UserCreateBranchResponse") - proto.RegisterType((*UserUpdateBranchRequest)(nil), "gitaly.UserUpdateBranchRequest") - proto.RegisterType((*UserUpdateBranchResponse)(nil), "gitaly.UserUpdateBranchResponse") - proto.RegisterType((*UserDeleteBranchRequest)(nil), "gitaly.UserDeleteBranchRequest") - proto.RegisterType((*UserDeleteBranchResponse)(nil), "gitaly.UserDeleteBranchResponse") - proto.RegisterType((*UserDeleteTagRequest)(nil), "gitaly.UserDeleteTagRequest") - proto.RegisterType((*UserDeleteTagResponse)(nil), "gitaly.UserDeleteTagResponse") - proto.RegisterType((*UserCreateTagRequest)(nil), "gitaly.UserCreateTagRequest") - proto.RegisterType((*UserCreateTagResponse)(nil), "gitaly.UserCreateTagResponse") - proto.RegisterType((*UserMergeBranchRequest)(nil), "gitaly.UserMergeBranchRequest") - proto.RegisterType((*UserMergeBranchResponse)(nil), "gitaly.UserMergeBranchResponse") - proto.RegisterType((*OperationBranchUpdate)(nil), "gitaly.OperationBranchUpdate") - proto.RegisterType((*UserFFBranchRequest)(nil), "gitaly.UserFFBranchRequest") - proto.RegisterType((*UserFFBranchResponse)(nil), "gitaly.UserFFBranchResponse") - proto.RegisterType((*UserCherryPickRequest)(nil), "gitaly.UserCherryPickRequest") - proto.RegisterType((*UserCherryPickResponse)(nil), "gitaly.UserCherryPickResponse") - proto.RegisterType((*UserRevertRequest)(nil), "gitaly.UserRevertRequest") - proto.RegisterType((*UserRevertResponse)(nil), "gitaly.UserRevertResponse") - proto.RegisterType((*UserCommitFilesActionHeader)(nil), "gitaly.UserCommitFilesActionHeader") - proto.RegisterType((*UserCommitFilesAction)(nil), "gitaly.UserCommitFilesAction") - proto.RegisterType((*UserCommitFilesRequestHeader)(nil), "gitaly.UserCommitFilesRequestHeader") - proto.RegisterType((*UserCommitFilesRequest)(nil), "gitaly.UserCommitFilesRequest") - proto.RegisterType((*UserCommitFilesResponse)(nil), "gitaly.UserCommitFilesResponse") - proto.RegisterType((*UserRebaseRequest)(nil), "gitaly.UserRebaseRequest") - proto.RegisterType((*UserRebaseResponse)(nil), "gitaly.UserRebaseResponse") - proto.RegisterType((*UserSquashRequest)(nil), "gitaly.UserSquashRequest") - proto.RegisterType((*UserSquashResponse)(nil), "gitaly.UserSquashResponse") - proto.RegisterEnum("gitaly.UserCommitFilesActionHeader_ActionType", UserCommitFilesActionHeader_ActionType_name, UserCommitFilesActionHeader_ActionType_value) -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for OperationService service - -type OperationServiceClient interface { - UserCreateBranch(ctx context.Context, in *UserCreateBranchRequest, opts ...grpc.CallOption) (*UserCreateBranchResponse, error) - UserUpdateBranch(ctx context.Context, in *UserUpdateBranchRequest, opts ...grpc.CallOption) (*UserUpdateBranchResponse, error) - UserDeleteBranch(ctx context.Context, in *UserDeleteBranchRequest, opts ...grpc.CallOption) (*UserDeleteBranchResponse, error) - UserCreateTag(ctx context.Context, in *UserCreateTagRequest, opts ...grpc.CallOption) (*UserCreateTagResponse, error) - UserDeleteTag(ctx context.Context, in *UserDeleteTagRequest, opts ...grpc.CallOption) (*UserDeleteTagResponse, error) - UserMergeBranch(ctx context.Context, opts ...grpc.CallOption) (OperationService_UserMergeBranchClient, error) - UserFFBranch(ctx context.Context, in *UserFFBranchRequest, opts ...grpc.CallOption) (*UserFFBranchResponse, error) - UserCherryPick(ctx context.Context, in *UserCherryPickRequest, opts ...grpc.CallOption) (*UserCherryPickResponse, error) - UserRevert(ctx context.Context, in *UserRevertRequest, opts ...grpc.CallOption) (*UserRevertResponse, error) - UserCommitFiles(ctx context.Context, opts ...grpc.CallOption) (OperationService_UserCommitFilesClient, error) - UserRebase(ctx context.Context, in *UserRebaseRequest, opts ...grpc.CallOption) (*UserRebaseResponse, error) - UserSquash(ctx context.Context, in *UserSquashRequest, opts ...grpc.CallOption) (*UserSquashResponse, error) -} - -type operationServiceClient struct { - cc *grpc.ClientConn -} - -func NewOperationServiceClient(cc *grpc.ClientConn) OperationServiceClient { - return &operationServiceClient{cc} -} - -func (c *operationServiceClient) UserCreateBranch(ctx context.Context, in *UserCreateBranchRequest, opts ...grpc.CallOption) (*UserCreateBranchResponse, error) { - out := new(UserCreateBranchResponse) - err := grpc.Invoke(ctx, "/gitaly.OperationService/UserCreateBranch", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *operationServiceClient) UserUpdateBranch(ctx context.Context, in *UserUpdateBranchRequest, opts ...grpc.CallOption) (*UserUpdateBranchResponse, error) { - out := new(UserUpdateBranchResponse) - err := grpc.Invoke(ctx, "/gitaly.OperationService/UserUpdateBranch", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *operationServiceClient) UserDeleteBranch(ctx context.Context, in *UserDeleteBranchRequest, opts ...grpc.CallOption) (*UserDeleteBranchResponse, error) { - out := new(UserDeleteBranchResponse) - err := grpc.Invoke(ctx, "/gitaly.OperationService/UserDeleteBranch", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *operationServiceClient) UserCreateTag(ctx context.Context, in *UserCreateTagRequest, opts ...grpc.CallOption) (*UserCreateTagResponse, error) { - out := new(UserCreateTagResponse) - err := grpc.Invoke(ctx, "/gitaly.OperationService/UserCreateTag", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *operationServiceClient) UserDeleteTag(ctx context.Context, in *UserDeleteTagRequest, opts ...grpc.CallOption) (*UserDeleteTagResponse, error) { - out := new(UserDeleteTagResponse) - err := grpc.Invoke(ctx, "/gitaly.OperationService/UserDeleteTag", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *operationServiceClient) UserMergeBranch(ctx context.Context, opts ...grpc.CallOption) (OperationService_UserMergeBranchClient, error) { - stream, err := grpc.NewClientStream(ctx, &_OperationService_serviceDesc.Streams[0], c.cc, "/gitaly.OperationService/UserMergeBranch", opts...) - if err != nil { - return nil, err - } - x := &operationServiceUserMergeBranchClient{stream} - return x, nil -} - -type OperationService_UserMergeBranchClient interface { - Send(*UserMergeBranchRequest) error - Recv() (*UserMergeBranchResponse, error) - grpc.ClientStream -} - -type operationServiceUserMergeBranchClient struct { - grpc.ClientStream -} - -func (x *operationServiceUserMergeBranchClient) Send(m *UserMergeBranchRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *operationServiceUserMergeBranchClient) Recv() (*UserMergeBranchResponse, error) { - m := new(UserMergeBranchResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *operationServiceClient) UserFFBranch(ctx context.Context, in *UserFFBranchRequest, opts ...grpc.CallOption) (*UserFFBranchResponse, error) { - out := new(UserFFBranchResponse) - err := grpc.Invoke(ctx, "/gitaly.OperationService/UserFFBranch", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *operationServiceClient) UserCherryPick(ctx context.Context, in *UserCherryPickRequest, opts ...grpc.CallOption) (*UserCherryPickResponse, error) { - out := new(UserCherryPickResponse) - err := grpc.Invoke(ctx, "/gitaly.OperationService/UserCherryPick", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *operationServiceClient) UserRevert(ctx context.Context, in *UserRevertRequest, opts ...grpc.CallOption) (*UserRevertResponse, error) { - out := new(UserRevertResponse) - err := grpc.Invoke(ctx, "/gitaly.OperationService/UserRevert", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *operationServiceClient) UserCommitFiles(ctx context.Context, opts ...grpc.CallOption) (OperationService_UserCommitFilesClient, error) { - stream, err := grpc.NewClientStream(ctx, &_OperationService_serviceDesc.Streams[1], c.cc, "/gitaly.OperationService/UserCommitFiles", opts...) - if err != nil { - return nil, err - } - x := &operationServiceUserCommitFilesClient{stream} - return x, nil -} - -type OperationService_UserCommitFilesClient interface { - Send(*UserCommitFilesRequest) error - CloseAndRecv() (*UserCommitFilesResponse, error) - grpc.ClientStream -} - -type operationServiceUserCommitFilesClient struct { - grpc.ClientStream -} - -func (x *operationServiceUserCommitFilesClient) Send(m *UserCommitFilesRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *operationServiceUserCommitFilesClient) CloseAndRecv() (*UserCommitFilesResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(UserCommitFilesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *operationServiceClient) UserRebase(ctx context.Context, in *UserRebaseRequest, opts ...grpc.CallOption) (*UserRebaseResponse, error) { - out := new(UserRebaseResponse) - err := grpc.Invoke(ctx, "/gitaly.OperationService/UserRebase", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *operationServiceClient) UserSquash(ctx context.Context, in *UserSquashRequest, opts ...grpc.CallOption) (*UserSquashResponse, error) { - out := new(UserSquashResponse) - err := grpc.Invoke(ctx, "/gitaly.OperationService/UserSquash", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for OperationService service - -type OperationServiceServer interface { - UserCreateBranch(context.Context, *UserCreateBranchRequest) (*UserCreateBranchResponse, error) - UserUpdateBranch(context.Context, *UserUpdateBranchRequest) (*UserUpdateBranchResponse, error) - UserDeleteBranch(context.Context, *UserDeleteBranchRequest) (*UserDeleteBranchResponse, error) - UserCreateTag(context.Context, *UserCreateTagRequest) (*UserCreateTagResponse, error) - UserDeleteTag(context.Context, *UserDeleteTagRequest) (*UserDeleteTagResponse, error) - UserMergeBranch(OperationService_UserMergeBranchServer) error - UserFFBranch(context.Context, *UserFFBranchRequest) (*UserFFBranchResponse, error) - UserCherryPick(context.Context, *UserCherryPickRequest) (*UserCherryPickResponse, error) - UserRevert(context.Context, *UserRevertRequest) (*UserRevertResponse, error) - UserCommitFiles(OperationService_UserCommitFilesServer) error - UserRebase(context.Context, *UserRebaseRequest) (*UserRebaseResponse, error) - UserSquash(context.Context, *UserSquashRequest) (*UserSquashResponse, error) -} - -func RegisterOperationServiceServer(s *grpc.Server, srv OperationServiceServer) { - s.RegisterService(&_OperationService_serviceDesc, srv) -} - -func _OperationService_UserCreateBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserCreateBranchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OperationServiceServer).UserCreateBranch(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.OperationService/UserCreateBranch", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OperationServiceServer).UserCreateBranch(ctx, req.(*UserCreateBranchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _OperationService_UserUpdateBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserUpdateBranchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OperationServiceServer).UserUpdateBranch(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.OperationService/UserUpdateBranch", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OperationServiceServer).UserUpdateBranch(ctx, req.(*UserUpdateBranchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _OperationService_UserDeleteBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserDeleteBranchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OperationServiceServer).UserDeleteBranch(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.OperationService/UserDeleteBranch", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OperationServiceServer).UserDeleteBranch(ctx, req.(*UserDeleteBranchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _OperationService_UserCreateTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserCreateTagRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OperationServiceServer).UserCreateTag(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.OperationService/UserCreateTag", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OperationServiceServer).UserCreateTag(ctx, req.(*UserCreateTagRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _OperationService_UserDeleteTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserDeleteTagRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OperationServiceServer).UserDeleteTag(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.OperationService/UserDeleteTag", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OperationServiceServer).UserDeleteTag(ctx, req.(*UserDeleteTagRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _OperationService_UserMergeBranch_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(OperationServiceServer).UserMergeBranch(&operationServiceUserMergeBranchServer{stream}) -} - -type OperationService_UserMergeBranchServer interface { - Send(*UserMergeBranchResponse) error - Recv() (*UserMergeBranchRequest, error) - grpc.ServerStream -} - -type operationServiceUserMergeBranchServer struct { - grpc.ServerStream -} - -func (x *operationServiceUserMergeBranchServer) Send(m *UserMergeBranchResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *operationServiceUserMergeBranchServer) Recv() (*UserMergeBranchRequest, error) { - m := new(UserMergeBranchRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _OperationService_UserFFBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserFFBranchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OperationServiceServer).UserFFBranch(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.OperationService/UserFFBranch", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OperationServiceServer).UserFFBranch(ctx, req.(*UserFFBranchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _OperationService_UserCherryPick_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserCherryPickRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OperationServiceServer).UserCherryPick(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.OperationService/UserCherryPick", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OperationServiceServer).UserCherryPick(ctx, req.(*UserCherryPickRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _OperationService_UserRevert_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserRevertRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OperationServiceServer).UserRevert(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.OperationService/UserRevert", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OperationServiceServer).UserRevert(ctx, req.(*UserRevertRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _OperationService_UserCommitFiles_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(OperationServiceServer).UserCommitFiles(&operationServiceUserCommitFilesServer{stream}) -} - -type OperationService_UserCommitFilesServer interface { - SendAndClose(*UserCommitFilesResponse) error - Recv() (*UserCommitFilesRequest, error) - grpc.ServerStream -} - -type operationServiceUserCommitFilesServer struct { - grpc.ServerStream -} - -func (x *operationServiceUserCommitFilesServer) SendAndClose(m *UserCommitFilesResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *operationServiceUserCommitFilesServer) Recv() (*UserCommitFilesRequest, error) { - m := new(UserCommitFilesRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _OperationService_UserRebase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserRebaseRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OperationServiceServer).UserRebase(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.OperationService/UserRebase", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OperationServiceServer).UserRebase(ctx, req.(*UserRebaseRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _OperationService_UserSquash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserSquashRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OperationServiceServer).UserSquash(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.OperationService/UserSquash", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OperationServiceServer).UserSquash(ctx, req.(*UserSquashRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _OperationService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.OperationService", - HandlerType: (*OperationServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "UserCreateBranch", - Handler: _OperationService_UserCreateBranch_Handler, - }, - { - MethodName: "UserUpdateBranch", - Handler: _OperationService_UserUpdateBranch_Handler, - }, - { - MethodName: "UserDeleteBranch", - Handler: _OperationService_UserDeleteBranch_Handler, - }, - { - MethodName: "UserCreateTag", - Handler: _OperationService_UserCreateTag_Handler, - }, - { - MethodName: "UserDeleteTag", - Handler: _OperationService_UserDeleteTag_Handler, - }, - { - MethodName: "UserFFBranch", - Handler: _OperationService_UserFFBranch_Handler, - }, - { - MethodName: "UserCherryPick", - Handler: _OperationService_UserCherryPick_Handler, - }, - { - MethodName: "UserRevert", - Handler: _OperationService_UserRevert_Handler, - }, - { - MethodName: "UserRebase", - Handler: _OperationService_UserRebase_Handler, - }, - { - MethodName: "UserSquash", - Handler: _OperationService_UserSquash_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "UserMergeBranch", - Handler: _OperationService_UserMergeBranch_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "UserCommitFiles", - Handler: _OperationService_UserCommitFiles_Handler, - ClientStreams: true, - }, - }, - Metadata: "operations.proto", -} - -func init() { proto.RegisterFile("operations.proto", fileDescriptor7) } - -var fileDescriptor7 = []byte{ - // 1510 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x59, 0xcf, 0x6f, 0x1b, 0xc5, - 0x17, 0xf7, 0xda, 0xee, 0xda, 0x79, 0x71, 0x1c, 0x67, 0xfa, 0xcb, 0x75, 0x9b, 0x26, 0xdd, 0xb6, - 0xdf, 0x6f, 0xa9, 0x50, 0x84, 0x02, 0x82, 0x53, 0x41, 0x4d, 0xe2, 0xd0, 0x16, 0xda, 0x86, 0x6d, - 0x5a, 0xb8, 0xad, 0xa6, 0xf6, 0x60, 0xaf, 0xb0, 0xbd, 0xdb, 0xd9, 0x4d, 0x68, 0x10, 0xe2, 0x06, - 0x5c, 0x39, 0x71, 0xe0, 0x04, 0xe2, 0x86, 0xb8, 0x70, 0xe1, 0xc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x11, 0x97, 0x5d, 0x87, 0x05, 0x5f, 0x0a, 0x47, 0x8a, 0x8e, 0x70, 0x77, 0x85, 0x23, - 0xa4, 0xf4, 0xa4, 0xb6, 0x76, 0xc6, 0x9e, 0xf7, 0xa5, 0xb0, 0x91, 0xde, 0x56, 0x64, 0xeb, 0x37, - 0xc2, 0xe8, 0xa1, 0xdf, 0x3d, 0x2e, 0x18, 0x9d, 0x01, 0x73, 0x24, 0x3e, 0x96, 0x62, 0x97, 0xe0, - 0xa1, 0x2f, 0x45, 0xf7, 0x06, 0x5d, 0x45, 0x3f, 0x81, 0x74, 0xfc, 0xb2, 0x36, 0x11, 0xb2, 0xa4, - 0x07, 0x04, 0x59, 0x26, 0x14, 0x46, 0x36, 0x14, 0x5f, 0x11, 0x14, 0x1b, 0x62, 0x20, 0x8e, 0x07, - 0x14, 0x91, 0x6b, 0x49, 0x8b, 0x5e, 0xc0, 0xb5, 0x2f, 0x0d, 0x38, 0x35, 0x51, 0xb4, 0xcd, 0x7b, - 0x7f, 0xc7, 0xaf, 0x73, 0x50, 0x0d, 0x79, 0x2f, 0xee, 0x54, 0x25, 0xe4, 0xbd, 0x03, 0x7a, 0xb4, - 0x0e, 0xa7, 0x53, 0x86, 0xbc, 0x80, 0x3b, 0xbf, 0x93, 0x3b, 0x58, 0x25, 0xff, 0xa0, 0x3b, 0xec, - 0xff, 0x30, 0x1f, 0x72, 0xd9, 0x13, 0xa1, 0x23, 0xc5, 0xae, 0x1b, 0xb8, 0xde, 0x88, 0x92, 0xb6, - 0x8e, 0x64, 0x9b, 0xa8, 0xac, 0x09, 0x95, 0xa1, 0x08, 0x02, 0xde, 0x13, 0x94, 0xbd, 0xd1, 0xa7, - 0xf5, 0x09, 0x22, 0x12, 0xf3, 0x85, 0x10, 0x59, 0x84, 0x52, 0xc8, 0x7b, 0xe4, 0xc5, 0x6c, 0xb4, - 0xb9, 0x92, 0x50, 0x74, 0x55, 0x0e, 0xe2, 0xa9, 0x1b, 0x84, 0x81, 0xb6, 0xba, 0x6a, 0xd3, 0x57, - 0x36, 0x90, 0xa5, 0x6c, 0x20, 0x9f, 0x19, 0x70, 0x46, 0x6d, 0x7e, 0x57, 0xc8, 0xde, 0x21, 0x64, - 0x7c, 0x84, 0x57, 0x31, 0x17, 0xaf, 0xf3, 0x30, 0xd3, 0xf1, 0x86, 0x43, 0x37, 0x74, 0xdc, 0x2e, - 0x19, 0x55, 0x45, 0xc2, 0xed, 0xae, 0xf2, 0x88, 0xfa, 0x1b, 0x15, 0x3e, 0xf5, 0xb3, 0x5c, 0xec, - 0xd8, 0x29, 0x38, 0xc1, 0x7d, 0x7f, 0xb0, 0xd7, 0x34, 0x35, 0x04, 0xf8, 0x61, 0xfd, 0x48, 0x85, - 0x9c, 0xf0, 0x8a, 0x40, 0x4d, 0x18, 0x60, 0xa4, 0x0c, 0x58, 0x83, 0x39, 0xaa, 0xd8, 0x1d, 0xdd, - 0x4c, 0x28, 0xf0, 0x8b, 0x91, 0x23, 0xf7, 0xa3, 0x73, 0x07, 0x95, 0x62, 0xc7, 0xb1, 0x6b, 0x8f, - 0x63, 0x5f, 0xd9, 0xf0, 0x97, 0x33, 0xe1, 0xbf, 0x53, 0xae, 0x16, 0x1b, 0x25, 0xeb, 0x33, 0x38, - 0x9d, 0xa9, 0x78, 0x7f, 0x5b, 0x2f, 0x41, 0x4d, 0x21, 0xef, 0x74, 0x74, 0xde, 0x74, 0x29, 0x09, - 0x66, 0x15, 0x0d, 0x53, 0xa9, 0xcb, 0xae, 0x42, 0x9d, 0xdc, 0x89, 0x84, 0x4a, 0x5a, 0x88, 0x9c, - 0x24, 0x31, 0xeb, 0x5b, 0x03, 0x4e, 0x2a, 0xb8, 0x36, 0x37, 0x8f, 0x6b, 0x06, 0x58, 0x5f, 0x50, - 0xc1, 0x4f, 0x4c, 0xa4, 0x70, 0x4e, 0x45, 0xcc, 0x38, 0xa4, 0x88, 0xe5, 0x1c, 0x97, 0xbf, 0x16, - 0xa9, 0x5a, 0xfb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, 0x74, 0xf2, 0x50, 0x99, 0xf6, 0x1c, 0x17, 0x4b, 0x05, 0x4d, 0x2f, - 0x75, 0xec, 0x54, 0x7b, 0x74, 0xe6, 0x58, 0xdf, 0x51, 0x8c, 0x1e, 0x3c, 0xd9, 0xe1, 0xc1, 0xd1, - 0xdf, 0xcf, 0x03, 0xbd, 0x4d, 0x2c, 0x46, 0x48, 0xd8, 0x27, 0x46, 0x6a, 0x91, 0xae, 0xf4, 0x49, - 0x88, 0xaa, 0x9a, 0xa0, 0x60, 0x38, 0x0b, 0x15, 0x31, 0xea, 0x6a, 0x96, 0xa9, 0x59, 0xa6, 0x18, - 0x75, 0x15, 0xe3, 0x0a, 0x98, 0xd8, 0x74, 0xe8, 0xa6, 0x90, 0x34, 0x87, 0x78, 0x19, 0x6d, 0xaf, - 0x9a, 0xd1, 0xf6, 0x2c, 0x17, 0x23, 0x14, 0x41, 0x34, 0x89, 0x10, 0x79, 0x13, 0x8b, 0x10, 0x52, - 0x94, 0x05, 0xfb, 0xa1, 0x8e, 0xaf, 0x33, 0x7b, 0x3a, 0x84, 0xab, 0x7f, 0x56, 0xa0, 0x31, 0xae, - 0xd3, 0x07, 0x42, 0xee, 0xba, 0x1d, 0xc1, 0xde, 0x87, 0x46, 0x7a, 0x70, 0xc7, 0x96, 0x12, 0x6d, - 0x65, 0x7a, 0x0a, 0xd9, 0x5a, 0xce, 0x17, 0x40, 0x07, 0xac, 0x42, 0xa4, 0x38, 0x3e, 0xde, 0x4a, - 0x2a, 0xce, 0x18, 0xdd, 0x25, 0x15, 0x67, 0x4d, 0xc6, 0x26, 0x8a, 0xe3, 0xc3, 0xa5, 0xa4, 0xe2, - 0x8c, 0x41, 0x58, 0x52, 0x71, 0xd6, 0x5c, 0xca, 0x2a, 0xb0, 0x7b, 0x30, 0x97, 0x98, 0x68, 0xb0, - 0x0b, 0xd3, 0x6e, 0x4e, 0x86, 0x36, 0xad, 0xc5, 0x1c, 0x6e, 0x5a, 0xdf, 0x78, 0x66, 0x94, 0xd4, - 0x97, 0x9e, 0x69, 0x25, 0xf5, 0x4d, 0x0d, 0x9a, 0xac, 0x02, 0xfb, 0x00, 0xe6, 0x53, 0xe3, 0x01, - 0x76, 0x31, 0xbe, 0x66, 0x7a, 0x1a, 0xd2, 0x5a, 0xca, 0xe5, 0x47, 0x5a, 0xaf, 0x19, 0xaf, 0x18, - 0xec, 0x1d, 0xa8, 0xc5, 0x9f, 0xa9, 0xec, 0x7c, 0x7c, 0x59, 0xea, 0x7d, 0xdd, 0xba, 0x90, 0xcd, - 0x1c, 0x9b, 0xf9, 0x1e, 0xd4, 0x93, 0x2f, 0x25, 0x96, 0x44, 0x2a, 0xfd, 0x04, 0x6d, 0x5d, 0xcc, - 0x63, 0x8f, 0x55, 0xb6, 0x01, 0x26, 0xb7, 0x6c, 0x76, 0x2e, 0x51, 0x6f, 0xf1, 0x67, 0x4b, 0xab, - 0x95, 0xc5, 0x1a, 0xab, 0x79, 0x84, 0x00, 0xc6, 0xce, 0xb7, 0x24, 0x80, 0xd3, 0x27, 0x70, 0x12, - 0xc0, 0x8c, 0x83, 0x51, 0x01, 0x38, 0x31, 0x4f, 0x75, 0xd0, 0xb4, 0x79, 0xb1, 0xe3, 0x29, 0x6d, - 0x5e, 0xbc, 0x29, 0x4f, 0xbc, 0xc4, 0x56, 0x90, 0x54, 0x93, 0xe8, 0xa0, 0x49, 0x35, 0xc9, 0xce, - 0x61, 0x15, 0x1e, 0x9b, 0xfa, 0x5f, 0x84, 0x57, 0xff, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xaa, 0x7d, - 0xb3, 0xe5, 0x6f, 0x18, 0x00, 0x00, -} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/ref.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/ref.pb.go deleted file mode 100644 index 913bfaa..0000000 --- a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/ref.pb.go +++ /dev/null @@ -1,2045 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: ref.proto - -package gitaly - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import google_protobuf "github.com/golang/protobuf/ptypes/timestamp" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -type FindLocalBranchesRequest_SortBy int32 - -const ( - FindLocalBranchesRequest_NAME FindLocalBranchesRequest_SortBy = 0 - FindLocalBranchesRequest_UPDATED_ASC FindLocalBranchesRequest_SortBy = 1 - FindLocalBranchesRequest_UPDATED_DESC FindLocalBranchesRequest_SortBy = 2 -) - -var FindLocalBranchesRequest_SortBy_name = map[int32]string{ - 0: "NAME", - 1: "UPDATED_ASC", - 2: "UPDATED_DESC", -} -var FindLocalBranchesRequest_SortBy_value = map[string]int32{ - "NAME": 0, - "UPDATED_ASC": 1, - "UPDATED_DESC": 2, -} - -func (x FindLocalBranchesRequest_SortBy) String() string { - return proto.EnumName(FindLocalBranchesRequest_SortBy_name, int32(x)) -} -func (FindLocalBranchesRequest_SortBy) EnumDescriptor() ([]byte, []int) { - return fileDescriptor8, []int{10, 0} -} - -type CreateBranchResponse_Status int32 - -const ( - CreateBranchResponse_OK CreateBranchResponse_Status = 0 - CreateBranchResponse_ERR_EXISTS CreateBranchResponse_Status = 1 - CreateBranchResponse_ERR_INVALID CreateBranchResponse_Status = 2 - CreateBranchResponse_ERR_INVALID_START_POINT CreateBranchResponse_Status = 3 -) - -var CreateBranchResponse_Status_name = map[int32]string{ - 0: "OK", - 1: "ERR_EXISTS", - 2: "ERR_INVALID", - 3: "ERR_INVALID_START_POINT", -} -var CreateBranchResponse_Status_value = map[string]int32{ - "OK": 0, - "ERR_EXISTS": 1, - "ERR_INVALID": 2, - "ERR_INVALID_START_POINT": 3, -} - -func (x CreateBranchResponse_Status) String() string { - return proto.EnumName(CreateBranchResponse_Status_name, int32(x)) -} -func (CreateBranchResponse_Status) EnumDescriptor() ([]byte, []int) { - return fileDescriptor8, []int{21, 0} -} - -type ListNewBlobsRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` - // Limit the number of revs to be returned fro mgit-rev-list - // If the limit is set to zero, all items will be returned - Limit uint32 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"` -} - -func (m *ListNewBlobsRequest) Reset() { *m = ListNewBlobsRequest{} } -func (m *ListNewBlobsRequest) String() string { return proto.CompactTextString(m) } -func (*ListNewBlobsRequest) ProtoMessage() {} -func (*ListNewBlobsRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{0} } - -func (m *ListNewBlobsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *ListNewBlobsRequest) GetCommitId() string { - if m != nil { - return m.CommitId - } - return "" -} - -func (m *ListNewBlobsRequest) GetLimit() uint32 { - if m != nil { - return m.Limit - } - return 0 -} - -type ListNewBlobsResponse struct { - NewBlobObjects []*NewBlobObject `protobuf:"bytes,1,rep,name=new_blob_objects,json=newBlobObjects" json:"new_blob_objects,omitempty"` -} - -func (m *ListNewBlobsResponse) Reset() { *m = ListNewBlobsResponse{} } -func (m *ListNewBlobsResponse) String() string { return proto.CompactTextString(m) } -func (*ListNewBlobsResponse) ProtoMessage() {} -func (*ListNewBlobsResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{1} } - -func (m *ListNewBlobsResponse) GetNewBlobObjects() []*NewBlobObject { - if m != nil { - return m.NewBlobObjects - } - return nil -} - -type FindDefaultBranchNameRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` -} - -func (m *FindDefaultBranchNameRequest) Reset() { *m = FindDefaultBranchNameRequest{} } -func (m *FindDefaultBranchNameRequest) String() string { return proto.CompactTextString(m) } -func (*FindDefaultBranchNameRequest) ProtoMessage() {} -func (*FindDefaultBranchNameRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{2} } - -func (m *FindDefaultBranchNameRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -type FindDefaultBranchNameResponse struct { - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (m *FindDefaultBranchNameResponse) Reset() { *m = FindDefaultBranchNameResponse{} } -func (m *FindDefaultBranchNameResponse) String() string { return proto.CompactTextString(m) } -func (*FindDefaultBranchNameResponse) ProtoMessage() {} -func (*FindDefaultBranchNameResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{3} } - -func (m *FindDefaultBranchNameResponse) GetName() []byte { - if m != nil { - return m.Name - } - return nil -} - -type FindAllBranchNamesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` -} - -func (m *FindAllBranchNamesRequest) Reset() { *m = FindAllBranchNamesRequest{} } -func (m *FindAllBranchNamesRequest) String() string { return proto.CompactTextString(m) } -func (*FindAllBranchNamesRequest) ProtoMessage() {} -func (*FindAllBranchNamesRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{4} } - -func (m *FindAllBranchNamesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -type FindAllBranchNamesResponse struct { - Names [][]byte `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` -} - -func (m *FindAllBranchNamesResponse) Reset() { *m = FindAllBranchNamesResponse{} } -func (m *FindAllBranchNamesResponse) String() string { return proto.CompactTextString(m) } -func (*FindAllBranchNamesResponse) ProtoMessage() {} -func (*FindAllBranchNamesResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{5} } - -func (m *FindAllBranchNamesResponse) GetNames() [][]byte { - if m != nil { - return m.Names - } - return nil -} - -type FindAllTagNamesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` -} - -func (m *FindAllTagNamesRequest) Reset() { *m = FindAllTagNamesRequest{} } -func (m *FindAllTagNamesRequest) String() string { return proto.CompactTextString(m) } -func (*FindAllTagNamesRequest) ProtoMessage() {} -func (*FindAllTagNamesRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{6} } - -func (m *FindAllTagNamesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -type FindAllTagNamesResponse struct { - Names [][]byte `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` -} - -func (m *FindAllTagNamesResponse) Reset() { *m = FindAllTagNamesResponse{} } -func (m *FindAllTagNamesResponse) String() string { return proto.CompactTextString(m) } -func (*FindAllTagNamesResponse) ProtoMessage() {} -func (*FindAllTagNamesResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{7} } - -func (m *FindAllTagNamesResponse) GetNames() [][]byte { - if m != nil { - return m.Names - } - return nil -} - -type FindRefNameRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - // Require that the resulting ref contains this commit as an ancestor - CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` - // Example prefix: "refs/heads/". Type bytes because that is the type of ref names. - Prefix []byte `protobuf:"bytes,3,opt,name=prefix,proto3" json:"prefix,omitempty"` -} - -func (m *FindRefNameRequest) Reset() { *m = FindRefNameRequest{} } -func (m *FindRefNameRequest) String() string { return proto.CompactTextString(m) } -func (*FindRefNameRequest) ProtoMessage() {} -func (*FindRefNameRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{8} } - -func (m *FindRefNameRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *FindRefNameRequest) GetCommitId() string { - if m != nil { - return m.CommitId - } - return "" -} - -func (m *FindRefNameRequest) GetPrefix() []byte { - if m != nil { - return m.Prefix - } - return nil -} - -type FindRefNameResponse struct { - // Example name: "refs/heads/master". Cannot assume UTF8, so the type is bytes. - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (m *FindRefNameResponse) Reset() { *m = FindRefNameResponse{} } -func (m *FindRefNameResponse) String() string { return proto.CompactTextString(m) } -func (*FindRefNameResponse) ProtoMessage() {} -func (*FindRefNameResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{9} } - -func (m *FindRefNameResponse) GetName() []byte { - if m != nil { - return m.Name - } - return nil -} - -type FindLocalBranchesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - SortBy FindLocalBranchesRequest_SortBy `protobuf:"varint,2,opt,name=sort_by,json=sortBy,enum=gitaly.FindLocalBranchesRequest_SortBy" json:"sort_by,omitempty"` -} - -func (m *FindLocalBranchesRequest) Reset() { *m = FindLocalBranchesRequest{} } -func (m *FindLocalBranchesRequest) String() string { return proto.CompactTextString(m) } -func (*FindLocalBranchesRequest) ProtoMessage() {} -func (*FindLocalBranchesRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{10} } - -func (m *FindLocalBranchesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *FindLocalBranchesRequest) GetSortBy() FindLocalBranchesRequest_SortBy { - if m != nil { - return m.SortBy - } - return FindLocalBranchesRequest_NAME -} - -type FindLocalBranchesResponse struct { - Branches []*FindLocalBranchResponse `protobuf:"bytes,1,rep,name=branches" json:"branches,omitempty"` -} - -func (m *FindLocalBranchesResponse) Reset() { *m = FindLocalBranchesResponse{} } -func (m *FindLocalBranchesResponse) String() string { return proto.CompactTextString(m) } -func (*FindLocalBranchesResponse) ProtoMessage() {} -func (*FindLocalBranchesResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{11} } - -func (m *FindLocalBranchesResponse) GetBranches() []*FindLocalBranchResponse { - if m != nil { - return m.Branches - } - return nil -} - -type FindLocalBranchResponse struct { - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` - CommitSubject []byte `protobuf:"bytes,3,opt,name=commit_subject,json=commitSubject,proto3" json:"commit_subject,omitempty"` - CommitAuthor *FindLocalBranchCommitAuthor `protobuf:"bytes,4,opt,name=commit_author,json=commitAuthor" json:"commit_author,omitempty"` - CommitCommitter *FindLocalBranchCommitAuthor `protobuf:"bytes,5,opt,name=commit_committer,json=commitCommitter" json:"commit_committer,omitempty"` -} - -func (m *FindLocalBranchResponse) Reset() { *m = FindLocalBranchResponse{} } -func (m *FindLocalBranchResponse) String() string { return proto.CompactTextString(m) } -func (*FindLocalBranchResponse) ProtoMessage() {} -func (*FindLocalBranchResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{12} } - -func (m *FindLocalBranchResponse) GetName() []byte { - if m != nil { - return m.Name - } - return nil -} - -func (m *FindLocalBranchResponse) GetCommitId() string { - if m != nil { - return m.CommitId - } - return "" -} - -func (m *FindLocalBranchResponse) GetCommitSubject() []byte { - if m != nil { - return m.CommitSubject - } - return nil -} - -func (m *FindLocalBranchResponse) GetCommitAuthor() *FindLocalBranchCommitAuthor { - if m != nil { - return m.CommitAuthor - } - return nil -} - -func (m *FindLocalBranchResponse) GetCommitCommitter() *FindLocalBranchCommitAuthor { - if m != nil { - return m.CommitCommitter - } - return nil -} - -type FindLocalBranchCommitAuthor struct { - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Email []byte `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` - Date *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=date" json:"date,omitempty"` -} - -func (m *FindLocalBranchCommitAuthor) Reset() { *m = FindLocalBranchCommitAuthor{} } -func (m *FindLocalBranchCommitAuthor) String() string { return proto.CompactTextString(m) } -func (*FindLocalBranchCommitAuthor) ProtoMessage() {} -func (*FindLocalBranchCommitAuthor) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{13} } - -func (m *FindLocalBranchCommitAuthor) GetName() []byte { - if m != nil { - return m.Name - } - return nil -} - -func (m *FindLocalBranchCommitAuthor) GetEmail() []byte { - if m != nil { - return m.Email - } - return nil -} - -func (m *FindLocalBranchCommitAuthor) GetDate() *google_protobuf.Timestamp { - if m != nil { - return m.Date - } - return nil -} - -type FindAllBranchesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - // Only return branches that are merged into root ref - MergedOnly bool `protobuf:"varint,2,opt,name=merged_only,json=mergedOnly" json:"merged_only,omitempty"` - // If merged_only is true, this is a list of branches from which we - // return those merged into the root ref - MergedBranches [][]byte `protobuf:"bytes,3,rep,name=merged_branches,json=mergedBranches,proto3" json:"merged_branches,omitempty"` -} - -func (m *FindAllBranchesRequest) Reset() { *m = FindAllBranchesRequest{} } -func (m *FindAllBranchesRequest) String() string { return proto.CompactTextString(m) } -func (*FindAllBranchesRequest) ProtoMessage() {} -func (*FindAllBranchesRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{14} } - -func (m *FindAllBranchesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *FindAllBranchesRequest) GetMergedOnly() bool { - if m != nil { - return m.MergedOnly - } - return false -} - -func (m *FindAllBranchesRequest) GetMergedBranches() [][]byte { - if m != nil { - return m.MergedBranches - } - return nil -} - -type FindAllBranchesResponse struct { - Branches []*FindAllBranchesResponse_Branch `protobuf:"bytes,1,rep,name=branches" json:"branches,omitempty"` -} - -func (m *FindAllBranchesResponse) Reset() { *m = FindAllBranchesResponse{} } -func (m *FindAllBranchesResponse) String() string { return proto.CompactTextString(m) } -func (*FindAllBranchesResponse) ProtoMessage() {} -func (*FindAllBranchesResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{15} } - -func (m *FindAllBranchesResponse) GetBranches() []*FindAllBranchesResponse_Branch { - if m != nil { - return m.Branches - } - return nil -} - -type FindAllBranchesResponse_Branch struct { - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Target *GitCommit `protobuf:"bytes,2,opt,name=target" json:"target,omitempty"` -} - -func (m *FindAllBranchesResponse_Branch) Reset() { *m = FindAllBranchesResponse_Branch{} } -func (m *FindAllBranchesResponse_Branch) String() string { return proto.CompactTextString(m) } -func (*FindAllBranchesResponse_Branch) ProtoMessage() {} -func (*FindAllBranchesResponse_Branch) Descriptor() ([]byte, []int) { - return fileDescriptor8, []int{15, 0} -} - -func (m *FindAllBranchesResponse_Branch) GetName() []byte { - if m != nil { - return m.Name - } - return nil -} - -func (m *FindAllBranchesResponse_Branch) GetTarget() *GitCommit { - if m != nil { - return m.Target - } - return nil -} - -type FindAllTagsRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` -} - -func (m *FindAllTagsRequest) Reset() { *m = FindAllTagsRequest{} } -func (m *FindAllTagsRequest) String() string { return proto.CompactTextString(m) } -func (*FindAllTagsRequest) ProtoMessage() {} -func (*FindAllTagsRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{16} } - -func (m *FindAllTagsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -type FindAllTagsResponse struct { - Tags []*Tag `protobuf:"bytes,1,rep,name=tags" json:"tags,omitempty"` -} - -func (m *FindAllTagsResponse) Reset() { *m = FindAllTagsResponse{} } -func (m *FindAllTagsResponse) String() string { return proto.CompactTextString(m) } -func (*FindAllTagsResponse) ProtoMessage() {} -func (*FindAllTagsResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{17} } - -func (m *FindAllTagsResponse) GetTags() []*Tag { - if m != nil { - return m.Tags - } - return nil -} - -type RefExistsRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - // Any ref, e.g. 'refs/heads/master' or 'refs/tags/v1.0.1'. Must start with 'refs/'. - Ref []byte `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` -} - -func (m *RefExistsRequest) Reset() { *m = RefExistsRequest{} } -func (m *RefExistsRequest) String() string { return proto.CompactTextString(m) } -func (*RefExistsRequest) ProtoMessage() {} -func (*RefExistsRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{18} } - -func (m *RefExistsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *RefExistsRequest) GetRef() []byte { - if m != nil { - return m.Ref - } - return nil -} - -type RefExistsResponse struct { - Value bool `protobuf:"varint,1,opt,name=value" json:"value,omitempty"` -} - -func (m *RefExistsResponse) Reset() { *m = RefExistsResponse{} } -func (m *RefExistsResponse) String() string { return proto.CompactTextString(m) } -func (*RefExistsResponse) ProtoMessage() {} -func (*RefExistsResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{19} } - -func (m *RefExistsResponse) GetValue() bool { - if m != nil { - return m.Value - } - return false -} - -type CreateBranchRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - StartPoint []byte `protobuf:"bytes,3,opt,name=start_point,json=startPoint,proto3" json:"start_point,omitempty"` -} - -func (m *CreateBranchRequest) Reset() { *m = CreateBranchRequest{} } -func (m *CreateBranchRequest) String() string { return proto.CompactTextString(m) } -func (*CreateBranchRequest) ProtoMessage() {} -func (*CreateBranchRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{20} } - -func (m *CreateBranchRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *CreateBranchRequest) GetName() []byte { - if m != nil { - return m.Name - } - return nil -} - -func (m *CreateBranchRequest) GetStartPoint() []byte { - if m != nil { - return m.StartPoint - } - return nil -} - -type CreateBranchResponse struct { - Status CreateBranchResponse_Status `protobuf:"varint,1,opt,name=status,enum=gitaly.CreateBranchResponse_Status" json:"status,omitempty"` - Branch *Branch `protobuf:"bytes,2,opt,name=branch" json:"branch,omitempty"` -} - -func (m *CreateBranchResponse) Reset() { *m = CreateBranchResponse{} } -func (m *CreateBranchResponse) String() string { return proto.CompactTextString(m) } -func (*CreateBranchResponse) ProtoMessage() {} -func (*CreateBranchResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{21} } - -func (m *CreateBranchResponse) GetStatus() CreateBranchResponse_Status { - if m != nil { - return m.Status - } - return CreateBranchResponse_OK -} - -func (m *CreateBranchResponse) GetBranch() *Branch { - if m != nil { - return m.Branch - } - return nil -} - -type DeleteBranchRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` -} - -func (m *DeleteBranchRequest) Reset() { *m = DeleteBranchRequest{} } -func (m *DeleteBranchRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteBranchRequest) ProtoMessage() {} -func (*DeleteBranchRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{22} } - -func (m *DeleteBranchRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *DeleteBranchRequest) GetName() []byte { - if m != nil { - return m.Name - } - return nil -} - -// Not clear if we need to do status signaling; we can add fields later. -type DeleteBranchResponse struct { -} - -func (m *DeleteBranchResponse) Reset() { *m = DeleteBranchResponse{} } -func (m *DeleteBranchResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteBranchResponse) ProtoMessage() {} -func (*DeleteBranchResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{23} } - -type FindBranchRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - // Name can be 'master' but also 'refs/heads/master' - Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` -} - -func (m *FindBranchRequest) Reset() { *m = FindBranchRequest{} } -func (m *FindBranchRequest) String() string { return proto.CompactTextString(m) } -func (*FindBranchRequest) ProtoMessage() {} -func (*FindBranchRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{24} } - -func (m *FindBranchRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *FindBranchRequest) GetName() []byte { - if m != nil { - return m.Name - } - return nil -} - -type FindBranchResponse struct { - Branch *Branch `protobuf:"bytes,1,opt,name=branch" json:"branch,omitempty"` -} - -func (m *FindBranchResponse) Reset() { *m = FindBranchResponse{} } -func (m *FindBranchResponse) String() string { return proto.CompactTextString(m) } -func (*FindBranchResponse) ProtoMessage() {} -func (*FindBranchResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{25} } - -func (m *FindBranchResponse) GetBranch() *Branch { - if m != nil { - return m.Branch - } - return nil -} - -type DeleteRefsRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - // The following two fields are mutually exclusive - ExceptWithPrefix [][]byte `protobuf:"bytes,2,rep,name=except_with_prefix,json=exceptWithPrefix,proto3" json:"except_with_prefix,omitempty"` - Refs [][]byte `protobuf:"bytes,3,rep,name=refs,proto3" json:"refs,omitempty"` -} - -func (m *DeleteRefsRequest) Reset() { *m = DeleteRefsRequest{} } -func (m *DeleteRefsRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteRefsRequest) ProtoMessage() {} -func (*DeleteRefsRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{26} } - -func (m *DeleteRefsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *DeleteRefsRequest) GetExceptWithPrefix() [][]byte { - if m != nil { - return m.ExceptWithPrefix - } - return nil -} - -func (m *DeleteRefsRequest) GetRefs() [][]byte { - if m != nil { - return m.Refs - } - return nil -} - -type DeleteRefsResponse struct { - GitError string `protobuf:"bytes,1,opt,name=git_error,json=gitError" json:"git_error,omitempty"` -} - -func (m *DeleteRefsResponse) Reset() { *m = DeleteRefsResponse{} } -func (m *DeleteRefsResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteRefsResponse) ProtoMessage() {} -func (*DeleteRefsResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{27} } - -func (m *DeleteRefsResponse) GetGitError() string { - if m != nil { - return m.GitError - } - return "" -} - -type ListBranchNamesContainingCommitRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` - // Limit the number of tag names to be returned - // If the limit is set to zero, all items will be returned - Limit uint32 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"` -} - -func (m *ListBranchNamesContainingCommitRequest) Reset() { - *m = ListBranchNamesContainingCommitRequest{} -} -func (m *ListBranchNamesContainingCommitRequest) String() string { return proto.CompactTextString(m) } -func (*ListBranchNamesContainingCommitRequest) ProtoMessage() {} -func (*ListBranchNamesContainingCommitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor8, []int{28} -} - -func (m *ListBranchNamesContainingCommitRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *ListBranchNamesContainingCommitRequest) GetCommitId() string { - if m != nil { - return m.CommitId - } - return "" -} - -func (m *ListBranchNamesContainingCommitRequest) GetLimit() uint32 { - if m != nil { - return m.Limit - } - return 0 -} - -type ListBranchNamesContainingCommitResponse struct { - BranchNames [][]byte `protobuf:"bytes,2,rep,name=branch_names,json=branchNames,proto3" json:"branch_names,omitempty"` -} - -func (m *ListBranchNamesContainingCommitResponse) Reset() { - *m = ListBranchNamesContainingCommitResponse{} -} -func (m *ListBranchNamesContainingCommitResponse) String() string { return proto.CompactTextString(m) } -func (*ListBranchNamesContainingCommitResponse) ProtoMessage() {} -func (*ListBranchNamesContainingCommitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor8, []int{29} -} - -func (m *ListBranchNamesContainingCommitResponse) GetBranchNames() [][]byte { - if m != nil { - return m.BranchNames - } - return nil -} - -type ListTagNamesContainingCommitRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` - // Limit the number of tag names to be returned - // If the limit is set to zero, all items will be returned - Limit uint32 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"` -} - -func (m *ListTagNamesContainingCommitRequest) Reset() { *m = ListTagNamesContainingCommitRequest{} } -func (m *ListTagNamesContainingCommitRequest) String() string { return proto.CompactTextString(m) } -func (*ListTagNamesContainingCommitRequest) ProtoMessage() {} -func (*ListTagNamesContainingCommitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor8, []int{30} -} - -func (m *ListTagNamesContainingCommitRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *ListTagNamesContainingCommitRequest) GetCommitId() string { - if m != nil { - return m.CommitId - } - return "" -} - -func (m *ListTagNamesContainingCommitRequest) GetLimit() uint32 { - if m != nil { - return m.Limit - } - return 0 -} - -type ListTagNamesContainingCommitResponse struct { - TagNames [][]byte `protobuf:"bytes,2,rep,name=tag_names,json=tagNames,proto3" json:"tag_names,omitempty"` -} - -func (m *ListTagNamesContainingCommitResponse) Reset() { *m = ListTagNamesContainingCommitResponse{} } -func (m *ListTagNamesContainingCommitResponse) String() string { return proto.CompactTextString(m) } -func (*ListTagNamesContainingCommitResponse) ProtoMessage() {} -func (*ListTagNamesContainingCommitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor8, []int{31} -} - -func (m *ListTagNamesContainingCommitResponse) GetTagNames() [][]byte { - if m != nil { - return m.TagNames - } - return nil -} - -type GetTagMessagesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - TagIds []string `protobuf:"bytes,3,rep,name=tag_ids,json=tagIds" json:"tag_ids,omitempty"` -} - -func (m *GetTagMessagesRequest) Reset() { *m = GetTagMessagesRequest{} } -func (m *GetTagMessagesRequest) String() string { return proto.CompactTextString(m) } -func (*GetTagMessagesRequest) ProtoMessage() {} -func (*GetTagMessagesRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{32} } - -func (m *GetTagMessagesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *GetTagMessagesRequest) GetTagIds() []string { - if m != nil { - return m.TagIds - } - return nil -} - -type GetTagMessagesResponse struct { - Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - // Only present for a new tag message - TagId string `protobuf:"bytes,3,opt,name=tag_id,json=tagId" json:"tag_id,omitempty"` -} - -func (m *GetTagMessagesResponse) Reset() { *m = GetTagMessagesResponse{} } -func (m *GetTagMessagesResponse) String() string { return proto.CompactTextString(m) } -func (*GetTagMessagesResponse) ProtoMessage() {} -func (*GetTagMessagesResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{33} } - -func (m *GetTagMessagesResponse) GetMessage() []byte { - if m != nil { - return m.Message - } - return nil -} - -func (m *GetTagMessagesResponse) GetTagId() string { - if m != nil { - return m.TagId - } - return "" -} - -type ListNewCommitsRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` -} - -func (m *ListNewCommitsRequest) Reset() { *m = ListNewCommitsRequest{} } -func (m *ListNewCommitsRequest) String() string { return proto.CompactTextString(m) } -func (*ListNewCommitsRequest) ProtoMessage() {} -func (*ListNewCommitsRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{34} } - -func (m *ListNewCommitsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *ListNewCommitsRequest) GetCommitId() string { - if m != nil { - return m.CommitId - } - return "" -} - -type ListNewCommitsResponse struct { - Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits" json:"commits,omitempty"` -} - -func (m *ListNewCommitsResponse) Reset() { *m = ListNewCommitsResponse{} } -func (m *ListNewCommitsResponse) String() string { return proto.CompactTextString(m) } -func (*ListNewCommitsResponse) ProtoMessage() {} -func (*ListNewCommitsResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{35} } - -func (m *ListNewCommitsResponse) GetCommits() []*GitCommit { - if m != nil { - return m.Commits - } - return nil -} - -type FindAllRemoteBranchesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - RemoteName string `protobuf:"bytes,2,opt,name=remote_name,json=remoteName" json:"remote_name,omitempty"` -} - -func (m *FindAllRemoteBranchesRequest) Reset() { *m = FindAllRemoteBranchesRequest{} } -func (m *FindAllRemoteBranchesRequest) String() string { return proto.CompactTextString(m) } -func (*FindAllRemoteBranchesRequest) ProtoMessage() {} -func (*FindAllRemoteBranchesRequest) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{36} } - -func (m *FindAllRemoteBranchesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *FindAllRemoteBranchesRequest) GetRemoteName() string { - if m != nil { - return m.RemoteName - } - return "" -} - -type FindAllRemoteBranchesResponse struct { - Branches []*Branch `protobuf:"bytes,1,rep,name=branches" json:"branches,omitempty"` -} - -func (m *FindAllRemoteBranchesResponse) Reset() { *m = FindAllRemoteBranchesResponse{} } -func (m *FindAllRemoteBranchesResponse) String() string { return proto.CompactTextString(m) } -func (*FindAllRemoteBranchesResponse) ProtoMessage() {} -func (*FindAllRemoteBranchesResponse) Descriptor() ([]byte, []int) { return fileDescriptor8, []int{37} } - -func (m *FindAllRemoteBranchesResponse) GetBranches() []*Branch { - if m != nil { - return m.Branches - } - return nil -} - -func init() { - proto.RegisterType((*ListNewBlobsRequest)(nil), "gitaly.ListNewBlobsRequest") - proto.RegisterType((*ListNewBlobsResponse)(nil), "gitaly.ListNewBlobsResponse") - proto.RegisterType((*FindDefaultBranchNameRequest)(nil), "gitaly.FindDefaultBranchNameRequest") - proto.RegisterType((*FindDefaultBranchNameResponse)(nil), "gitaly.FindDefaultBranchNameResponse") - proto.RegisterType((*FindAllBranchNamesRequest)(nil), "gitaly.FindAllBranchNamesRequest") - proto.RegisterType((*FindAllBranchNamesResponse)(nil), "gitaly.FindAllBranchNamesResponse") - proto.RegisterType((*FindAllTagNamesRequest)(nil), "gitaly.FindAllTagNamesRequest") - proto.RegisterType((*FindAllTagNamesResponse)(nil), "gitaly.FindAllTagNamesResponse") - proto.RegisterType((*FindRefNameRequest)(nil), "gitaly.FindRefNameRequest") - proto.RegisterType((*FindRefNameResponse)(nil), "gitaly.FindRefNameResponse") - proto.RegisterType((*FindLocalBranchesRequest)(nil), "gitaly.FindLocalBranchesRequest") - proto.RegisterType((*FindLocalBranchesResponse)(nil), "gitaly.FindLocalBranchesResponse") - proto.RegisterType((*FindLocalBranchResponse)(nil), "gitaly.FindLocalBranchResponse") - proto.RegisterType((*FindLocalBranchCommitAuthor)(nil), "gitaly.FindLocalBranchCommitAuthor") - proto.RegisterType((*FindAllBranchesRequest)(nil), "gitaly.FindAllBranchesRequest") - proto.RegisterType((*FindAllBranchesResponse)(nil), "gitaly.FindAllBranchesResponse") - proto.RegisterType((*FindAllBranchesResponse_Branch)(nil), "gitaly.FindAllBranchesResponse.Branch") - proto.RegisterType((*FindAllTagsRequest)(nil), "gitaly.FindAllTagsRequest") - proto.RegisterType((*FindAllTagsResponse)(nil), "gitaly.FindAllTagsResponse") - proto.RegisterType((*RefExistsRequest)(nil), "gitaly.RefExistsRequest") - proto.RegisterType((*RefExistsResponse)(nil), "gitaly.RefExistsResponse") - proto.RegisterType((*CreateBranchRequest)(nil), "gitaly.CreateBranchRequest") - proto.RegisterType((*CreateBranchResponse)(nil), "gitaly.CreateBranchResponse") - proto.RegisterType((*DeleteBranchRequest)(nil), "gitaly.DeleteBranchRequest") - proto.RegisterType((*DeleteBranchResponse)(nil), "gitaly.DeleteBranchResponse") - proto.RegisterType((*FindBranchRequest)(nil), "gitaly.FindBranchRequest") - proto.RegisterType((*FindBranchResponse)(nil), "gitaly.FindBranchResponse") - proto.RegisterType((*DeleteRefsRequest)(nil), "gitaly.DeleteRefsRequest") - proto.RegisterType((*DeleteRefsResponse)(nil), "gitaly.DeleteRefsResponse") - proto.RegisterType((*ListBranchNamesContainingCommitRequest)(nil), "gitaly.ListBranchNamesContainingCommitRequest") - proto.RegisterType((*ListBranchNamesContainingCommitResponse)(nil), "gitaly.ListBranchNamesContainingCommitResponse") - proto.RegisterType((*ListTagNamesContainingCommitRequest)(nil), "gitaly.ListTagNamesContainingCommitRequest") - proto.RegisterType((*ListTagNamesContainingCommitResponse)(nil), "gitaly.ListTagNamesContainingCommitResponse") - proto.RegisterType((*GetTagMessagesRequest)(nil), "gitaly.GetTagMessagesRequest") - proto.RegisterType((*GetTagMessagesResponse)(nil), "gitaly.GetTagMessagesResponse") - proto.RegisterType((*ListNewCommitsRequest)(nil), "gitaly.ListNewCommitsRequest") - proto.RegisterType((*ListNewCommitsResponse)(nil), "gitaly.ListNewCommitsResponse") - proto.RegisterType((*FindAllRemoteBranchesRequest)(nil), "gitaly.FindAllRemoteBranchesRequest") - proto.RegisterType((*FindAllRemoteBranchesResponse)(nil), "gitaly.FindAllRemoteBranchesResponse") - proto.RegisterEnum("gitaly.FindLocalBranchesRequest_SortBy", FindLocalBranchesRequest_SortBy_name, FindLocalBranchesRequest_SortBy_value) - proto.RegisterEnum("gitaly.CreateBranchResponse_Status", CreateBranchResponse_Status_name, CreateBranchResponse_Status_value) -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for RefService service - -type RefServiceClient interface { - FindDefaultBranchName(ctx context.Context, in *FindDefaultBranchNameRequest, opts ...grpc.CallOption) (*FindDefaultBranchNameResponse, error) - FindAllBranchNames(ctx context.Context, in *FindAllBranchNamesRequest, opts ...grpc.CallOption) (RefService_FindAllBranchNamesClient, error) - FindAllTagNames(ctx context.Context, in *FindAllTagNamesRequest, opts ...grpc.CallOption) (RefService_FindAllTagNamesClient, error) - // Find a Ref matching the given constraints. Response may be empty. - FindRefName(ctx context.Context, in *FindRefNameRequest, opts ...grpc.CallOption) (*FindRefNameResponse, error) - // Return a stream so we can divide the response in chunks of branches - FindLocalBranches(ctx context.Context, in *FindLocalBranchesRequest, opts ...grpc.CallOption) (RefService_FindLocalBranchesClient, error) - FindAllBranches(ctx context.Context, in *FindAllBranchesRequest, opts ...grpc.CallOption) (RefService_FindAllBranchesClient, error) - FindAllTags(ctx context.Context, in *FindAllTagsRequest, opts ...grpc.CallOption) (RefService_FindAllTagsClient, error) - FindAllRemoteBranches(ctx context.Context, in *FindAllRemoteBranchesRequest, opts ...grpc.CallOption) (RefService_FindAllRemoteBranchesClient, error) - RefExists(ctx context.Context, in *RefExistsRequest, opts ...grpc.CallOption) (*RefExistsResponse, error) - CreateBranch(ctx context.Context, in *CreateBranchRequest, opts ...grpc.CallOption) (*CreateBranchResponse, error) - DeleteBranch(ctx context.Context, in *DeleteBranchRequest, opts ...grpc.CallOption) (*DeleteBranchResponse, error) - FindBranch(ctx context.Context, in *FindBranchRequest, opts ...grpc.CallOption) (*FindBranchResponse, error) - DeleteRefs(ctx context.Context, in *DeleteRefsRequest, opts ...grpc.CallOption) (*DeleteRefsResponse, error) - ListBranchNamesContainingCommit(ctx context.Context, in *ListBranchNamesContainingCommitRequest, opts ...grpc.CallOption) (RefService_ListBranchNamesContainingCommitClient, error) - ListTagNamesContainingCommit(ctx context.Context, in *ListTagNamesContainingCommitRequest, opts ...grpc.CallOption) (RefService_ListTagNamesContainingCommitClient, error) - GetTagMessages(ctx context.Context, in *GetTagMessagesRequest, opts ...grpc.CallOption) (RefService_GetTagMessagesClient, error) - // Returns commits that are only reachable from the ref passed - ListNewCommits(ctx context.Context, in *ListNewCommitsRequest, opts ...grpc.CallOption) (RefService_ListNewCommitsClient, error) - ListNewBlobs(ctx context.Context, in *ListNewBlobsRequest, opts ...grpc.CallOption) (RefService_ListNewBlobsClient, error) -} - -type refServiceClient struct { - cc *grpc.ClientConn -} - -func NewRefServiceClient(cc *grpc.ClientConn) RefServiceClient { - return &refServiceClient{cc} -} - -func (c *refServiceClient) FindDefaultBranchName(ctx context.Context, in *FindDefaultBranchNameRequest, opts ...grpc.CallOption) (*FindDefaultBranchNameResponse, error) { - out := new(FindDefaultBranchNameResponse) - err := grpc.Invoke(ctx, "/gitaly.RefService/FindDefaultBranchName", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *refServiceClient) FindAllBranchNames(ctx context.Context, in *FindAllBranchNamesRequest, opts ...grpc.CallOption) (RefService_FindAllBranchNamesClient, error) { - stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[0], c.cc, "/gitaly.RefService/FindAllBranchNames", opts...) - if err != nil { - return nil, err - } - x := &refServiceFindAllBranchNamesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RefService_FindAllBranchNamesClient interface { - Recv() (*FindAllBranchNamesResponse, error) - grpc.ClientStream -} - -type refServiceFindAllBranchNamesClient struct { - grpc.ClientStream -} - -func (x *refServiceFindAllBranchNamesClient) Recv() (*FindAllBranchNamesResponse, error) { - m := new(FindAllBranchNamesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *refServiceClient) FindAllTagNames(ctx context.Context, in *FindAllTagNamesRequest, opts ...grpc.CallOption) (RefService_FindAllTagNamesClient, error) { - stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[1], c.cc, "/gitaly.RefService/FindAllTagNames", opts...) - if err != nil { - return nil, err - } - x := &refServiceFindAllTagNamesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RefService_FindAllTagNamesClient interface { - Recv() (*FindAllTagNamesResponse, error) - grpc.ClientStream -} - -type refServiceFindAllTagNamesClient struct { - grpc.ClientStream -} - -func (x *refServiceFindAllTagNamesClient) Recv() (*FindAllTagNamesResponse, error) { - m := new(FindAllTagNamesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *refServiceClient) FindRefName(ctx context.Context, in *FindRefNameRequest, opts ...grpc.CallOption) (*FindRefNameResponse, error) { - out := new(FindRefNameResponse) - err := grpc.Invoke(ctx, "/gitaly.RefService/FindRefName", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *refServiceClient) FindLocalBranches(ctx context.Context, in *FindLocalBranchesRequest, opts ...grpc.CallOption) (RefService_FindLocalBranchesClient, error) { - stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[2], c.cc, "/gitaly.RefService/FindLocalBranches", opts...) - if err != nil { - return nil, err - } - x := &refServiceFindLocalBranchesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RefService_FindLocalBranchesClient interface { - Recv() (*FindLocalBranchesResponse, error) - grpc.ClientStream -} - -type refServiceFindLocalBranchesClient struct { - grpc.ClientStream -} - -func (x *refServiceFindLocalBranchesClient) Recv() (*FindLocalBranchesResponse, error) { - m := new(FindLocalBranchesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *refServiceClient) FindAllBranches(ctx context.Context, in *FindAllBranchesRequest, opts ...grpc.CallOption) (RefService_FindAllBranchesClient, error) { - stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[3], c.cc, "/gitaly.RefService/FindAllBranches", opts...) - if err != nil { - return nil, err - } - x := &refServiceFindAllBranchesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RefService_FindAllBranchesClient interface { - Recv() (*FindAllBranchesResponse, error) - grpc.ClientStream -} - -type refServiceFindAllBranchesClient struct { - grpc.ClientStream -} - -func (x *refServiceFindAllBranchesClient) Recv() (*FindAllBranchesResponse, error) { - m := new(FindAllBranchesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *refServiceClient) FindAllTags(ctx context.Context, in *FindAllTagsRequest, opts ...grpc.CallOption) (RefService_FindAllTagsClient, error) { - stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[4], c.cc, "/gitaly.RefService/FindAllTags", opts...) - if err != nil { - return nil, err - } - x := &refServiceFindAllTagsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RefService_FindAllTagsClient interface { - Recv() (*FindAllTagsResponse, error) - grpc.ClientStream -} - -type refServiceFindAllTagsClient struct { - grpc.ClientStream -} - -func (x *refServiceFindAllTagsClient) Recv() (*FindAllTagsResponse, error) { - m := new(FindAllTagsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *refServiceClient) FindAllRemoteBranches(ctx context.Context, in *FindAllRemoteBranchesRequest, opts ...grpc.CallOption) (RefService_FindAllRemoteBranchesClient, error) { - stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[5], c.cc, "/gitaly.RefService/FindAllRemoteBranches", opts...) - if err != nil { - return nil, err - } - x := &refServiceFindAllRemoteBranchesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RefService_FindAllRemoteBranchesClient interface { - Recv() (*FindAllRemoteBranchesResponse, error) - grpc.ClientStream -} - -type refServiceFindAllRemoteBranchesClient struct { - grpc.ClientStream -} - -func (x *refServiceFindAllRemoteBranchesClient) Recv() (*FindAllRemoteBranchesResponse, error) { - m := new(FindAllRemoteBranchesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *refServiceClient) RefExists(ctx context.Context, in *RefExistsRequest, opts ...grpc.CallOption) (*RefExistsResponse, error) { - out := new(RefExistsResponse) - err := grpc.Invoke(ctx, "/gitaly.RefService/RefExists", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *refServiceClient) CreateBranch(ctx context.Context, in *CreateBranchRequest, opts ...grpc.CallOption) (*CreateBranchResponse, error) { - out := new(CreateBranchResponse) - err := grpc.Invoke(ctx, "/gitaly.RefService/CreateBranch", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *refServiceClient) DeleteBranch(ctx context.Context, in *DeleteBranchRequest, opts ...grpc.CallOption) (*DeleteBranchResponse, error) { - out := new(DeleteBranchResponse) - err := grpc.Invoke(ctx, "/gitaly.RefService/DeleteBranch", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *refServiceClient) FindBranch(ctx context.Context, in *FindBranchRequest, opts ...grpc.CallOption) (*FindBranchResponse, error) { - out := new(FindBranchResponse) - err := grpc.Invoke(ctx, "/gitaly.RefService/FindBranch", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *refServiceClient) DeleteRefs(ctx context.Context, in *DeleteRefsRequest, opts ...grpc.CallOption) (*DeleteRefsResponse, error) { - out := new(DeleteRefsResponse) - err := grpc.Invoke(ctx, "/gitaly.RefService/DeleteRefs", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *refServiceClient) ListBranchNamesContainingCommit(ctx context.Context, in *ListBranchNamesContainingCommitRequest, opts ...grpc.CallOption) (RefService_ListBranchNamesContainingCommitClient, error) { - stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[6], c.cc, "/gitaly.RefService/ListBranchNamesContainingCommit", opts...) - if err != nil { - return nil, err - } - x := &refServiceListBranchNamesContainingCommitClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RefService_ListBranchNamesContainingCommitClient interface { - Recv() (*ListBranchNamesContainingCommitResponse, error) - grpc.ClientStream -} - -type refServiceListBranchNamesContainingCommitClient struct { - grpc.ClientStream -} - -func (x *refServiceListBranchNamesContainingCommitClient) Recv() (*ListBranchNamesContainingCommitResponse, error) { - m := new(ListBranchNamesContainingCommitResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *refServiceClient) ListTagNamesContainingCommit(ctx context.Context, in *ListTagNamesContainingCommitRequest, opts ...grpc.CallOption) (RefService_ListTagNamesContainingCommitClient, error) { - stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[7], c.cc, "/gitaly.RefService/ListTagNamesContainingCommit", opts...) - if err != nil { - return nil, err - } - x := &refServiceListTagNamesContainingCommitClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RefService_ListTagNamesContainingCommitClient interface { - Recv() (*ListTagNamesContainingCommitResponse, error) - grpc.ClientStream -} - -type refServiceListTagNamesContainingCommitClient struct { - grpc.ClientStream -} - -func (x *refServiceListTagNamesContainingCommitClient) Recv() (*ListTagNamesContainingCommitResponse, error) { - m := new(ListTagNamesContainingCommitResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *refServiceClient) GetTagMessages(ctx context.Context, in *GetTagMessagesRequest, opts ...grpc.CallOption) (RefService_GetTagMessagesClient, error) { - stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[8], c.cc, "/gitaly.RefService/GetTagMessages", opts...) - if err != nil { - return nil, err - } - x := &refServiceGetTagMessagesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RefService_GetTagMessagesClient interface { - Recv() (*GetTagMessagesResponse, error) - grpc.ClientStream -} - -type refServiceGetTagMessagesClient struct { - grpc.ClientStream -} - -func (x *refServiceGetTagMessagesClient) Recv() (*GetTagMessagesResponse, error) { - m := new(GetTagMessagesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *refServiceClient) ListNewCommits(ctx context.Context, in *ListNewCommitsRequest, opts ...grpc.CallOption) (RefService_ListNewCommitsClient, error) { - stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[9], c.cc, "/gitaly.RefService/ListNewCommits", opts...) - if err != nil { - return nil, err - } - x := &refServiceListNewCommitsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RefService_ListNewCommitsClient interface { - Recv() (*ListNewCommitsResponse, error) - grpc.ClientStream -} - -type refServiceListNewCommitsClient struct { - grpc.ClientStream -} - -func (x *refServiceListNewCommitsClient) Recv() (*ListNewCommitsResponse, error) { - m := new(ListNewCommitsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *refServiceClient) ListNewBlobs(ctx context.Context, in *ListNewBlobsRequest, opts ...grpc.CallOption) (RefService_ListNewBlobsClient, error) { - stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[10], c.cc, "/gitaly.RefService/ListNewBlobs", opts...) - if err != nil { - return nil, err - } - x := &refServiceListNewBlobsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RefService_ListNewBlobsClient interface { - Recv() (*ListNewBlobsResponse, error) - grpc.ClientStream -} - -type refServiceListNewBlobsClient struct { - grpc.ClientStream -} - -func (x *refServiceListNewBlobsClient) Recv() (*ListNewBlobsResponse, error) { - m := new(ListNewBlobsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Server API for RefService service - -type RefServiceServer interface { - FindDefaultBranchName(context.Context, *FindDefaultBranchNameRequest) (*FindDefaultBranchNameResponse, error) - FindAllBranchNames(*FindAllBranchNamesRequest, RefService_FindAllBranchNamesServer) error - FindAllTagNames(*FindAllTagNamesRequest, RefService_FindAllTagNamesServer) error - // Find a Ref matching the given constraints. Response may be empty. - FindRefName(context.Context, *FindRefNameRequest) (*FindRefNameResponse, error) - // Return a stream so we can divide the response in chunks of branches - FindLocalBranches(*FindLocalBranchesRequest, RefService_FindLocalBranchesServer) error - FindAllBranches(*FindAllBranchesRequest, RefService_FindAllBranchesServer) error - FindAllTags(*FindAllTagsRequest, RefService_FindAllTagsServer) error - FindAllRemoteBranches(*FindAllRemoteBranchesRequest, RefService_FindAllRemoteBranchesServer) error - RefExists(context.Context, *RefExistsRequest) (*RefExistsResponse, error) - CreateBranch(context.Context, *CreateBranchRequest) (*CreateBranchResponse, error) - DeleteBranch(context.Context, *DeleteBranchRequest) (*DeleteBranchResponse, error) - FindBranch(context.Context, *FindBranchRequest) (*FindBranchResponse, error) - DeleteRefs(context.Context, *DeleteRefsRequest) (*DeleteRefsResponse, error) - ListBranchNamesContainingCommit(*ListBranchNamesContainingCommitRequest, RefService_ListBranchNamesContainingCommitServer) error - ListTagNamesContainingCommit(*ListTagNamesContainingCommitRequest, RefService_ListTagNamesContainingCommitServer) error - GetTagMessages(*GetTagMessagesRequest, RefService_GetTagMessagesServer) error - // Returns commits that are only reachable from the ref passed - ListNewCommits(*ListNewCommitsRequest, RefService_ListNewCommitsServer) error - ListNewBlobs(*ListNewBlobsRequest, RefService_ListNewBlobsServer) error -} - -func RegisterRefServiceServer(s *grpc.Server, srv RefServiceServer) { - s.RegisterService(&_RefService_serviceDesc, srv) -} - -func _RefService_FindDefaultBranchName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindDefaultBranchNameRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RefServiceServer).FindDefaultBranchName(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RefService/FindDefaultBranchName", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RefServiceServer).FindDefaultBranchName(ctx, req.(*FindDefaultBranchNameRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RefService_FindAllBranchNames_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(FindAllBranchNamesRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(RefServiceServer).FindAllBranchNames(m, &refServiceFindAllBranchNamesServer{stream}) -} - -type RefService_FindAllBranchNamesServer interface { - Send(*FindAllBranchNamesResponse) error - grpc.ServerStream -} - -type refServiceFindAllBranchNamesServer struct { - grpc.ServerStream -} - -func (x *refServiceFindAllBranchNamesServer) Send(m *FindAllBranchNamesResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _RefService_FindAllTagNames_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(FindAllTagNamesRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(RefServiceServer).FindAllTagNames(m, &refServiceFindAllTagNamesServer{stream}) -} - -type RefService_FindAllTagNamesServer interface { - Send(*FindAllTagNamesResponse) error - grpc.ServerStream -} - -type refServiceFindAllTagNamesServer struct { - grpc.ServerStream -} - -func (x *refServiceFindAllTagNamesServer) Send(m *FindAllTagNamesResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _RefService_FindRefName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindRefNameRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RefServiceServer).FindRefName(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RefService/FindRefName", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RefServiceServer).FindRefName(ctx, req.(*FindRefNameRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RefService_FindLocalBranches_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(FindLocalBranchesRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(RefServiceServer).FindLocalBranches(m, &refServiceFindLocalBranchesServer{stream}) -} - -type RefService_FindLocalBranchesServer interface { - Send(*FindLocalBranchesResponse) error - grpc.ServerStream -} - -type refServiceFindLocalBranchesServer struct { - grpc.ServerStream -} - -func (x *refServiceFindLocalBranchesServer) Send(m *FindLocalBranchesResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _RefService_FindAllBranches_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(FindAllBranchesRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(RefServiceServer).FindAllBranches(m, &refServiceFindAllBranchesServer{stream}) -} - -type RefService_FindAllBranchesServer interface { - Send(*FindAllBranchesResponse) error - grpc.ServerStream -} - -type refServiceFindAllBranchesServer struct { - grpc.ServerStream -} - -func (x *refServiceFindAllBranchesServer) Send(m *FindAllBranchesResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _RefService_FindAllTags_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(FindAllTagsRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(RefServiceServer).FindAllTags(m, &refServiceFindAllTagsServer{stream}) -} - -type RefService_FindAllTagsServer interface { - Send(*FindAllTagsResponse) error - grpc.ServerStream -} - -type refServiceFindAllTagsServer struct { - grpc.ServerStream -} - -func (x *refServiceFindAllTagsServer) Send(m *FindAllTagsResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _RefService_FindAllRemoteBranches_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(FindAllRemoteBranchesRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(RefServiceServer).FindAllRemoteBranches(m, &refServiceFindAllRemoteBranchesServer{stream}) -} - -type RefService_FindAllRemoteBranchesServer interface { - Send(*FindAllRemoteBranchesResponse) error - grpc.ServerStream -} - -type refServiceFindAllRemoteBranchesServer struct { - grpc.ServerStream -} - -func (x *refServiceFindAllRemoteBranchesServer) Send(m *FindAllRemoteBranchesResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _RefService_RefExists_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RefExistsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RefServiceServer).RefExists(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RefService/RefExists", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RefServiceServer).RefExists(ctx, req.(*RefExistsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RefService_CreateBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateBranchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RefServiceServer).CreateBranch(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RefService/CreateBranch", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RefServiceServer).CreateBranch(ctx, req.(*CreateBranchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RefService_DeleteBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteBranchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RefServiceServer).DeleteBranch(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RefService/DeleteBranch", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RefServiceServer).DeleteBranch(ctx, req.(*DeleteBranchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RefService_FindBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindBranchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RefServiceServer).FindBranch(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RefService/FindBranch", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RefServiceServer).FindBranch(ctx, req.(*FindBranchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RefService_DeleteRefs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteRefsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RefServiceServer).DeleteRefs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RefService/DeleteRefs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RefServiceServer).DeleteRefs(ctx, req.(*DeleteRefsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RefService_ListBranchNamesContainingCommit_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListBranchNamesContainingCommitRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(RefServiceServer).ListBranchNamesContainingCommit(m, &refServiceListBranchNamesContainingCommitServer{stream}) -} - -type RefService_ListBranchNamesContainingCommitServer interface { - Send(*ListBranchNamesContainingCommitResponse) error - grpc.ServerStream -} - -type refServiceListBranchNamesContainingCommitServer struct { - grpc.ServerStream -} - -func (x *refServiceListBranchNamesContainingCommitServer) Send(m *ListBranchNamesContainingCommitResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _RefService_ListTagNamesContainingCommit_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListTagNamesContainingCommitRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(RefServiceServer).ListTagNamesContainingCommit(m, &refServiceListTagNamesContainingCommitServer{stream}) -} - -type RefService_ListTagNamesContainingCommitServer interface { - Send(*ListTagNamesContainingCommitResponse) error - grpc.ServerStream -} - -type refServiceListTagNamesContainingCommitServer struct { - grpc.ServerStream -} - -func (x *refServiceListTagNamesContainingCommitServer) Send(m *ListTagNamesContainingCommitResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _RefService_GetTagMessages_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetTagMessagesRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(RefServiceServer).GetTagMessages(m, &refServiceGetTagMessagesServer{stream}) -} - -type RefService_GetTagMessagesServer interface { - Send(*GetTagMessagesResponse) error - grpc.ServerStream -} - -type refServiceGetTagMessagesServer struct { - grpc.ServerStream -} - -func (x *refServiceGetTagMessagesServer) Send(m *GetTagMessagesResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _RefService_ListNewCommits_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListNewCommitsRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(RefServiceServer).ListNewCommits(m, &refServiceListNewCommitsServer{stream}) -} - -type RefService_ListNewCommitsServer interface { - Send(*ListNewCommitsResponse) error - grpc.ServerStream -} - -type refServiceListNewCommitsServer struct { - grpc.ServerStream -} - -func (x *refServiceListNewCommitsServer) Send(m *ListNewCommitsResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _RefService_ListNewBlobs_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListNewBlobsRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(RefServiceServer).ListNewBlobs(m, &refServiceListNewBlobsServer{stream}) -} - -type RefService_ListNewBlobsServer interface { - Send(*ListNewBlobsResponse) error - grpc.ServerStream -} - -type refServiceListNewBlobsServer struct { - grpc.ServerStream -} - -func (x *refServiceListNewBlobsServer) Send(m *ListNewBlobsResponse) error { - return x.ServerStream.SendMsg(m) -} - -var _RefService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.RefService", - HandlerType: (*RefServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "FindDefaultBranchName", - Handler: _RefService_FindDefaultBranchName_Handler, - }, - { - MethodName: "FindRefName", - Handler: _RefService_FindRefName_Handler, - }, - { - MethodName: "RefExists", - Handler: _RefService_RefExists_Handler, - }, - { - MethodName: "CreateBranch", - Handler: _RefService_CreateBranch_Handler, - }, - { - MethodName: "DeleteBranch", - Handler: _RefService_DeleteBranch_Handler, - }, - { - MethodName: "FindBranch", - Handler: _RefService_FindBranch_Handler, - }, - { - MethodName: "DeleteRefs", - Handler: _RefService_DeleteRefs_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "FindAllBranchNames", - Handler: _RefService_FindAllBranchNames_Handler, - ServerStreams: true, - }, - { - StreamName: "FindAllTagNames", - Handler: _RefService_FindAllTagNames_Handler, - ServerStreams: true, - }, - { - StreamName: "FindLocalBranches", - Handler: _RefService_FindLocalBranches_Handler, - ServerStreams: true, - }, - { - StreamName: "FindAllBranches", - Handler: _RefService_FindAllBranches_Handler, - ServerStreams: true, - }, - { - StreamName: "FindAllTags", - Handler: _RefService_FindAllTags_Handler, - ServerStreams: true, - }, - { - StreamName: "FindAllRemoteBranches", - Handler: _RefService_FindAllRemoteBranches_Handler, - ServerStreams: true, - }, - { - StreamName: "ListBranchNamesContainingCommit", - Handler: _RefService_ListBranchNamesContainingCommit_Handler, - ServerStreams: true, - }, - { - StreamName: "ListTagNamesContainingCommit", - Handler: _RefService_ListTagNamesContainingCommit_Handler, - ServerStreams: true, - }, - { - StreamName: "GetTagMessages", - Handler: _RefService_GetTagMessages_Handler, - ServerStreams: true, - }, - { - StreamName: "ListNewCommits", - Handler: _RefService_ListNewCommits_Handler, - ServerStreams: true, - }, - { - StreamName: "ListNewBlobs", - Handler: _RefService_ListNewBlobs_Handler, - ServerStreams: true, - }, - }, - Metadata: "ref.proto", -} - -func init() { proto.RegisterFile("ref.proto", fileDescriptor8) } - -var fileDescriptor8 = []byte{ - // 1539 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 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0xb6, 0x28, 0xa4, 0x76, 0x03, 0x59, 0x7c, - 0x06, 0xeb, 0x13, 0xf8, 0x53, 0x03, 0xb2, 0x02, 0xf3, 0xb4, 0x6b, 0x58, 0x36, 0x0f, 0x46, 0x91, - 0x88, 0x05, 0xaa, 0xc0, 0x5c, 0xdb, 0x60, 0x94, 0xfb, 0x5f, 0xa8, 0x6a, 0x15, 0x51, 0xb8, 0x2b, - 0x41, 0xe1, 0xae, 0x34, 0x83, 0xc2, 0x4d, 0x38, 0x1f, 0xfe, 0x45, 0x09, 0x2f, 0xf5, 0xdf, 0x91, - 0xa8, 0x1b, 0x50, 0xe8, 0x52, 0xd7, 0xa4, 0x6d, 0xdd, 0xe9, 0xd9, 0x22, 0x59, 0x73, 0x04, 0x04, - 0xe9, 0xa8, 0x67, 0x9f, 0xa3, 0xfb, 0xb0, 0x28, 0x19, 0xc2, 0xd4, 0x99, 0xe5, 0x97, 0xbc, 0x24, - 0xc8, 0x81, 0x11, 0xf8, 0x57, 0x25, 0xac, 0x0f, 0x23, 0x89, 0xb7, 0x33, 0x92, 0x78, 0xf7, 0xe2, - 0x51, 0x4f, 0x11, 0xa9, 0xc8, 0x0c, 0x0b, 0xe5, 0xb4, 0x27, 0x90, 0x15, 0xb4, 0xd4, 0xe0, 0x3e, - 0x80, 0x2c, 0x33, 0x5c, 0x93, 0x32, 0xee, 0x42, 0xa1, 0xba, 0x14, 0xe0, 0x3f, 0x09, 0x4e, 0x8d, - 0x48, 0x06, 0xfc, 0x54, 0x94, 0x25, 0x51, 0xc7, 0xa6, 0xaa, 0x88, 0x1f, 0x88, 0x0a, 0x13, 0x22, - 0x49, 0x6f, 0x37, 0x60, 0x8e, 0x19, 0x66, 0xe0, 0x69, 0x21, 0x00, 0x69, 0x1a, 0x26, 0xe1, 0x1b, - 0xf8, 0x35, 0xa8, 0x84, 0x76, 0xea, 0x6f, 0x2d, 0x8f, 0x4d, 0x75, 0x78, 0x2a, 0xcc, 0xba, 0xb4, - 0x23, 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0x3d, 0xba, 0x1c, 0x73, 0x4c, 0x7d, - 0x03, 0x4a, 0xc9, 0x3e, 0x89, 0x6e, 0x84, 0x9d, 0x24, 0xad, 0x6d, 0x6b, 0x37, 0xc7, 0x6d, 0x27, - 0x41, 0x93, 0x7d, 0x2b, 0x02, 0x4d, 0xed, 0x9c, 0x11, 0x68, 0x7a, 0xbb, 0xe3, 0xa0, 0x2f, 0xa0, - 0x18, 0xff, 0x56, 0x19, 0x25, 0x63, 0xca, 0xf7, 0xd3, 0x28, 0x19, 0xd3, 0x3e, 0x6f, 0xfa, 0x70, - 0xad, 0x2c, 0x7f, 0xd9, 0x3f, 0xfe, 0x33, 0x00, 0x00, 0xff, 0xff, 0x8e, 0x95, 0x40, 0x62, 0xcf, - 0x15, 0x00, 0x00, -} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/remote.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/remote.pb.go deleted file mode 100644 index 8a0e609..0000000 --- a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/remote.pb.go +++ /dev/null @@ -1,510 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: remote.proto - -package gitaly - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -type AddRemoteRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` - Url string `protobuf:"bytes,3,opt,name=url" json:"url,omitempty"` - // If any, the remote is configured as a mirror with those mappings - MirrorRefmaps []string `protobuf:"bytes,5,rep,name=mirror_refmaps,json=mirrorRefmaps" json:"mirror_refmaps,omitempty"` -} - -func (m *AddRemoteRequest) Reset() { *m = AddRemoteRequest{} } -func (m *AddRemoteRequest) String() string { return proto.CompactTextString(m) } -func (*AddRemoteRequest) ProtoMessage() {} -func (*AddRemoteRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{0} } - -func (m *AddRemoteRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *AddRemoteRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *AddRemoteRequest) GetUrl() string { - if m != nil { - return m.Url - } - return "" -} - -func (m *AddRemoteRequest) GetMirrorRefmaps() []string { - if m != nil { - return m.MirrorRefmaps - } - return nil -} - -type AddRemoteResponse struct { -} - -func (m *AddRemoteResponse) Reset() { *m = AddRemoteResponse{} } -func (m *AddRemoteResponse) String() string { return proto.CompactTextString(m) } -func (*AddRemoteResponse) ProtoMessage() {} -func (*AddRemoteResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{1} } - -type RemoveRemoteRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` -} - -func (m *RemoveRemoteRequest) Reset() { *m = RemoveRemoteRequest{} } -func (m *RemoveRemoteRequest) String() string { return proto.CompactTextString(m) } -func (*RemoveRemoteRequest) ProtoMessage() {} -func (*RemoveRemoteRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{2} } - -func (m *RemoveRemoteRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *RemoveRemoteRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type RemoveRemoteResponse struct { - Result bool `protobuf:"varint,1,opt,name=result" json:"result,omitempty"` -} - -func (m *RemoveRemoteResponse) Reset() { *m = RemoveRemoteResponse{} } -func (m *RemoveRemoteResponse) String() string { return proto.CompactTextString(m) } -func (*RemoveRemoteResponse) ProtoMessage() {} -func (*RemoveRemoteResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{3} } - -func (m *RemoveRemoteResponse) GetResult() bool { - if m != nil { - return m.Result - } - return false -} - -type FetchInternalRemoteRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - RemoteRepository *Repository `protobuf:"bytes,2,opt,name=remote_repository,json=remoteRepository" json:"remote_repository,omitempty"` -} - -func (m *FetchInternalRemoteRequest) Reset() { *m = FetchInternalRemoteRequest{} } -func (m *FetchInternalRemoteRequest) String() string { return proto.CompactTextString(m) } -func (*FetchInternalRemoteRequest) ProtoMessage() {} -func (*FetchInternalRemoteRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{4} } - -func (m *FetchInternalRemoteRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *FetchInternalRemoteRequest) GetRemoteRepository() *Repository { - if m != nil { - return m.RemoteRepository - } - return nil -} - -type FetchInternalRemoteResponse struct { - Result bool `protobuf:"varint,1,opt,name=result" json:"result,omitempty"` -} - -func (m *FetchInternalRemoteResponse) Reset() { *m = FetchInternalRemoteResponse{} } -func (m *FetchInternalRemoteResponse) String() string { return proto.CompactTextString(m) } -func (*FetchInternalRemoteResponse) ProtoMessage() {} -func (*FetchInternalRemoteResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{5} } - -func (m *FetchInternalRemoteResponse) GetResult() bool { - if m != nil { - return m.Result - } - return false -} - -type UpdateRemoteMirrorRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - RefName string `protobuf:"bytes,2,opt,name=ref_name,json=refName" json:"ref_name,omitempty"` - OnlyBranchesMatching [][]byte `protobuf:"bytes,3,rep,name=only_branches_matching,json=onlyBranchesMatching,proto3" json:"only_branches_matching,omitempty"` -} - -func (m *UpdateRemoteMirrorRequest) Reset() { *m = UpdateRemoteMirrorRequest{} } -func (m *UpdateRemoteMirrorRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateRemoteMirrorRequest) ProtoMessage() {} -func (*UpdateRemoteMirrorRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{6} } - -func (m *UpdateRemoteMirrorRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *UpdateRemoteMirrorRequest) GetRefName() string { - if m != nil { - return m.RefName - } - return "" -} - -func (m *UpdateRemoteMirrorRequest) GetOnlyBranchesMatching() [][]byte { - if m != nil { - return m.OnlyBranchesMatching - } - return nil -} - -type UpdateRemoteMirrorResponse struct { -} - -func (m *UpdateRemoteMirrorResponse) Reset() { *m = UpdateRemoteMirrorResponse{} } -func (m *UpdateRemoteMirrorResponse) String() string { return proto.CompactTextString(m) } -func (*UpdateRemoteMirrorResponse) ProtoMessage() {} -func (*UpdateRemoteMirrorResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{7} } - -type FindRemoteRepositoryRequest struct { - Remote string `protobuf:"bytes,1,opt,name=remote" json:"remote,omitempty"` -} - -func (m *FindRemoteRepositoryRequest) Reset() { *m = FindRemoteRepositoryRequest{} } -func (m *FindRemoteRepositoryRequest) String() string { return proto.CompactTextString(m) } -func (*FindRemoteRepositoryRequest) ProtoMessage() {} -func (*FindRemoteRepositoryRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{8} } - -func (m *FindRemoteRepositoryRequest) GetRemote() string { - if m != nil { - return m.Remote - } - return "" -} - -// This migth throw a GRPC Unavailable code, to signal the request failure -// is transient. -type FindRemoteRepositoryResponse struct { - Exists bool `protobuf:"varint,1,opt,name=exists" json:"exists,omitempty"` -} - -func (m *FindRemoteRepositoryResponse) Reset() { *m = FindRemoteRepositoryResponse{} } -func (m *FindRemoteRepositoryResponse) String() string { return proto.CompactTextString(m) } -func (*FindRemoteRepositoryResponse) ProtoMessage() {} -func (*FindRemoteRepositoryResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{9} } - -func (m *FindRemoteRepositoryResponse) GetExists() bool { - if m != nil { - return m.Exists - } - return false -} - -func init() { - proto.RegisterType((*AddRemoteRequest)(nil), "gitaly.AddRemoteRequest") - proto.RegisterType((*AddRemoteResponse)(nil), "gitaly.AddRemoteResponse") - proto.RegisterType((*RemoveRemoteRequest)(nil), "gitaly.RemoveRemoteRequest") - proto.RegisterType((*RemoveRemoteResponse)(nil), "gitaly.RemoveRemoteResponse") - proto.RegisterType((*FetchInternalRemoteRequest)(nil), "gitaly.FetchInternalRemoteRequest") - proto.RegisterType((*FetchInternalRemoteResponse)(nil), "gitaly.FetchInternalRemoteResponse") - proto.RegisterType((*UpdateRemoteMirrorRequest)(nil), "gitaly.UpdateRemoteMirrorRequest") - proto.RegisterType((*UpdateRemoteMirrorResponse)(nil), "gitaly.UpdateRemoteMirrorResponse") - proto.RegisterType((*FindRemoteRepositoryRequest)(nil), "gitaly.FindRemoteRepositoryRequest") - proto.RegisterType((*FindRemoteRepositoryResponse)(nil), "gitaly.FindRemoteRepositoryResponse") -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for RemoteService service - -type RemoteServiceClient interface { - AddRemote(ctx context.Context, in *AddRemoteRequest, opts ...grpc.CallOption) (*AddRemoteResponse, error) - FetchInternalRemote(ctx context.Context, in *FetchInternalRemoteRequest, opts ...grpc.CallOption) (*FetchInternalRemoteResponse, error) - RemoveRemote(ctx context.Context, in *RemoveRemoteRequest, opts ...grpc.CallOption) (*RemoveRemoteResponse, error) - UpdateRemoteMirror(ctx context.Context, opts ...grpc.CallOption) (RemoteService_UpdateRemoteMirrorClient, error) - FindRemoteRepository(ctx context.Context, in *FindRemoteRepositoryRequest, opts ...grpc.CallOption) (*FindRemoteRepositoryResponse, error) -} - -type remoteServiceClient struct { - cc *grpc.ClientConn -} - -func NewRemoteServiceClient(cc *grpc.ClientConn) RemoteServiceClient { - return &remoteServiceClient{cc} -} - -func (c *remoteServiceClient) AddRemote(ctx context.Context, in *AddRemoteRequest, opts ...grpc.CallOption) (*AddRemoteResponse, error) { - out := new(AddRemoteResponse) - err := grpc.Invoke(ctx, "/gitaly.RemoteService/AddRemote", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *remoteServiceClient) FetchInternalRemote(ctx context.Context, in *FetchInternalRemoteRequest, opts ...grpc.CallOption) (*FetchInternalRemoteResponse, error) { - out := new(FetchInternalRemoteResponse) - err := grpc.Invoke(ctx, "/gitaly.RemoteService/FetchInternalRemote", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *remoteServiceClient) RemoveRemote(ctx context.Context, in *RemoveRemoteRequest, opts ...grpc.CallOption) (*RemoveRemoteResponse, error) { - out := new(RemoveRemoteResponse) - err := grpc.Invoke(ctx, "/gitaly.RemoteService/RemoveRemote", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *remoteServiceClient) UpdateRemoteMirror(ctx context.Context, opts ...grpc.CallOption) (RemoteService_UpdateRemoteMirrorClient, error) { - stream, err := grpc.NewClientStream(ctx, &_RemoteService_serviceDesc.Streams[0], c.cc, "/gitaly.RemoteService/UpdateRemoteMirror", opts...) - if err != nil { - return nil, err - } - x := &remoteServiceUpdateRemoteMirrorClient{stream} - return x, nil -} - -type RemoteService_UpdateRemoteMirrorClient interface { - Send(*UpdateRemoteMirrorRequest) error - CloseAndRecv() (*UpdateRemoteMirrorResponse, error) - grpc.ClientStream -} - -type remoteServiceUpdateRemoteMirrorClient struct { - grpc.ClientStream -} - -func (x *remoteServiceUpdateRemoteMirrorClient) Send(m *UpdateRemoteMirrorRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *remoteServiceUpdateRemoteMirrorClient) CloseAndRecv() (*UpdateRemoteMirrorResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(UpdateRemoteMirrorResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *remoteServiceClient) FindRemoteRepository(ctx context.Context, in *FindRemoteRepositoryRequest, opts ...grpc.CallOption) (*FindRemoteRepositoryResponse, error) { - out := new(FindRemoteRepositoryResponse) - err := grpc.Invoke(ctx, "/gitaly.RemoteService/FindRemoteRepository", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for RemoteService service - -type RemoteServiceServer interface { - AddRemote(context.Context, *AddRemoteRequest) (*AddRemoteResponse, error) - FetchInternalRemote(context.Context, *FetchInternalRemoteRequest) (*FetchInternalRemoteResponse, error) - RemoveRemote(context.Context, *RemoveRemoteRequest) (*RemoveRemoteResponse, error) - UpdateRemoteMirror(RemoteService_UpdateRemoteMirrorServer) error - FindRemoteRepository(context.Context, *FindRemoteRepositoryRequest) (*FindRemoteRepositoryResponse, error) -} - -func RegisterRemoteServiceServer(s *grpc.Server, srv RemoteServiceServer) { - s.RegisterService(&_RemoteService_serviceDesc, srv) -} - -func _RemoteService_AddRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddRemoteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RemoteServiceServer).AddRemote(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RemoteService/AddRemote", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RemoteServiceServer).AddRemote(ctx, req.(*AddRemoteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RemoteService_FetchInternalRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FetchInternalRemoteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RemoteServiceServer).FetchInternalRemote(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RemoteService/FetchInternalRemote", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RemoteServiceServer).FetchInternalRemote(ctx, req.(*FetchInternalRemoteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RemoteService_RemoveRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveRemoteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RemoteServiceServer).RemoveRemote(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RemoteService/RemoveRemote", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RemoteServiceServer).RemoveRemote(ctx, req.(*RemoveRemoteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RemoteService_UpdateRemoteMirror_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(RemoteServiceServer).UpdateRemoteMirror(&remoteServiceUpdateRemoteMirrorServer{stream}) -} - -type RemoteService_UpdateRemoteMirrorServer interface { - SendAndClose(*UpdateRemoteMirrorResponse) error - Recv() (*UpdateRemoteMirrorRequest, error) - grpc.ServerStream -} - -type remoteServiceUpdateRemoteMirrorServer struct { - grpc.ServerStream -} - -func (x *remoteServiceUpdateRemoteMirrorServer) SendAndClose(m *UpdateRemoteMirrorResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *remoteServiceUpdateRemoteMirrorServer) Recv() (*UpdateRemoteMirrorRequest, error) { - m := new(UpdateRemoteMirrorRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _RemoteService_FindRemoteRepository_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindRemoteRepositoryRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RemoteServiceServer).FindRemoteRepository(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RemoteService/FindRemoteRepository", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RemoteServiceServer).FindRemoteRepository(ctx, req.(*FindRemoteRepositoryRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _RemoteService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.RemoteService", - HandlerType: (*RemoteServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "AddRemote", - Handler: _RemoteService_AddRemote_Handler, - }, - { - MethodName: "FetchInternalRemote", - Handler: _RemoteService_FetchInternalRemote_Handler, - }, - { - MethodName: "RemoveRemote", - Handler: _RemoteService_RemoveRemote_Handler, - }, - { - MethodName: "FindRemoteRepository", - Handler: _RemoteService_FindRemoteRepository_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "UpdateRemoteMirror", - Handler: _RemoteService_UpdateRemoteMirror_Handler, - ClientStreams: true, - }, - }, - Metadata: "remote.proto", -} - -func init() { proto.RegisterFile("remote.proto", fileDescriptor9) } - -var fileDescriptor9 = []byte{ - // 485 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0xcd, 0x6e, 0xd3, 0x40, - 0x10, 0xc6, 0x75, 0x1a, 0x92, 0x21, 0x45, 0xe9, 0x26, 0xaa, 0x1c, 0x37, 0x87, 0xb0, 0x80, 0xe4, - 0x53, 0x0e, 0xe1, 0xe7, 0x8a, 0xe8, 0x01, 0x09, 0x50, 0x39, 0x2c, 0xe2, 0x88, 0x8c, 0xeb, 0x4c, - 0x1a, 0x4b, 0xfe, 0x63, 0x76, 0x53, 0x91, 0xc7, 0xe0, 0x0d, 0x38, 0xf2, 0x28, 0x3c, 0x16, 0xb2, - 0xbd, 0xeb, 0x18, 0xea, 0x04, 0x09, 0xc4, 0xcd, 0x3b, 0x33, 0xdf, 0xce, 0x7c, 0xf3, 0x7d, 0x6b, - 0x18, 0x10, 0x26, 0x99, 0xc2, 0x79, 0x4e, 0x99, 0xca, 0x58, 0xf7, 0x3a, 0x52, 0x41, 0xbc, 0x75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 0x72, 0xf7, 0xd1, 0xe1, 0x22, - 0xd3, 0xe6, 0xaa, 0x5b, 0xfe, 0x1b, 0x9f, 0xfc, 0x0c, 0x00, 0x00, 0xff, 0xff, 0xe5, 0x0c, 0x2a, - 0x1a, 0x41, 0x05, 0x00, 0x00, -} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/repository-service.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/repository-service.pb.go deleted file mode 100644 index 4ef426a..0000000 --- a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/repository-service.pb.go +++ /dev/null @@ -1,3270 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: repository-service.proto - -package gitaly - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -type GetArchiveRequest_Format int32 - -const ( - GetArchiveRequest_ZIP GetArchiveRequest_Format = 0 - GetArchiveRequest_TAR GetArchiveRequest_Format = 1 - GetArchiveRequest_TAR_GZ GetArchiveRequest_Format = 2 - GetArchiveRequest_TAR_BZ2 GetArchiveRequest_Format = 3 -) - -var GetArchiveRequest_Format_name = map[int32]string{ - 0: "ZIP", - 1: "TAR", - 2: "TAR_GZ", - 3: "TAR_BZ2", -} -var GetArchiveRequest_Format_value = map[string]int32{ - "ZIP": 0, - "TAR": 1, - "TAR_GZ": 2, - "TAR_BZ2": 3, -} - -func (x GetArchiveRequest_Format) String() string { - return proto.EnumName(GetArchiveRequest_Format_name, int32(x)) -} -func (GetArchiveRequest_Format) EnumDescriptor() ([]byte, []int) { - return fileDescriptor10, []int{18, 0} -} - -type GetRawChangesResponse_RawChange_Operation int32 - -const ( - GetRawChangesResponse_RawChange_UNKNOWN GetRawChangesResponse_RawChange_Operation = 0 - GetRawChangesResponse_RawChange_ADDED GetRawChangesResponse_RawChange_Operation = 1 - GetRawChangesResponse_RawChange_COPIED GetRawChangesResponse_RawChange_Operation = 2 - GetRawChangesResponse_RawChange_DELETED GetRawChangesResponse_RawChange_Operation = 3 - GetRawChangesResponse_RawChange_MODIFIED GetRawChangesResponse_RawChange_Operation = 4 - GetRawChangesResponse_RawChange_RENAMED GetRawChangesResponse_RawChange_Operation = 5 - GetRawChangesResponse_RawChange_TYPE_CHANGED GetRawChangesResponse_RawChange_Operation = 6 -) - -var GetRawChangesResponse_RawChange_Operation_name = map[int32]string{ - 0: "UNKNOWN", - 1: "ADDED", - 2: "COPIED", - 3: "DELETED", - 4: "MODIFIED", - 5: "RENAMED", - 6: "TYPE_CHANGED", -} -var GetRawChangesResponse_RawChange_Operation_value = map[string]int32{ - "UNKNOWN": 0, - "ADDED": 1, - "COPIED": 2, - "DELETED": 3, - "MODIFIED": 4, - "RENAMED": 5, - "TYPE_CHANGED": 6, -} - -func (x GetRawChangesResponse_RawChange_Operation) String() string { - return proto.EnumName(GetRawChangesResponse_RawChange_Operation_name, int32(x)) -} -func (GetRawChangesResponse_RawChange_Operation) EnumDescriptor() ([]byte, []int) { - return fileDescriptor10, []int{63, 0, 0} -} - -type RepositoryExistsRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` -} - -func (m *RepositoryExistsRequest) Reset() { *m = RepositoryExistsRequest{} } -func (m *RepositoryExistsRequest) String() string { return proto.CompactTextString(m) } -func (*RepositoryExistsRequest) ProtoMessage() {} -func (*RepositoryExistsRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{0} } - -func (m *RepositoryExistsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -type RepositoryExistsResponse struct { - Exists bool `protobuf:"varint,1,opt,name=exists" json:"exists,omitempty"` -} - -func (m *RepositoryExistsResponse) Reset() { *m = RepositoryExistsResponse{} } -func (m *RepositoryExistsResponse) String() string { return proto.CompactTextString(m) } -func (*RepositoryExistsResponse) ProtoMessage() {} -func (*RepositoryExistsResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{1} } - -func (m *RepositoryExistsResponse) GetExists() bool { - if m != nil { - return m.Exists - } - return false -} - -type RepackIncrementalRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` -} - -func (m *RepackIncrementalRequest) Reset() { *m = RepackIncrementalRequest{} } -func (m *RepackIncrementalRequest) String() string { return proto.CompactTextString(m) } -func (*RepackIncrementalRequest) ProtoMessage() {} -func (*RepackIncrementalRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{2} } - -func (m *RepackIncrementalRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -type RepackIncrementalResponse struct { -} - -func (m *RepackIncrementalResponse) Reset() { *m = RepackIncrementalResponse{} } -func (m *RepackIncrementalResponse) String() string { return proto.CompactTextString(m) } -func (*RepackIncrementalResponse) ProtoMessage() {} -func (*RepackIncrementalResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{3} } - -type RepackFullRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - CreateBitmap bool `protobuf:"varint,2,opt,name=create_bitmap,json=createBitmap" json:"create_bitmap,omitempty"` -} - -func (m *RepackFullRequest) Reset() { *m = RepackFullRequest{} } -func (m *RepackFullRequest) String() string { return proto.CompactTextString(m) } -func (*RepackFullRequest) ProtoMessage() {} -func (*RepackFullRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{4} } - -func (m *RepackFullRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *RepackFullRequest) GetCreateBitmap() bool { - if m != nil { - return m.CreateBitmap - } - return false -} - -type RepackFullResponse struct { -} - -func (m *RepackFullResponse) Reset() { *m = RepackFullResponse{} } -func (m *RepackFullResponse) String() string { return proto.CompactTextString(m) } -func (*RepackFullResponse) ProtoMessage() {} -func (*RepackFullResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{5} } - -type GarbageCollectRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - CreateBitmap bool `protobuf:"varint,2,opt,name=create_bitmap,json=createBitmap" json:"create_bitmap,omitempty"` -} - -func (m *GarbageCollectRequest) Reset() { *m = GarbageCollectRequest{} } -func (m *GarbageCollectRequest) String() string { return proto.CompactTextString(m) } -func (*GarbageCollectRequest) ProtoMessage() {} -func (*GarbageCollectRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{6} } - -func (m *GarbageCollectRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *GarbageCollectRequest) GetCreateBitmap() bool { - if m != nil { - return m.CreateBitmap - } - return false -} - -type GarbageCollectResponse struct { -} - -func (m *GarbageCollectResponse) Reset() { *m = GarbageCollectResponse{} } -func (m *GarbageCollectResponse) String() string { return proto.CompactTextString(m) } -func (*GarbageCollectResponse) ProtoMessage() {} -func (*GarbageCollectResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{7} } - -type CleanupRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` -} - -func (m *CleanupRequest) Reset() { *m = CleanupRequest{} } -func (m *CleanupRequest) String() string { return proto.CompactTextString(m) } -func (*CleanupRequest) ProtoMessage() {} -func (*CleanupRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{8} } - -func (m *CleanupRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -type CleanupResponse struct { -} - -func (m *CleanupResponse) Reset() { *m = CleanupResponse{} } -func (m *CleanupResponse) String() string { return proto.CompactTextString(m) } -func (*CleanupResponse) ProtoMessage() {} -func (*CleanupResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{9} } - -type RepositorySizeRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` -} - -func (m *RepositorySizeRequest) Reset() { *m = RepositorySizeRequest{} } -func (m *RepositorySizeRequest) String() string { return proto.CompactTextString(m) } -func (*RepositorySizeRequest) ProtoMessage() {} -func (*RepositorySizeRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{10} } - -func (m *RepositorySizeRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -type RepositorySizeResponse struct { - // Repository size in kilobytes - Size int64 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"` -} - -func (m *RepositorySizeResponse) Reset() { *m = RepositorySizeResponse{} } -func (m *RepositorySizeResponse) String() string { return proto.CompactTextString(m) } -func (*RepositorySizeResponse) ProtoMessage() {} -func (*RepositorySizeResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{11} } - -func (m *RepositorySizeResponse) GetSize() int64 { - if m != nil { - return m.Size - } - return 0 -} - -type ApplyGitattributesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` -} - -func (m *ApplyGitattributesRequest) Reset() { *m = ApplyGitattributesRequest{} } -func (m *ApplyGitattributesRequest) String() string { return proto.CompactTextString(m) } -func (*ApplyGitattributesRequest) ProtoMessage() {} -func (*ApplyGitattributesRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{12} } - -func (m *ApplyGitattributesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *ApplyGitattributesRequest) GetRevision() []byte { - if m != nil { - return m.Revision - } - return nil -} - -type ApplyGitattributesResponse struct { -} - -func (m *ApplyGitattributesResponse) Reset() { *m = ApplyGitattributesResponse{} } -func (m *ApplyGitattributesResponse) String() string { return proto.CompactTextString(m) } -func (*ApplyGitattributesResponse) ProtoMessage() {} -func (*ApplyGitattributesResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{13} } - -type FetchRemoteRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Remote string `protobuf:"bytes,2,opt,name=remote" json:"remote,omitempty"` - Force bool `protobuf:"varint,3,opt,name=force" json:"force,omitempty"` - NoTags bool `protobuf:"varint,4,opt,name=no_tags,json=noTags" json:"no_tags,omitempty"` - Timeout int32 `protobuf:"varint,5,opt,name=timeout" json:"timeout,omitempty"` - SshKey string `protobuf:"bytes,6,opt,name=ssh_key,json=sshKey" json:"ssh_key,omitempty"` - KnownHosts string `protobuf:"bytes,7,opt,name=known_hosts,json=knownHosts" json:"known_hosts,omitempty"` - NoPrune bool `protobuf:"varint,9,opt,name=no_prune,json=noPrune" json:"no_prune,omitempty"` -} - -func (m *FetchRemoteRequest) Reset() { *m = FetchRemoteRequest{} } -func (m *FetchRemoteRequest) String() string { return proto.CompactTextString(m) } -func (*FetchRemoteRequest) ProtoMessage() {} -func (*FetchRemoteRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{14} } - -func (m *FetchRemoteRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *FetchRemoteRequest) GetRemote() string { - if m != nil { - return m.Remote - } - return "" -} - -func (m *FetchRemoteRequest) GetForce() bool { - if m != nil { - return m.Force - } - return false -} - -func (m *FetchRemoteRequest) GetNoTags() bool { - if m != nil { - return m.NoTags - } - return false -} - -func (m *FetchRemoteRequest) GetTimeout() int32 { - if m != nil { - return m.Timeout - } - return 0 -} - -func (m *FetchRemoteRequest) GetSshKey() string { - if m != nil { - return m.SshKey - } - return "" -} - -func (m *FetchRemoteRequest) GetKnownHosts() string { - if m != nil { - return m.KnownHosts - } - return "" -} - -func (m *FetchRemoteRequest) GetNoPrune() bool { - if m != nil { - return m.NoPrune - } - return false -} - -type FetchRemoteResponse struct { -} - -func (m *FetchRemoteResponse) Reset() { *m = FetchRemoteResponse{} } -func (m *FetchRemoteResponse) String() string { return proto.CompactTextString(m) } -func (*FetchRemoteResponse) ProtoMessage() {} -func (*FetchRemoteResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{15} } - -type CreateRepositoryRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` -} - -func (m *CreateRepositoryRequest) Reset() { *m = CreateRepositoryRequest{} } -func (m *CreateRepositoryRequest) String() string { return proto.CompactTextString(m) } -func (*CreateRepositoryRequest) ProtoMessage() {} -func (*CreateRepositoryRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{16} } - -func (m *CreateRepositoryRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -type CreateRepositoryResponse struct { -} - -func (m *CreateRepositoryResponse) Reset() { *m = CreateRepositoryResponse{} } -func (m *CreateRepositoryResponse) String() string { return proto.CompactTextString(m) } -func (*CreateRepositoryResponse) ProtoMessage() {} -func (*CreateRepositoryResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{17} } - -type GetArchiveRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"` - Prefix string `protobuf:"bytes,3,opt,name=prefix" json:"prefix,omitempty"` - Format GetArchiveRequest_Format `protobuf:"varint,4,opt,name=format,enum=gitaly.GetArchiveRequest_Format" json:"format,omitempty"` -} - -func (m *GetArchiveRequest) Reset() { *m = GetArchiveRequest{} } -func (m *GetArchiveRequest) String() string { return proto.CompactTextString(m) } -func (*GetArchiveRequest) ProtoMessage() {} -func (*GetArchiveRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{18} } - -func (m *GetArchiveRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *GetArchiveRequest) GetCommitId() string { - if m != nil { - return m.CommitId - } - return "" -} - -func (m *GetArchiveRequest) GetPrefix() string { - if m != nil { - return m.Prefix - } - return "" -} - -func (m *GetArchiveRequest) GetFormat() GetArchiveRequest_Format { - if m != nil { - return m.Format - } - return GetArchiveRequest_ZIP -} - -type GetArchiveResponse struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (m *GetArchiveResponse) Reset() { *m = GetArchiveResponse{} } -func (m *GetArchiveResponse) String() string { return proto.CompactTextString(m) } -func (*GetArchiveResponse) ProtoMessage() {} -func (*GetArchiveResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{19} } - -func (m *GetArchiveResponse) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} - -type HasLocalBranchesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` -} - -func (m *HasLocalBranchesRequest) Reset() { *m = HasLocalBranchesRequest{} } -func (m *HasLocalBranchesRequest) String() string { return proto.CompactTextString(m) } -func (*HasLocalBranchesRequest) ProtoMessage() {} -func (*HasLocalBranchesRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{20} } - -func (m *HasLocalBranchesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -type HasLocalBranchesResponse struct { - Value bool `protobuf:"varint,1,opt,name=value" json:"value,omitempty"` -} - -func (m *HasLocalBranchesResponse) Reset() { *m = HasLocalBranchesResponse{} } -func (m *HasLocalBranchesResponse) String() string { return proto.CompactTextString(m) } -func (*HasLocalBranchesResponse) ProtoMessage() {} -func (*HasLocalBranchesResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{21} } - -func (m *HasLocalBranchesResponse) GetValue() bool { - if m != nil { - return m.Value - } - return false -} - -type FetchSourceBranchRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - SourceRepository *Repository `protobuf:"bytes,2,opt,name=source_repository,json=sourceRepository" json:"source_repository,omitempty"` - SourceBranch []byte `protobuf:"bytes,3,opt,name=source_branch,json=sourceBranch,proto3" json:"source_branch,omitempty"` - TargetRef []byte `protobuf:"bytes,4,opt,name=target_ref,json=targetRef,proto3" json:"target_ref,omitempty"` -} - -func (m *FetchSourceBranchRequest) Reset() { *m = FetchSourceBranchRequest{} } -func (m *FetchSourceBranchRequest) String() string { return proto.CompactTextString(m) } -func (*FetchSourceBranchRequest) ProtoMessage() {} -func (*FetchSourceBranchRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{22} } - -func (m *FetchSourceBranchRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *FetchSourceBranchRequest) GetSourceRepository() *Repository { - if m != nil { - return m.SourceRepository - } - return nil -} - -func (m *FetchSourceBranchRequest) GetSourceBranch() []byte { - if m != nil { - return m.SourceBranch - } - return nil -} - -func (m *FetchSourceBranchRequest) GetTargetRef() []byte { - if m != nil { - return m.TargetRef - } - return nil -} - -type FetchSourceBranchResponse struct { - Result bool `protobuf:"varint,1,opt,name=result" json:"result,omitempty"` -} - -func (m *FetchSourceBranchResponse) Reset() { *m = FetchSourceBranchResponse{} } -func (m *FetchSourceBranchResponse) String() string { return proto.CompactTextString(m) } -func (*FetchSourceBranchResponse) ProtoMessage() {} -func (*FetchSourceBranchResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{23} } - -func (m *FetchSourceBranchResponse) GetResult() bool { - if m != nil { - return m.Result - } - return false -} - -type FsckRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` -} - -func (m *FsckRequest) Reset() { *m = FsckRequest{} } -func (m *FsckRequest) String() string { return proto.CompactTextString(m) } -func (*FsckRequest) ProtoMessage() {} -func (*FsckRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{24} } - -func (m *FsckRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -type FsckResponse struct { - Error []byte `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *FsckResponse) Reset() { *m = FsckResponse{} } -func (m *FsckResponse) String() string { return proto.CompactTextString(m) } -func (*FsckResponse) ProtoMessage() {} -func (*FsckResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{25} } - -func (m *FsckResponse) GetError() []byte { - if m != nil { - return m.Error - } - return nil -} - -type WriteRefRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Ref []byte `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` - Revision []byte `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"` - OldRevision []byte `protobuf:"bytes,4,opt,name=old_revision,json=oldRevision,proto3" json:"old_revision,omitempty"` - Force bool `protobuf:"varint,5,opt,name=force" json:"force,omitempty"` - Shell bool `protobuf:"varint,6,opt,name=shell" json:"shell,omitempty"` -} - -func (m *WriteRefRequest) Reset() { *m = WriteRefRequest{} } -func (m *WriteRefRequest) String() string { return proto.CompactTextString(m) } -func (*WriteRefRequest) ProtoMessage() {} -func (*WriteRefRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{26} } - -func (m *WriteRefRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *WriteRefRequest) GetRef() []byte { - if m != nil { - return m.Ref - } - return nil -} - -func (m *WriteRefRequest) GetRevision() []byte { - if m != nil { - return m.Revision - } - return nil -} - -func (m *WriteRefRequest) GetOldRevision() []byte { - if m != nil { - return m.OldRevision - } - return nil -} - -func (m *WriteRefRequest) GetForce() bool { - if m != nil { - return m.Force - } - return false -} - -func (m *WriteRefRequest) GetShell() bool { - if m != nil { - return m.Shell - } - return false -} - -type WriteRefResponse struct { - Error []byte `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *WriteRefResponse) Reset() { *m = WriteRefResponse{} } -func (m *WriteRefResponse) String() string { return proto.CompactTextString(m) } -func (*WriteRefResponse) ProtoMessage() {} -func (*WriteRefResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{27} } - -func (m *WriteRefResponse) GetError() []byte { - if m != nil { - return m.Error - } - return nil -} - -type FindMergeBaseRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - // We use a repeated field because rugged supports finding a base - // for more than 2 revisions, so if we needed that in the future we don't - // need to change the protocol. - Revisions [][]byte `protobuf:"bytes,2,rep,name=revisions,proto3" json:"revisions,omitempty"` -} - -func (m *FindMergeBaseRequest) Reset() { *m = FindMergeBaseRequest{} } -func (m *FindMergeBaseRequest) String() string { return proto.CompactTextString(m) } -func (*FindMergeBaseRequest) ProtoMessage() {} -func (*FindMergeBaseRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{28} } - -func (m *FindMergeBaseRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *FindMergeBaseRequest) GetRevisions() [][]byte { - if m != nil { - return m.Revisions - } - return nil -} - -type FindMergeBaseResponse struct { - Base string `protobuf:"bytes,1,opt,name=base" json:"base,omitempty"` -} - -func (m *FindMergeBaseResponse) Reset() { *m = FindMergeBaseResponse{} } -func (m *FindMergeBaseResponse) String() string { return proto.CompactTextString(m) } -func (*FindMergeBaseResponse) ProtoMessage() {} -func (*FindMergeBaseResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{29} } - -func (m *FindMergeBaseResponse) GetBase() string { - if m != nil { - return m.Base - } - return "" -} - -type CreateForkRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - SourceRepository *Repository `protobuf:"bytes,2,opt,name=source_repository,json=sourceRepository" json:"source_repository,omitempty"` -} - -func (m *CreateForkRequest) Reset() { *m = CreateForkRequest{} } -func (m *CreateForkRequest) String() string { return proto.CompactTextString(m) } -func (*CreateForkRequest) ProtoMessage() {} -func (*CreateForkRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{30} } - -func (m *CreateForkRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *CreateForkRequest) GetSourceRepository() *Repository { - if m != nil { - return m.SourceRepository - } - return nil -} - -type CreateForkResponse struct { -} - -func (m *CreateForkResponse) Reset() { *m = CreateForkResponse{} } -func (m *CreateForkResponse) String() string { return proto.CompactTextString(m) } -func (*CreateForkResponse) ProtoMessage() {} -func (*CreateForkResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{31} } - -type IsRebaseInProgressRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - RebaseId string `protobuf:"bytes,2,opt,name=rebase_id,json=rebaseId" json:"rebase_id,omitempty"` -} - -func (m *IsRebaseInProgressRequest) Reset() { *m = IsRebaseInProgressRequest{} } -func (m *IsRebaseInProgressRequest) String() string { return proto.CompactTextString(m) } -func (*IsRebaseInProgressRequest) ProtoMessage() {} -func (*IsRebaseInProgressRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{32} } - -func (m *IsRebaseInProgressRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *IsRebaseInProgressRequest) GetRebaseId() string { - if m != nil { - return m.RebaseId - } - return "" -} - -type IsRebaseInProgressResponse struct { - InProgress bool `protobuf:"varint,1,opt,name=in_progress,json=inProgress" json:"in_progress,omitempty"` -} - -func (m *IsRebaseInProgressResponse) Reset() { *m = IsRebaseInProgressResponse{} } -func (m *IsRebaseInProgressResponse) String() string { return proto.CompactTextString(m) } -func (*IsRebaseInProgressResponse) ProtoMessage() {} -func (*IsRebaseInProgressResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{33} } - -func (m *IsRebaseInProgressResponse) GetInProgress() bool { - if m != nil { - return m.InProgress - } - return false -} - -type IsSquashInProgressRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - SquashId string `protobuf:"bytes,2,opt,name=squash_id,json=squashId" json:"squash_id,omitempty"` -} - -func (m *IsSquashInProgressRequest) Reset() { *m = IsSquashInProgressRequest{} } -func (m *IsSquashInProgressRequest) String() string { return proto.CompactTextString(m) } -func (*IsSquashInProgressRequest) ProtoMessage() {} -func (*IsSquashInProgressRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{34} } - -func (m *IsSquashInProgressRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *IsSquashInProgressRequest) GetSquashId() string { - if m != nil { - return m.SquashId - } - return "" -} - -type IsSquashInProgressResponse struct { - InProgress bool `protobuf:"varint,1,opt,name=in_progress,json=inProgress" json:"in_progress,omitempty"` -} - -func (m *IsSquashInProgressResponse) Reset() { *m = IsSquashInProgressResponse{} } -func (m *IsSquashInProgressResponse) String() string { return proto.CompactTextString(m) } -func (*IsSquashInProgressResponse) ProtoMessage() {} -func (*IsSquashInProgressResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{35} } - -func (m *IsSquashInProgressResponse) GetInProgress() bool { - if m != nil { - return m.InProgress - } - return false -} - -type CreateRepositoryFromURLRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Url string `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"` -} - -func (m *CreateRepositoryFromURLRequest) Reset() { *m = CreateRepositoryFromURLRequest{} } -func (m *CreateRepositoryFromURLRequest) String() string { return proto.CompactTextString(m) } -func (*CreateRepositoryFromURLRequest) ProtoMessage() {} -func (*CreateRepositoryFromURLRequest) Descriptor() ([]byte, []int) { - return fileDescriptor10, []int{36} -} - -func (m *CreateRepositoryFromURLRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *CreateRepositoryFromURLRequest) GetUrl() string { - if m != nil { - return m.Url - } - return "" -} - -type CreateRepositoryFromURLResponse struct { -} - -func (m *CreateRepositoryFromURLResponse) Reset() { *m = CreateRepositoryFromURLResponse{} } -func (m *CreateRepositoryFromURLResponse) String() string { return proto.CompactTextString(m) } -func (*CreateRepositoryFromURLResponse) ProtoMessage() {} -func (*CreateRepositoryFromURLResponse) Descriptor() ([]byte, []int) { - return fileDescriptor10, []int{37} -} - -type CreateBundleRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` -} - -func (m *CreateBundleRequest) Reset() { *m = CreateBundleRequest{} } -func (m *CreateBundleRequest) String() string { return proto.CompactTextString(m) } -func (*CreateBundleRequest) ProtoMessage() {} -func (*CreateBundleRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{38} } - -func (m *CreateBundleRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -type CreateBundleResponse struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (m *CreateBundleResponse) Reset() { *m = CreateBundleResponse{} } -func (m *CreateBundleResponse) String() string { return proto.CompactTextString(m) } -func (*CreateBundleResponse) ProtoMessage() {} -func (*CreateBundleResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{39} } - -func (m *CreateBundleResponse) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} - -type WriteConfigRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - FullPath string `protobuf:"bytes,2,opt,name=full_path,json=fullPath" json:"full_path,omitempty"` -} - -func (m *WriteConfigRequest) Reset() { *m = WriteConfigRequest{} } -func (m *WriteConfigRequest) String() string { return proto.CompactTextString(m) } -func (*WriteConfigRequest) ProtoMessage() {} -func (*WriteConfigRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{40} } - -func (m *WriteConfigRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *WriteConfigRequest) GetFullPath() string { - if m != nil { - return m.FullPath - } - return "" -} - -type WriteConfigResponse struct { - Error []byte `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *WriteConfigResponse) Reset() { *m = WriteConfigResponse{} } -func (m *WriteConfigResponse) String() string { return proto.CompactTextString(m) } -func (*WriteConfigResponse) ProtoMessage() {} -func (*WriteConfigResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{41} } - -func (m *WriteConfigResponse) GetError() []byte { - if m != nil { - return m.Error - } - return nil -} - -type SetConfigRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Entries []*SetConfigRequest_Entry `protobuf:"bytes,2,rep,name=entries" json:"entries,omitempty"` -} - -func (m *SetConfigRequest) Reset() { *m = SetConfigRequest{} } -func (m *SetConfigRequest) String() string { return proto.CompactTextString(m) } -func (*SetConfigRequest) ProtoMessage() {} -func (*SetConfigRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{42} } - -func (m *SetConfigRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *SetConfigRequest) GetEntries() []*SetConfigRequest_Entry { - if m != nil { - return m.Entries - } - return nil -} - -type SetConfigRequest_Entry struct { - Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` - // Types that are valid to be assigned to Value: - // *SetConfigRequest_Entry_ValueStr - // *SetConfigRequest_Entry_ValueInt32 - // *SetConfigRequest_Entry_ValueBool - Value isSetConfigRequest_Entry_Value `protobuf_oneof:"value"` -} - -func (m *SetConfigRequest_Entry) Reset() { *m = SetConfigRequest_Entry{} } -func (m *SetConfigRequest_Entry) String() string { return proto.CompactTextString(m) } -func (*SetConfigRequest_Entry) ProtoMessage() {} -func (*SetConfigRequest_Entry) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{42, 0} } - -type isSetConfigRequest_Entry_Value interface{ isSetConfigRequest_Entry_Value() } - -type SetConfigRequest_Entry_ValueStr struct { - ValueStr string `protobuf:"bytes,2,opt,name=value_str,json=valueStr,oneof"` -} -type SetConfigRequest_Entry_ValueInt32 struct { - ValueInt32 int32 `protobuf:"varint,3,opt,name=value_int32,json=valueInt32,oneof"` -} -type SetConfigRequest_Entry_ValueBool struct { - ValueBool bool `protobuf:"varint,4,opt,name=value_bool,json=valueBool,oneof"` -} - -func (*SetConfigRequest_Entry_ValueStr) isSetConfigRequest_Entry_Value() {} -func (*SetConfigRequest_Entry_ValueInt32) isSetConfigRequest_Entry_Value() {} -func (*SetConfigRequest_Entry_ValueBool) isSetConfigRequest_Entry_Value() {} - -func (m *SetConfigRequest_Entry) GetValue() isSetConfigRequest_Entry_Value { - if m != nil { - return m.Value - } - return nil -} - -func (m *SetConfigRequest_Entry) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -func (m *SetConfigRequest_Entry) GetValueStr() string { - if x, ok := m.GetValue().(*SetConfigRequest_Entry_ValueStr); ok { - return x.ValueStr - } - return "" -} - -func (m *SetConfigRequest_Entry) GetValueInt32() int32 { - if x, ok := m.GetValue().(*SetConfigRequest_Entry_ValueInt32); ok { - return x.ValueInt32 - } - return 0 -} - -func (m *SetConfigRequest_Entry) GetValueBool() bool { - if x, ok := m.GetValue().(*SetConfigRequest_Entry_ValueBool); ok { - return x.ValueBool - } - return false -} - -// XXX_OneofFuncs is for the internal use of the proto package. -func (*SetConfigRequest_Entry) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _SetConfigRequest_Entry_OneofMarshaler, _SetConfigRequest_Entry_OneofUnmarshaler, _SetConfigRequest_Entry_OneofSizer, []interface{}{ - (*SetConfigRequest_Entry_ValueStr)(nil), - (*SetConfigRequest_Entry_ValueInt32)(nil), - (*SetConfigRequest_Entry_ValueBool)(nil), - } -} - -func _SetConfigRequest_Entry_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*SetConfigRequest_Entry) - // value - switch x := m.Value.(type) { - case *SetConfigRequest_Entry_ValueStr: - b.EncodeVarint(2<<3 | proto.WireBytes) - b.EncodeStringBytes(x.ValueStr) - case *SetConfigRequest_Entry_ValueInt32: - b.EncodeVarint(3<<3 | proto.WireVarint) - b.EncodeVarint(uint64(x.ValueInt32)) - case *SetConfigRequest_Entry_ValueBool: - t := uint64(0) - if x.ValueBool { - t = 1 - } - b.EncodeVarint(4<<3 | proto.WireVarint) - b.EncodeVarint(t) - case nil: - default: - return fmt.Errorf("SetConfigRequest_Entry.Value has unexpected type %T", x) - } - return nil -} - -func _SetConfigRequest_Entry_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*SetConfigRequest_Entry) - switch tag { - case 2: // value.value_str - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeStringBytes() - m.Value = &SetConfigRequest_Entry_ValueStr{x} - return true, err - case 3: // value.value_int32 - if wire != proto.WireVarint { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeVarint() - m.Value = &SetConfigRequest_Entry_ValueInt32{int32(x)} - return true, err - case 4: // value.value_bool - if wire != proto.WireVarint { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeVarint() - m.Value = &SetConfigRequest_Entry_ValueBool{x != 0} - return true, err - default: - return false, nil - } -} - -func _SetConfigRequest_Entry_OneofSizer(msg proto.Message) (n int) { - m := msg.(*SetConfigRequest_Entry) - // value - switch x := m.Value.(type) { - case *SetConfigRequest_Entry_ValueStr: - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(len(x.ValueStr))) - n += len(x.ValueStr) - case *SetConfigRequest_Entry_ValueInt32: - n += proto.SizeVarint(3<<3 | proto.WireVarint) - n += proto.SizeVarint(uint64(x.ValueInt32)) - case *SetConfigRequest_Entry_ValueBool: - n += proto.SizeVarint(4<<3 | proto.WireVarint) - n += 1 - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - -type SetConfigResponse struct { -} - -func (m *SetConfigResponse) Reset() { *m = SetConfigResponse{} } -func (m *SetConfigResponse) String() string { return proto.CompactTextString(m) } -func (*SetConfigResponse) ProtoMessage() {} -func (*SetConfigResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{43} } - -type DeleteConfigRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Keys []string `protobuf:"bytes,2,rep,name=keys" json:"keys,omitempty"` -} - -func (m *DeleteConfigRequest) Reset() { *m = DeleteConfigRequest{} } -func (m *DeleteConfigRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteConfigRequest) ProtoMessage() {} -func (*DeleteConfigRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{44} } - -func (m *DeleteConfigRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *DeleteConfigRequest) GetKeys() []string { - if m != nil { - return m.Keys - } - return nil -} - -type DeleteConfigResponse struct { -} - -func (m *DeleteConfigResponse) Reset() { *m = DeleteConfigResponse{} } -func (m *DeleteConfigResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteConfigResponse) ProtoMessage() {} -func (*DeleteConfigResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{45} } - -type RestoreCustomHooksRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` -} - -func (m *RestoreCustomHooksRequest) Reset() { *m = RestoreCustomHooksRequest{} } -func (m *RestoreCustomHooksRequest) String() string { return proto.CompactTextString(m) } -func (*RestoreCustomHooksRequest) ProtoMessage() {} -func (*RestoreCustomHooksRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{46} } - -func (m *RestoreCustomHooksRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *RestoreCustomHooksRequest) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} - -type RestoreCustomHooksResponse struct { -} - -func (m *RestoreCustomHooksResponse) Reset() { *m = RestoreCustomHooksResponse{} } -func (m *RestoreCustomHooksResponse) String() string { return proto.CompactTextString(m) } -func (*RestoreCustomHooksResponse) ProtoMessage() {} -func (*RestoreCustomHooksResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{47} } - -type BackupCustomHooksRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` -} - -func (m *BackupCustomHooksRequest) Reset() { *m = BackupCustomHooksRequest{} } -func (m *BackupCustomHooksRequest) String() string { return proto.CompactTextString(m) } -func (*BackupCustomHooksRequest) ProtoMessage() {} -func (*BackupCustomHooksRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{48} } - -func (m *BackupCustomHooksRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -type BackupCustomHooksResponse struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (m *BackupCustomHooksResponse) Reset() { *m = BackupCustomHooksResponse{} } -func (m *BackupCustomHooksResponse) String() string { return proto.CompactTextString(m) } -func (*BackupCustomHooksResponse) ProtoMessage() {} -func (*BackupCustomHooksResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{49} } - -func (m *BackupCustomHooksResponse) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} - -type CreateRepositoryFromBundleRequest struct { - // Only available on the first message - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` -} - -func (m *CreateRepositoryFromBundleRequest) Reset() { *m = CreateRepositoryFromBundleRequest{} } -func (m *CreateRepositoryFromBundleRequest) String() string { return proto.CompactTextString(m) } -func (*CreateRepositoryFromBundleRequest) ProtoMessage() {} -func (*CreateRepositoryFromBundleRequest) Descriptor() ([]byte, []int) { - return fileDescriptor10, []int{50} -} - -func (m *CreateRepositoryFromBundleRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *CreateRepositoryFromBundleRequest) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} - -type CreateRepositoryFromBundleResponse struct { -} - -func (m *CreateRepositoryFromBundleResponse) Reset() { *m = CreateRepositoryFromBundleResponse{} } -func (m *CreateRepositoryFromBundleResponse) String() string { return proto.CompactTextString(m) } -func (*CreateRepositoryFromBundleResponse) ProtoMessage() {} -func (*CreateRepositoryFromBundleResponse) Descriptor() ([]byte, []int) { - return fileDescriptor10, []int{51} -} - -type FindLicenseRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` -} - -func (m *FindLicenseRequest) Reset() { *m = FindLicenseRequest{} } -func (m *FindLicenseRequest) String() string { return proto.CompactTextString(m) } -func (*FindLicenseRequest) ProtoMessage() {} -func (*FindLicenseRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{52} } - -func (m *FindLicenseRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -type FindLicenseResponse struct { - LicenseShortName string `protobuf:"bytes,1,opt,name=license_short_name,json=licenseShortName" json:"license_short_name,omitempty"` -} - -func (m *FindLicenseResponse) Reset() { *m = FindLicenseResponse{} } -func (m *FindLicenseResponse) String() string { return proto.CompactTextString(m) } -func (*FindLicenseResponse) ProtoMessage() {} -func (*FindLicenseResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{53} } - -func (m *FindLicenseResponse) GetLicenseShortName() string { - if m != nil { - return m.LicenseShortName - } - return "" -} - -type GetInfoAttributesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` -} - -func (m *GetInfoAttributesRequest) Reset() { *m = GetInfoAttributesRequest{} } -func (m *GetInfoAttributesRequest) String() string { return proto.CompactTextString(m) } -func (*GetInfoAttributesRequest) ProtoMessage() {} -func (*GetInfoAttributesRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{54} } - -func (m *GetInfoAttributesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -type GetInfoAttributesResponse struct { - Attributes []byte `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` -} - -func (m *GetInfoAttributesResponse) Reset() { *m = GetInfoAttributesResponse{} } -func (m *GetInfoAttributesResponse) String() string { return proto.CompactTextString(m) } -func (*GetInfoAttributesResponse) ProtoMessage() {} -func (*GetInfoAttributesResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{55} } - -func (m *GetInfoAttributesResponse) GetAttributes() []byte { - if m != nil { - return m.Attributes - } - return nil -} - -type CalculateChecksumRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` -} - -func (m *CalculateChecksumRequest) Reset() { *m = CalculateChecksumRequest{} } -func (m *CalculateChecksumRequest) String() string { return proto.CompactTextString(m) } -func (*CalculateChecksumRequest) ProtoMessage() {} -func (*CalculateChecksumRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{56} } - -func (m *CalculateChecksumRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -type CalculateChecksumResponse struct { - Checksum string `protobuf:"bytes,1,opt,name=checksum" json:"checksum,omitempty"` -} - -func (m *CalculateChecksumResponse) Reset() { *m = CalculateChecksumResponse{} } -func (m *CalculateChecksumResponse) String() string { return proto.CompactTextString(m) } -func (*CalculateChecksumResponse) ProtoMessage() {} -func (*CalculateChecksumResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{57} } - -func (m *CalculateChecksumResponse) GetChecksum() string { - if m != nil { - return m.Checksum - } - return "" -} - -type GetSnapshotRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` -} - -func (m *GetSnapshotRequest) Reset() { *m = GetSnapshotRequest{} } -func (m *GetSnapshotRequest) String() string { return proto.CompactTextString(m) } -func (*GetSnapshotRequest) ProtoMessage() {} -func (*GetSnapshotRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{58} } - -func (m *GetSnapshotRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -type GetSnapshotResponse struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (m *GetSnapshotResponse) Reset() { *m = GetSnapshotResponse{} } -func (m *GetSnapshotResponse) String() string { return proto.CompactTextString(m) } -func (*GetSnapshotResponse) ProtoMessage() {} -func (*GetSnapshotResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{59} } - -func (m *GetSnapshotResponse) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} - -type CreateRepositoryFromSnapshotRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - HttpUrl string `protobuf:"bytes,2,opt,name=http_url,json=httpUrl" json:"http_url,omitempty"` - HttpAuth string `protobuf:"bytes,3,opt,name=http_auth,json=httpAuth" json:"http_auth,omitempty"` -} - -func (m *CreateRepositoryFromSnapshotRequest) Reset() { *m = CreateRepositoryFromSnapshotRequest{} } -func (m *CreateRepositoryFromSnapshotRequest) String() string { return proto.CompactTextString(m) } -func (*CreateRepositoryFromSnapshotRequest) ProtoMessage() {} -func (*CreateRepositoryFromSnapshotRequest) Descriptor() ([]byte, []int) { - return fileDescriptor10, []int{60} -} - -func (m *CreateRepositoryFromSnapshotRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *CreateRepositoryFromSnapshotRequest) GetHttpUrl() string { - if m != nil { - return m.HttpUrl - } - return "" -} - -func (m *CreateRepositoryFromSnapshotRequest) GetHttpAuth() string { - if m != nil { - return m.HttpAuth - } - return "" -} - -type CreateRepositoryFromSnapshotResponse struct { -} - -func (m *CreateRepositoryFromSnapshotResponse) Reset() { *m = CreateRepositoryFromSnapshotResponse{} } -func (m *CreateRepositoryFromSnapshotResponse) String() string { return proto.CompactTextString(m) } -func (*CreateRepositoryFromSnapshotResponse) ProtoMessage() {} -func (*CreateRepositoryFromSnapshotResponse) Descriptor() ([]byte, []int) { - return fileDescriptor10, []int{61} -} - -type GetRawChangesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - FromRevision string `protobuf:"bytes,2,opt,name=from_revision,json=fromRevision" json:"from_revision,omitempty"` - ToRevision string `protobuf:"bytes,3,opt,name=to_revision,json=toRevision" json:"to_revision,omitempty"` -} - -func (m *GetRawChangesRequest) Reset() { *m = GetRawChangesRequest{} } -func (m *GetRawChangesRequest) String() string { return proto.CompactTextString(m) } -func (*GetRawChangesRequest) ProtoMessage() {} -func (*GetRawChangesRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{62} } - -func (m *GetRawChangesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *GetRawChangesRequest) GetFromRevision() string { - if m != nil { - return m.FromRevision - } - return "" -} - -func (m *GetRawChangesRequest) GetToRevision() string { - if m != nil { - return m.ToRevision - } - return "" -} - -type GetRawChangesResponse struct { - RawChanges []*GetRawChangesResponse_RawChange `protobuf:"bytes,1,rep,name=raw_changes,json=rawChanges" json:"raw_changes,omitempty"` -} - -func (m *GetRawChangesResponse) Reset() { *m = GetRawChangesResponse{} } -func (m *GetRawChangesResponse) String() string { return proto.CompactTextString(m) } -func (*GetRawChangesResponse) ProtoMessage() {} -func (*GetRawChangesResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{63} } - -func (m *GetRawChangesResponse) GetRawChanges() []*GetRawChangesResponse_RawChange { - if m != nil { - return m.RawChanges - } - return nil -} - -type GetRawChangesResponse_RawChange struct { - BlobId string `protobuf:"bytes,1,opt,name=blob_id,json=blobId" json:"blob_id,omitempty"` - Size int64 `protobuf:"varint,2,opt,name=size" json:"size,omitempty"` - NewPath string `protobuf:"bytes,3,opt,name=new_path,json=newPath" json:"new_path,omitempty"` - OldPath string `protobuf:"bytes,4,opt,name=old_path,json=oldPath" json:"old_path,omitempty"` - Operation GetRawChangesResponse_RawChange_Operation `protobuf:"varint,5,opt,name=operation,enum=gitaly.GetRawChangesResponse_RawChange_Operation" json:"operation,omitempty"` - RawOperation string `protobuf:"bytes,6,opt,name=raw_operation,json=rawOperation" json:"raw_operation,omitempty"` -} - -func (m *GetRawChangesResponse_RawChange) Reset() { *m = GetRawChangesResponse_RawChange{} } -func (m *GetRawChangesResponse_RawChange) String() string { return proto.CompactTextString(m) } -func (*GetRawChangesResponse_RawChange) ProtoMessage() {} -func (*GetRawChangesResponse_RawChange) Descriptor() ([]byte, []int) { - return fileDescriptor10, []int{63, 0} -} - -func (m *GetRawChangesResponse_RawChange) GetBlobId() string { - if m != nil { - return m.BlobId - } - return "" -} - -func (m *GetRawChangesResponse_RawChange) GetSize() int64 { - if m != nil { - return m.Size - } - return 0 -} - -func (m *GetRawChangesResponse_RawChange) GetNewPath() string { - if m != nil { - return m.NewPath - } - return "" -} - -func (m *GetRawChangesResponse_RawChange) GetOldPath() string { - if m != nil { - return m.OldPath - } - return "" -} - -func (m *GetRawChangesResponse_RawChange) GetOperation() GetRawChangesResponse_RawChange_Operation { - if m != nil { - return m.Operation - } - return GetRawChangesResponse_RawChange_UNKNOWN -} - -func (m *GetRawChangesResponse_RawChange) GetRawOperation() string { - if m != nil { - return m.RawOperation - } - return "" -} - -type SearchFilesByNameRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Query string `protobuf:"bytes,2,opt,name=query" json:"query,omitempty"` - Ref []byte `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"` -} - -func (m *SearchFilesByNameRequest) Reset() { *m = SearchFilesByNameRequest{} } -func (m *SearchFilesByNameRequest) String() string { return proto.CompactTextString(m) } -func (*SearchFilesByNameRequest) ProtoMessage() {} -func (*SearchFilesByNameRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{64} } - -func (m *SearchFilesByNameRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *SearchFilesByNameRequest) GetQuery() string { - if m != nil { - return m.Query - } - return "" -} - -func (m *SearchFilesByNameRequest) GetRef() []byte { - if m != nil { - return m.Ref - } - return nil -} - -type SearchFilesByNameResponse struct { - Files [][]byte `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"` -} - -func (m *SearchFilesByNameResponse) Reset() { *m = SearchFilesByNameResponse{} } -func (m *SearchFilesByNameResponse) String() string { return proto.CompactTextString(m) } -func (*SearchFilesByNameResponse) ProtoMessage() {} -func (*SearchFilesByNameResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{65} } - -func (m *SearchFilesByNameResponse) GetFiles() [][]byte { - if m != nil { - return m.Files - } - return nil -} - -type SearchFilesByContentRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Query string `protobuf:"bytes,2,opt,name=query" json:"query,omitempty"` - Ref []byte `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"` -} - -func (m *SearchFilesByContentRequest) Reset() { *m = SearchFilesByContentRequest{} } -func (m *SearchFilesByContentRequest) String() string { return proto.CompactTextString(m) } -func (*SearchFilesByContentRequest) ProtoMessage() {} -func (*SearchFilesByContentRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{66} } - -func (m *SearchFilesByContentRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *SearchFilesByContentRequest) GetQuery() string { - if m != nil { - return m.Query - } - return "" -} - -func (m *SearchFilesByContentRequest) GetRef() []byte { - if m != nil { - return m.Ref - } - return nil -} - -type SearchFilesByContentResponse struct { - Matches [][]byte `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"` -} - -func (m *SearchFilesByContentResponse) Reset() { *m = SearchFilesByContentResponse{} } -func (m *SearchFilesByContentResponse) String() string { return proto.CompactTextString(m) } -func (*SearchFilesByContentResponse) ProtoMessage() {} -func (*SearchFilesByContentResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{67} } - -func (m *SearchFilesByContentResponse) GetMatches() [][]byte { - if m != nil { - return m.Matches - } - return nil -} - -func init() { - proto.RegisterType((*RepositoryExistsRequest)(nil), "gitaly.RepositoryExistsRequest") - proto.RegisterType((*RepositoryExistsResponse)(nil), "gitaly.RepositoryExistsResponse") - proto.RegisterType((*RepackIncrementalRequest)(nil), "gitaly.RepackIncrementalRequest") - proto.RegisterType((*RepackIncrementalResponse)(nil), "gitaly.RepackIncrementalResponse") - proto.RegisterType((*RepackFullRequest)(nil), "gitaly.RepackFullRequest") - proto.RegisterType((*RepackFullResponse)(nil), "gitaly.RepackFullResponse") - proto.RegisterType((*GarbageCollectRequest)(nil), "gitaly.GarbageCollectRequest") - proto.RegisterType((*GarbageCollectResponse)(nil), "gitaly.GarbageCollectResponse") - proto.RegisterType((*CleanupRequest)(nil), "gitaly.CleanupRequest") - proto.RegisterType((*CleanupResponse)(nil), "gitaly.CleanupResponse") - proto.RegisterType((*RepositorySizeRequest)(nil), "gitaly.RepositorySizeRequest") - proto.RegisterType((*RepositorySizeResponse)(nil), "gitaly.RepositorySizeResponse") - proto.RegisterType((*ApplyGitattributesRequest)(nil), "gitaly.ApplyGitattributesRequest") - proto.RegisterType((*ApplyGitattributesResponse)(nil), "gitaly.ApplyGitattributesResponse") - proto.RegisterType((*FetchRemoteRequest)(nil), "gitaly.FetchRemoteRequest") - proto.RegisterType((*FetchRemoteResponse)(nil), "gitaly.FetchRemoteResponse") - proto.RegisterType((*CreateRepositoryRequest)(nil), "gitaly.CreateRepositoryRequest") - proto.RegisterType((*CreateRepositoryResponse)(nil), "gitaly.CreateRepositoryResponse") - proto.RegisterType((*GetArchiveRequest)(nil), "gitaly.GetArchiveRequest") - proto.RegisterType((*GetArchiveResponse)(nil), "gitaly.GetArchiveResponse") - proto.RegisterType((*HasLocalBranchesRequest)(nil), "gitaly.HasLocalBranchesRequest") - proto.RegisterType((*HasLocalBranchesResponse)(nil), "gitaly.HasLocalBranchesResponse") - proto.RegisterType((*FetchSourceBranchRequest)(nil), "gitaly.FetchSourceBranchRequest") - proto.RegisterType((*FetchSourceBranchResponse)(nil), "gitaly.FetchSourceBranchResponse") - proto.RegisterType((*FsckRequest)(nil), "gitaly.FsckRequest") - proto.RegisterType((*FsckResponse)(nil), "gitaly.FsckResponse") - proto.RegisterType((*WriteRefRequest)(nil), "gitaly.WriteRefRequest") - proto.RegisterType((*WriteRefResponse)(nil), "gitaly.WriteRefResponse") - proto.RegisterType((*FindMergeBaseRequest)(nil), "gitaly.FindMergeBaseRequest") - proto.RegisterType((*FindMergeBaseResponse)(nil), "gitaly.FindMergeBaseResponse") - proto.RegisterType((*CreateForkRequest)(nil), "gitaly.CreateForkRequest") - proto.RegisterType((*CreateForkResponse)(nil), "gitaly.CreateForkResponse") - proto.RegisterType((*IsRebaseInProgressRequest)(nil), "gitaly.IsRebaseInProgressRequest") - proto.RegisterType((*IsRebaseInProgressResponse)(nil), "gitaly.IsRebaseInProgressResponse") - proto.RegisterType((*IsSquashInProgressRequest)(nil), "gitaly.IsSquashInProgressRequest") - proto.RegisterType((*IsSquashInProgressResponse)(nil), "gitaly.IsSquashInProgressResponse") - proto.RegisterType((*CreateRepositoryFromURLRequest)(nil), "gitaly.CreateRepositoryFromURLRequest") - proto.RegisterType((*CreateRepositoryFromURLResponse)(nil), "gitaly.CreateRepositoryFromURLResponse") - proto.RegisterType((*CreateBundleRequest)(nil), "gitaly.CreateBundleRequest") - proto.RegisterType((*CreateBundleResponse)(nil), "gitaly.CreateBundleResponse") - proto.RegisterType((*WriteConfigRequest)(nil), "gitaly.WriteConfigRequest") - proto.RegisterType((*WriteConfigResponse)(nil), "gitaly.WriteConfigResponse") - proto.RegisterType((*SetConfigRequest)(nil), "gitaly.SetConfigRequest") - proto.RegisterType((*SetConfigRequest_Entry)(nil), "gitaly.SetConfigRequest.Entry") - proto.RegisterType((*SetConfigResponse)(nil), "gitaly.SetConfigResponse") - proto.RegisterType((*DeleteConfigRequest)(nil), "gitaly.DeleteConfigRequest") - proto.RegisterType((*DeleteConfigResponse)(nil), "gitaly.DeleteConfigResponse") - proto.RegisterType((*RestoreCustomHooksRequest)(nil), "gitaly.RestoreCustomHooksRequest") - proto.RegisterType((*RestoreCustomHooksResponse)(nil), "gitaly.RestoreCustomHooksResponse") - proto.RegisterType((*BackupCustomHooksRequest)(nil), "gitaly.BackupCustomHooksRequest") - proto.RegisterType((*BackupCustomHooksResponse)(nil), "gitaly.BackupCustomHooksResponse") - proto.RegisterType((*CreateRepositoryFromBundleRequest)(nil), "gitaly.CreateRepositoryFromBundleRequest") - proto.RegisterType((*CreateRepositoryFromBundleResponse)(nil), "gitaly.CreateRepositoryFromBundleResponse") - proto.RegisterType((*FindLicenseRequest)(nil), "gitaly.FindLicenseRequest") - proto.RegisterType((*FindLicenseResponse)(nil), "gitaly.FindLicenseResponse") - proto.RegisterType((*GetInfoAttributesRequest)(nil), "gitaly.GetInfoAttributesRequest") - proto.RegisterType((*GetInfoAttributesResponse)(nil), "gitaly.GetInfoAttributesResponse") - proto.RegisterType((*CalculateChecksumRequest)(nil), "gitaly.CalculateChecksumRequest") - proto.RegisterType((*CalculateChecksumResponse)(nil), "gitaly.CalculateChecksumResponse") - proto.RegisterType((*GetSnapshotRequest)(nil), "gitaly.GetSnapshotRequest") - proto.RegisterType((*GetSnapshotResponse)(nil), "gitaly.GetSnapshotResponse") - proto.RegisterType((*CreateRepositoryFromSnapshotRequest)(nil), "gitaly.CreateRepositoryFromSnapshotRequest") - proto.RegisterType((*CreateRepositoryFromSnapshotResponse)(nil), "gitaly.CreateRepositoryFromSnapshotResponse") - proto.RegisterType((*GetRawChangesRequest)(nil), "gitaly.GetRawChangesRequest") - proto.RegisterType((*GetRawChangesResponse)(nil), "gitaly.GetRawChangesResponse") - proto.RegisterType((*GetRawChangesResponse_RawChange)(nil), "gitaly.GetRawChangesResponse.RawChange") - proto.RegisterType((*SearchFilesByNameRequest)(nil), "gitaly.SearchFilesByNameRequest") - proto.RegisterType((*SearchFilesByNameResponse)(nil), "gitaly.SearchFilesByNameResponse") - proto.RegisterType((*SearchFilesByContentRequest)(nil), "gitaly.SearchFilesByContentRequest") - proto.RegisterType((*SearchFilesByContentResponse)(nil), "gitaly.SearchFilesByContentResponse") - proto.RegisterEnum("gitaly.GetArchiveRequest_Format", GetArchiveRequest_Format_name, GetArchiveRequest_Format_value) - proto.RegisterEnum("gitaly.GetRawChangesResponse_RawChange_Operation", GetRawChangesResponse_RawChange_Operation_name, GetRawChangesResponse_RawChange_Operation_value) -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for RepositoryService service - -type RepositoryServiceClient interface { - RepositoryExists(ctx context.Context, in *RepositoryExistsRequest, opts ...grpc.CallOption) (*RepositoryExistsResponse, error) - RepackIncremental(ctx context.Context, in *RepackIncrementalRequest, opts ...grpc.CallOption) (*RepackIncrementalResponse, error) - RepackFull(ctx context.Context, in *RepackFullRequest, opts ...grpc.CallOption) (*RepackFullResponse, error) - GarbageCollect(ctx context.Context, in *GarbageCollectRequest, opts ...grpc.CallOption) (*GarbageCollectResponse, error) - RepositorySize(ctx context.Context, in *RepositorySizeRequest, opts ...grpc.CallOption) (*RepositorySizeResponse, error) - ApplyGitattributes(ctx context.Context, in *ApplyGitattributesRequest, opts ...grpc.CallOption) (*ApplyGitattributesResponse, error) - FetchRemote(ctx context.Context, in *FetchRemoteRequest, opts ...grpc.CallOption) (*FetchRemoteResponse, error) - CreateRepository(ctx context.Context, in *CreateRepositoryRequest, opts ...grpc.CallOption) (*CreateRepositoryResponse, error) - GetArchive(ctx context.Context, in *GetArchiveRequest, opts ...grpc.CallOption) (RepositoryService_GetArchiveClient, error) - HasLocalBranches(ctx context.Context, in *HasLocalBranchesRequest, opts ...grpc.CallOption) (*HasLocalBranchesResponse, error) - FetchSourceBranch(ctx context.Context, in *FetchSourceBranchRequest, opts ...grpc.CallOption) (*FetchSourceBranchResponse, error) - Fsck(ctx context.Context, in *FsckRequest, opts ...grpc.CallOption) (*FsckResponse, error) - WriteRef(ctx context.Context, in *WriteRefRequest, opts ...grpc.CallOption) (*WriteRefResponse, error) - FindMergeBase(ctx context.Context, in *FindMergeBaseRequest, opts ...grpc.CallOption) (*FindMergeBaseResponse, error) - CreateFork(ctx context.Context, in *CreateForkRequest, opts ...grpc.CallOption) (*CreateForkResponse, error) - IsRebaseInProgress(ctx context.Context, in *IsRebaseInProgressRequest, opts ...grpc.CallOption) (*IsRebaseInProgressResponse, error) - IsSquashInProgress(ctx context.Context, in *IsSquashInProgressRequest, opts ...grpc.CallOption) (*IsSquashInProgressResponse, error) - CreateRepositoryFromURL(ctx context.Context, in *CreateRepositoryFromURLRequest, opts ...grpc.CallOption) (*CreateRepositoryFromURLResponse, error) - CreateBundle(ctx context.Context, in *CreateBundleRequest, opts ...grpc.CallOption) (RepositoryService_CreateBundleClient, error) - CreateRepositoryFromBundle(ctx context.Context, opts ...grpc.CallOption) (RepositoryService_CreateRepositoryFromBundleClient, error) - WriteConfig(ctx context.Context, in *WriteConfigRequest, opts ...grpc.CallOption) (*WriteConfigResponse, error) - SetConfig(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*SetConfigResponse, error) - DeleteConfig(ctx context.Context, in *DeleteConfigRequest, opts ...grpc.CallOption) (*DeleteConfigResponse, error) - FindLicense(ctx context.Context, in *FindLicenseRequest, opts ...grpc.CallOption) (*FindLicenseResponse, error) - GetInfoAttributes(ctx context.Context, in *GetInfoAttributesRequest, opts ...grpc.CallOption) (RepositoryService_GetInfoAttributesClient, error) - CalculateChecksum(ctx context.Context, in *CalculateChecksumRequest, opts ...grpc.CallOption) (*CalculateChecksumResponse, error) - Cleanup(ctx context.Context, in *CleanupRequest, opts ...grpc.CallOption) (*CleanupResponse, error) - GetSnapshot(ctx context.Context, in *GetSnapshotRequest, opts ...grpc.CallOption) (RepositoryService_GetSnapshotClient, error) - CreateRepositoryFromSnapshot(ctx context.Context, in *CreateRepositoryFromSnapshotRequest, opts ...grpc.CallOption) (*CreateRepositoryFromSnapshotResponse, error) - GetRawChanges(ctx context.Context, in *GetRawChangesRequest, opts ...grpc.CallOption) (RepositoryService_GetRawChangesClient, error) - SearchFilesByContent(ctx context.Context, in *SearchFilesByContentRequest, opts ...grpc.CallOption) (RepositoryService_SearchFilesByContentClient, error) - SearchFilesByName(ctx context.Context, in *SearchFilesByNameRequest, opts ...grpc.CallOption) (RepositoryService_SearchFilesByNameClient, error) - RestoreCustomHooks(ctx context.Context, opts ...grpc.CallOption) (RepositoryService_RestoreCustomHooksClient, error) - BackupCustomHooks(ctx context.Context, in *BackupCustomHooksRequest, opts ...grpc.CallOption) (RepositoryService_BackupCustomHooksClient, error) -} - -type repositoryServiceClient struct { - cc *grpc.ClientConn -} - -func NewRepositoryServiceClient(cc *grpc.ClientConn) RepositoryServiceClient { - return &repositoryServiceClient{cc} -} - -func (c *repositoryServiceClient) RepositoryExists(ctx context.Context, in *RepositoryExistsRequest, opts ...grpc.CallOption) (*RepositoryExistsResponse, error) { - out := new(RepositoryExistsResponse) - err := grpc.Invoke(ctx, "/gitaly.RepositoryService/RepositoryExists", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *repositoryServiceClient) RepackIncremental(ctx context.Context, in *RepackIncrementalRequest, opts ...grpc.CallOption) (*RepackIncrementalResponse, error) { - out := new(RepackIncrementalResponse) - err := grpc.Invoke(ctx, "/gitaly.RepositoryService/RepackIncremental", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *repositoryServiceClient) RepackFull(ctx context.Context, in *RepackFullRequest, opts ...grpc.CallOption) (*RepackFullResponse, error) { - out := new(RepackFullResponse) - err := grpc.Invoke(ctx, "/gitaly.RepositoryService/RepackFull", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *repositoryServiceClient) GarbageCollect(ctx context.Context, in *GarbageCollectRequest, opts ...grpc.CallOption) (*GarbageCollectResponse, error) { - out := new(GarbageCollectResponse) - err := grpc.Invoke(ctx, "/gitaly.RepositoryService/GarbageCollect", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *repositoryServiceClient) RepositorySize(ctx context.Context, in *RepositorySizeRequest, opts ...grpc.CallOption) (*RepositorySizeResponse, error) { - out := new(RepositorySizeResponse) - err := grpc.Invoke(ctx, "/gitaly.RepositoryService/RepositorySize", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *repositoryServiceClient) ApplyGitattributes(ctx context.Context, in *ApplyGitattributesRequest, opts ...grpc.CallOption) (*ApplyGitattributesResponse, error) { - out := new(ApplyGitattributesResponse) - err := grpc.Invoke(ctx, "/gitaly.RepositoryService/ApplyGitattributes", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *repositoryServiceClient) FetchRemote(ctx context.Context, in *FetchRemoteRequest, opts ...grpc.CallOption) (*FetchRemoteResponse, error) { - out := new(FetchRemoteResponse) - err := grpc.Invoke(ctx, "/gitaly.RepositoryService/FetchRemote", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *repositoryServiceClient) CreateRepository(ctx context.Context, in *CreateRepositoryRequest, opts ...grpc.CallOption) (*CreateRepositoryResponse, error) { - out := new(CreateRepositoryResponse) - err := grpc.Invoke(ctx, "/gitaly.RepositoryService/CreateRepository", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *repositoryServiceClient) GetArchive(ctx context.Context, in *GetArchiveRequest, opts ...grpc.CallOption) (RepositoryService_GetArchiveClient, error) { - stream, err := grpc.NewClientStream(ctx, &_RepositoryService_serviceDesc.Streams[0], c.cc, "/gitaly.RepositoryService/GetArchive", opts...) - if err != nil { - return nil, err - } - x := &repositoryServiceGetArchiveClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RepositoryService_GetArchiveClient interface { - Recv() (*GetArchiveResponse, error) - grpc.ClientStream -} - -type repositoryServiceGetArchiveClient struct { - grpc.ClientStream -} - -func (x *repositoryServiceGetArchiveClient) Recv() (*GetArchiveResponse, error) { - m := new(GetArchiveResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *repositoryServiceClient) HasLocalBranches(ctx context.Context, in *HasLocalBranchesRequest, opts ...grpc.CallOption) (*HasLocalBranchesResponse, error) { - out := new(HasLocalBranchesResponse) - err := grpc.Invoke(ctx, "/gitaly.RepositoryService/HasLocalBranches", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *repositoryServiceClient) FetchSourceBranch(ctx context.Context, in *FetchSourceBranchRequest, opts ...grpc.CallOption) (*FetchSourceBranchResponse, error) { - out := new(FetchSourceBranchResponse) - err := grpc.Invoke(ctx, "/gitaly.RepositoryService/FetchSourceBranch", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *repositoryServiceClient) Fsck(ctx context.Context, in *FsckRequest, opts ...grpc.CallOption) (*FsckResponse, error) { - out := new(FsckResponse) - err := grpc.Invoke(ctx, "/gitaly.RepositoryService/Fsck", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *repositoryServiceClient) WriteRef(ctx context.Context, in *WriteRefRequest, opts ...grpc.CallOption) (*WriteRefResponse, error) { - out := new(WriteRefResponse) - err := grpc.Invoke(ctx, "/gitaly.RepositoryService/WriteRef", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *repositoryServiceClient) FindMergeBase(ctx context.Context, in *FindMergeBaseRequest, opts ...grpc.CallOption) (*FindMergeBaseResponse, error) { - out := new(FindMergeBaseResponse) - err := grpc.Invoke(ctx, "/gitaly.RepositoryService/FindMergeBase", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *repositoryServiceClient) CreateFork(ctx context.Context, in *CreateForkRequest, opts ...grpc.CallOption) (*CreateForkResponse, error) { - out := new(CreateForkResponse) - err := grpc.Invoke(ctx, "/gitaly.RepositoryService/CreateFork", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *repositoryServiceClient) IsRebaseInProgress(ctx context.Context, in *IsRebaseInProgressRequest, opts ...grpc.CallOption) (*IsRebaseInProgressResponse, error) { - out := new(IsRebaseInProgressResponse) - err := grpc.Invoke(ctx, "/gitaly.RepositoryService/IsRebaseInProgress", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *repositoryServiceClient) IsSquashInProgress(ctx context.Context, in *IsSquashInProgressRequest, opts ...grpc.CallOption) (*IsSquashInProgressResponse, error) { - out := new(IsSquashInProgressResponse) - err := grpc.Invoke(ctx, "/gitaly.RepositoryService/IsSquashInProgress", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *repositoryServiceClient) CreateRepositoryFromURL(ctx context.Context, in *CreateRepositoryFromURLRequest, opts ...grpc.CallOption) (*CreateRepositoryFromURLResponse, error) { - out := new(CreateRepositoryFromURLResponse) - err := grpc.Invoke(ctx, "/gitaly.RepositoryService/CreateRepositoryFromURL", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *repositoryServiceClient) CreateBundle(ctx context.Context, in *CreateBundleRequest, opts ...grpc.CallOption) (RepositoryService_CreateBundleClient, error) { - stream, err := grpc.NewClientStream(ctx, &_RepositoryService_serviceDesc.Streams[1], c.cc, "/gitaly.RepositoryService/CreateBundle", opts...) - if err != nil { - return nil, err - } - x := &repositoryServiceCreateBundleClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RepositoryService_CreateBundleClient interface { - Recv() (*CreateBundleResponse, error) - grpc.ClientStream -} - -type repositoryServiceCreateBundleClient struct { - grpc.ClientStream -} - -func (x *repositoryServiceCreateBundleClient) Recv() (*CreateBundleResponse, error) { - m := new(CreateBundleResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *repositoryServiceClient) CreateRepositoryFromBundle(ctx context.Context, opts ...grpc.CallOption) (RepositoryService_CreateRepositoryFromBundleClient, error) { - stream, err := grpc.NewClientStream(ctx, &_RepositoryService_serviceDesc.Streams[2], c.cc, "/gitaly.RepositoryService/CreateRepositoryFromBundle", opts...) - if err != nil { - return nil, err - } - x := &repositoryServiceCreateRepositoryFromBundleClient{stream} - return x, nil -} - -type RepositoryService_CreateRepositoryFromBundleClient interface { - Send(*CreateRepositoryFromBundleRequest) error - CloseAndRecv() (*CreateRepositoryFromBundleResponse, error) - grpc.ClientStream -} - -type repositoryServiceCreateRepositoryFromBundleClient struct { - grpc.ClientStream -} - -func (x *repositoryServiceCreateRepositoryFromBundleClient) Send(m *CreateRepositoryFromBundleRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *repositoryServiceCreateRepositoryFromBundleClient) CloseAndRecv() (*CreateRepositoryFromBundleResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(CreateRepositoryFromBundleResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *repositoryServiceClient) WriteConfig(ctx context.Context, in *WriteConfigRequest, opts ...grpc.CallOption) (*WriteConfigResponse, error) { - out := new(WriteConfigResponse) - err := grpc.Invoke(ctx, "/gitaly.RepositoryService/WriteConfig", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *repositoryServiceClient) SetConfig(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*SetConfigResponse, error) { - out := new(SetConfigResponse) - err := grpc.Invoke(ctx, "/gitaly.RepositoryService/SetConfig", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *repositoryServiceClient) DeleteConfig(ctx context.Context, in *DeleteConfigRequest, opts ...grpc.CallOption) (*DeleteConfigResponse, error) { - out := new(DeleteConfigResponse) - err := grpc.Invoke(ctx, "/gitaly.RepositoryService/DeleteConfig", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *repositoryServiceClient) FindLicense(ctx context.Context, in *FindLicenseRequest, opts ...grpc.CallOption) (*FindLicenseResponse, error) { - out := new(FindLicenseResponse) - err := grpc.Invoke(ctx, "/gitaly.RepositoryService/FindLicense", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *repositoryServiceClient) GetInfoAttributes(ctx context.Context, in *GetInfoAttributesRequest, opts ...grpc.CallOption) (RepositoryService_GetInfoAttributesClient, error) { - stream, err := grpc.NewClientStream(ctx, &_RepositoryService_serviceDesc.Streams[3], c.cc, "/gitaly.RepositoryService/GetInfoAttributes", opts...) - if err != nil { - return nil, err - } - x := &repositoryServiceGetInfoAttributesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RepositoryService_GetInfoAttributesClient interface { - Recv() (*GetInfoAttributesResponse, error) - grpc.ClientStream -} - -type repositoryServiceGetInfoAttributesClient struct { - grpc.ClientStream -} - -func (x *repositoryServiceGetInfoAttributesClient) Recv() (*GetInfoAttributesResponse, error) { - m := new(GetInfoAttributesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *repositoryServiceClient) CalculateChecksum(ctx context.Context, in *CalculateChecksumRequest, opts ...grpc.CallOption) (*CalculateChecksumResponse, error) { - out := new(CalculateChecksumResponse) - err := grpc.Invoke(ctx, "/gitaly.RepositoryService/CalculateChecksum", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *repositoryServiceClient) Cleanup(ctx context.Context, in *CleanupRequest, opts ...grpc.CallOption) (*CleanupResponse, error) { - out := new(CleanupResponse) - err := grpc.Invoke(ctx, "/gitaly.RepositoryService/Cleanup", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *repositoryServiceClient) GetSnapshot(ctx context.Context, in *GetSnapshotRequest, opts ...grpc.CallOption) (RepositoryService_GetSnapshotClient, error) { - stream, err := grpc.NewClientStream(ctx, &_RepositoryService_serviceDesc.Streams[4], c.cc, "/gitaly.RepositoryService/GetSnapshot", opts...) - if err != nil { - return nil, err - } - x := &repositoryServiceGetSnapshotClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RepositoryService_GetSnapshotClient interface { - Recv() (*GetSnapshotResponse, error) - grpc.ClientStream -} - -type repositoryServiceGetSnapshotClient struct { - grpc.ClientStream -} - -func (x *repositoryServiceGetSnapshotClient) Recv() (*GetSnapshotResponse, error) { - m := new(GetSnapshotResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *repositoryServiceClient) CreateRepositoryFromSnapshot(ctx context.Context, in *CreateRepositoryFromSnapshotRequest, opts ...grpc.CallOption) (*CreateRepositoryFromSnapshotResponse, error) { - out := new(CreateRepositoryFromSnapshotResponse) - err := grpc.Invoke(ctx, "/gitaly.RepositoryService/CreateRepositoryFromSnapshot", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *repositoryServiceClient) GetRawChanges(ctx context.Context, in *GetRawChangesRequest, opts ...grpc.CallOption) (RepositoryService_GetRawChangesClient, error) { - stream, err := grpc.NewClientStream(ctx, &_RepositoryService_serviceDesc.Streams[5], c.cc, "/gitaly.RepositoryService/GetRawChanges", opts...) - if err != nil { - return nil, err - } - x := &repositoryServiceGetRawChangesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RepositoryService_GetRawChangesClient interface { - Recv() (*GetRawChangesResponse, error) - grpc.ClientStream -} - -type repositoryServiceGetRawChangesClient struct { - grpc.ClientStream -} - -func (x *repositoryServiceGetRawChangesClient) Recv() (*GetRawChangesResponse, error) { - m := new(GetRawChangesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *repositoryServiceClient) SearchFilesByContent(ctx context.Context, in *SearchFilesByContentRequest, opts ...grpc.CallOption) (RepositoryService_SearchFilesByContentClient, error) { - stream, err := grpc.NewClientStream(ctx, &_RepositoryService_serviceDesc.Streams[6], c.cc, "/gitaly.RepositoryService/SearchFilesByContent", opts...) - if err != nil { - return nil, err - } - x := &repositoryServiceSearchFilesByContentClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RepositoryService_SearchFilesByContentClient interface { - Recv() (*SearchFilesByContentResponse, error) - grpc.ClientStream -} - -type repositoryServiceSearchFilesByContentClient struct { - grpc.ClientStream -} - -func (x *repositoryServiceSearchFilesByContentClient) Recv() (*SearchFilesByContentResponse, error) { - m := new(SearchFilesByContentResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *repositoryServiceClient) SearchFilesByName(ctx context.Context, in *SearchFilesByNameRequest, opts ...grpc.CallOption) (RepositoryService_SearchFilesByNameClient, error) { - stream, err := grpc.NewClientStream(ctx, &_RepositoryService_serviceDesc.Streams[7], c.cc, "/gitaly.RepositoryService/SearchFilesByName", opts...) - if err != nil { - return nil, err - } - x := &repositoryServiceSearchFilesByNameClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RepositoryService_SearchFilesByNameClient interface { - Recv() (*SearchFilesByNameResponse, error) - grpc.ClientStream -} - -type repositoryServiceSearchFilesByNameClient struct { - grpc.ClientStream -} - -func (x *repositoryServiceSearchFilesByNameClient) Recv() (*SearchFilesByNameResponse, error) { - m := new(SearchFilesByNameResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *repositoryServiceClient) RestoreCustomHooks(ctx context.Context, opts ...grpc.CallOption) (RepositoryService_RestoreCustomHooksClient, error) { - stream, err := grpc.NewClientStream(ctx, &_RepositoryService_serviceDesc.Streams[8], c.cc, "/gitaly.RepositoryService/RestoreCustomHooks", opts...) - if err != nil { - return nil, err - } - x := &repositoryServiceRestoreCustomHooksClient{stream} - return x, nil -} - -type RepositoryService_RestoreCustomHooksClient interface { - Send(*RestoreCustomHooksRequest) error - CloseAndRecv() (*RestoreCustomHooksResponse, error) - grpc.ClientStream -} - -type repositoryServiceRestoreCustomHooksClient struct { - grpc.ClientStream -} - -func (x *repositoryServiceRestoreCustomHooksClient) Send(m *RestoreCustomHooksRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *repositoryServiceRestoreCustomHooksClient) CloseAndRecv() (*RestoreCustomHooksResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(RestoreCustomHooksResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *repositoryServiceClient) BackupCustomHooks(ctx context.Context, in *BackupCustomHooksRequest, opts ...grpc.CallOption) (RepositoryService_BackupCustomHooksClient, error) { - stream, err := grpc.NewClientStream(ctx, &_RepositoryService_serviceDesc.Streams[9], c.cc, "/gitaly.RepositoryService/BackupCustomHooks", opts...) - if err != nil { - return nil, err - } - x := &repositoryServiceBackupCustomHooksClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type RepositoryService_BackupCustomHooksClient interface { - Recv() (*BackupCustomHooksResponse, error) - grpc.ClientStream -} - -type repositoryServiceBackupCustomHooksClient struct { - grpc.ClientStream -} - -func (x *repositoryServiceBackupCustomHooksClient) Recv() (*BackupCustomHooksResponse, error) { - m := new(BackupCustomHooksResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Server API for RepositoryService service - -type RepositoryServiceServer interface { - RepositoryExists(context.Context, *RepositoryExistsRequest) (*RepositoryExistsResponse, error) - RepackIncremental(context.Context, *RepackIncrementalRequest) (*RepackIncrementalResponse, error) - RepackFull(context.Context, *RepackFullRequest) (*RepackFullResponse, error) - GarbageCollect(context.Context, *GarbageCollectRequest) (*GarbageCollectResponse, error) - RepositorySize(context.Context, *RepositorySizeRequest) (*RepositorySizeResponse, error) - ApplyGitattributes(context.Context, *ApplyGitattributesRequest) (*ApplyGitattributesResponse, error) - FetchRemote(context.Context, *FetchRemoteRequest) (*FetchRemoteResponse, error) - CreateRepository(context.Context, *CreateRepositoryRequest) (*CreateRepositoryResponse, error) - GetArchive(*GetArchiveRequest, RepositoryService_GetArchiveServer) error - HasLocalBranches(context.Context, *HasLocalBranchesRequest) (*HasLocalBranchesResponse, error) - FetchSourceBranch(context.Context, *FetchSourceBranchRequest) (*FetchSourceBranchResponse, error) - Fsck(context.Context, *FsckRequest) (*FsckResponse, error) - WriteRef(context.Context, *WriteRefRequest) (*WriteRefResponse, error) - FindMergeBase(context.Context, *FindMergeBaseRequest) (*FindMergeBaseResponse, error) - CreateFork(context.Context, *CreateForkRequest) (*CreateForkResponse, error) - IsRebaseInProgress(context.Context, *IsRebaseInProgressRequest) (*IsRebaseInProgressResponse, error) - IsSquashInProgress(context.Context, *IsSquashInProgressRequest) (*IsSquashInProgressResponse, error) - CreateRepositoryFromURL(context.Context, *CreateRepositoryFromURLRequest) (*CreateRepositoryFromURLResponse, error) - CreateBundle(*CreateBundleRequest, RepositoryService_CreateBundleServer) error - CreateRepositoryFromBundle(RepositoryService_CreateRepositoryFromBundleServer) error - WriteConfig(context.Context, *WriteConfigRequest) (*WriteConfigResponse, error) - SetConfig(context.Context, *SetConfigRequest) (*SetConfigResponse, error) - DeleteConfig(context.Context, *DeleteConfigRequest) (*DeleteConfigResponse, error) - FindLicense(context.Context, *FindLicenseRequest) (*FindLicenseResponse, error) - GetInfoAttributes(*GetInfoAttributesRequest, RepositoryService_GetInfoAttributesServer) error - CalculateChecksum(context.Context, *CalculateChecksumRequest) (*CalculateChecksumResponse, error) - Cleanup(context.Context, *CleanupRequest) (*CleanupResponse, error) - GetSnapshot(*GetSnapshotRequest, RepositoryService_GetSnapshotServer) error - CreateRepositoryFromSnapshot(context.Context, *CreateRepositoryFromSnapshotRequest) (*CreateRepositoryFromSnapshotResponse, error) - GetRawChanges(*GetRawChangesRequest, RepositoryService_GetRawChangesServer) error - SearchFilesByContent(*SearchFilesByContentRequest, RepositoryService_SearchFilesByContentServer) error - SearchFilesByName(*SearchFilesByNameRequest, RepositoryService_SearchFilesByNameServer) error - RestoreCustomHooks(RepositoryService_RestoreCustomHooksServer) error - BackupCustomHooks(*BackupCustomHooksRequest, RepositoryService_BackupCustomHooksServer) error -} - -func RegisterRepositoryServiceServer(s *grpc.Server, srv RepositoryServiceServer) { - s.RegisterService(&_RepositoryService_serviceDesc, srv) -} - -func _RepositoryService_RepositoryExists_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RepositoryExistsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).RepositoryExists(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/RepositoryExists", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).RepositoryExists(ctx, req.(*RepositoryExistsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RepositoryService_RepackIncremental_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RepackIncrementalRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).RepackIncremental(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/RepackIncremental", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).RepackIncremental(ctx, req.(*RepackIncrementalRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RepositoryService_RepackFull_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RepackFullRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).RepackFull(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/RepackFull", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).RepackFull(ctx, req.(*RepackFullRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RepositoryService_GarbageCollect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GarbageCollectRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).GarbageCollect(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/GarbageCollect", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).GarbageCollect(ctx, req.(*GarbageCollectRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RepositoryService_RepositorySize_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RepositorySizeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).RepositorySize(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/RepositorySize", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).RepositorySize(ctx, req.(*RepositorySizeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RepositoryService_ApplyGitattributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ApplyGitattributesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).ApplyGitattributes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/ApplyGitattributes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).ApplyGitattributes(ctx, req.(*ApplyGitattributesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RepositoryService_FetchRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FetchRemoteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).FetchRemote(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/FetchRemote", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).FetchRemote(ctx, req.(*FetchRemoteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RepositoryService_CreateRepository_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateRepositoryRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).CreateRepository(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/CreateRepository", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).CreateRepository(ctx, req.(*CreateRepositoryRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RepositoryService_GetArchive_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetArchiveRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(RepositoryServiceServer).GetArchive(m, &repositoryServiceGetArchiveServer{stream}) -} - -type RepositoryService_GetArchiveServer interface { - Send(*GetArchiveResponse) error - grpc.ServerStream -} - -type repositoryServiceGetArchiveServer struct { - grpc.ServerStream -} - -func (x *repositoryServiceGetArchiveServer) Send(m *GetArchiveResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _RepositoryService_HasLocalBranches_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(HasLocalBranchesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).HasLocalBranches(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/HasLocalBranches", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).HasLocalBranches(ctx, req.(*HasLocalBranchesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RepositoryService_FetchSourceBranch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FetchSourceBranchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).FetchSourceBranch(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/FetchSourceBranch", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).FetchSourceBranch(ctx, req.(*FetchSourceBranchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RepositoryService_Fsck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FsckRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).Fsck(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/Fsck", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).Fsck(ctx, req.(*FsckRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RepositoryService_WriteRef_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(WriteRefRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).WriteRef(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/WriteRef", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).WriteRef(ctx, req.(*WriteRefRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RepositoryService_FindMergeBase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindMergeBaseRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).FindMergeBase(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/FindMergeBase", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).FindMergeBase(ctx, req.(*FindMergeBaseRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RepositoryService_CreateFork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateForkRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).CreateFork(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/CreateFork", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).CreateFork(ctx, req.(*CreateForkRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RepositoryService_IsRebaseInProgress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IsRebaseInProgressRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).IsRebaseInProgress(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/IsRebaseInProgress", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).IsRebaseInProgress(ctx, req.(*IsRebaseInProgressRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RepositoryService_IsSquashInProgress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IsSquashInProgressRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).IsSquashInProgress(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/IsSquashInProgress", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).IsSquashInProgress(ctx, req.(*IsSquashInProgressRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RepositoryService_CreateRepositoryFromURL_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateRepositoryFromURLRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).CreateRepositoryFromURL(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/CreateRepositoryFromURL", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).CreateRepositoryFromURL(ctx, req.(*CreateRepositoryFromURLRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RepositoryService_CreateBundle_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(CreateBundleRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(RepositoryServiceServer).CreateBundle(m, &repositoryServiceCreateBundleServer{stream}) -} - -type RepositoryService_CreateBundleServer interface { - Send(*CreateBundleResponse) error - grpc.ServerStream -} - -type repositoryServiceCreateBundleServer struct { - grpc.ServerStream -} - -func (x *repositoryServiceCreateBundleServer) Send(m *CreateBundleResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _RepositoryService_CreateRepositoryFromBundle_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(RepositoryServiceServer).CreateRepositoryFromBundle(&repositoryServiceCreateRepositoryFromBundleServer{stream}) -} - -type RepositoryService_CreateRepositoryFromBundleServer interface { - SendAndClose(*CreateRepositoryFromBundleResponse) error - Recv() (*CreateRepositoryFromBundleRequest, error) - grpc.ServerStream -} - -type repositoryServiceCreateRepositoryFromBundleServer struct { - grpc.ServerStream -} - -func (x *repositoryServiceCreateRepositoryFromBundleServer) SendAndClose(m *CreateRepositoryFromBundleResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *repositoryServiceCreateRepositoryFromBundleServer) Recv() (*CreateRepositoryFromBundleRequest, error) { - m := new(CreateRepositoryFromBundleRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _RepositoryService_WriteConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(WriteConfigRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).WriteConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/WriteConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).WriteConfig(ctx, req.(*WriteConfigRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RepositoryService_SetConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetConfigRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).SetConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/SetConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).SetConfig(ctx, req.(*SetConfigRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RepositoryService_DeleteConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteConfigRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).DeleteConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/DeleteConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).DeleteConfig(ctx, req.(*DeleteConfigRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RepositoryService_FindLicense_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindLicenseRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).FindLicense(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/FindLicense", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).FindLicense(ctx, req.(*FindLicenseRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RepositoryService_GetInfoAttributes_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetInfoAttributesRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(RepositoryServiceServer).GetInfoAttributes(m, &repositoryServiceGetInfoAttributesServer{stream}) -} - -type RepositoryService_GetInfoAttributesServer interface { - Send(*GetInfoAttributesResponse) error - grpc.ServerStream -} - -type repositoryServiceGetInfoAttributesServer struct { - grpc.ServerStream -} - -func (x *repositoryServiceGetInfoAttributesServer) Send(m *GetInfoAttributesResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _RepositoryService_CalculateChecksum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CalculateChecksumRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).CalculateChecksum(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/CalculateChecksum", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).CalculateChecksum(ctx, req.(*CalculateChecksumRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RepositoryService_Cleanup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CleanupRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).Cleanup(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/Cleanup", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).Cleanup(ctx, req.(*CleanupRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RepositoryService_GetSnapshot_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetSnapshotRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(RepositoryServiceServer).GetSnapshot(m, &repositoryServiceGetSnapshotServer{stream}) -} - -type RepositoryService_GetSnapshotServer interface { - Send(*GetSnapshotResponse) error - grpc.ServerStream -} - -type repositoryServiceGetSnapshotServer struct { - grpc.ServerStream -} - -func (x *repositoryServiceGetSnapshotServer) Send(m *GetSnapshotResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _RepositoryService_CreateRepositoryFromSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateRepositoryFromSnapshotRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RepositoryServiceServer).CreateRepositoryFromSnapshot(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.RepositoryService/CreateRepositoryFromSnapshot", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RepositoryServiceServer).CreateRepositoryFromSnapshot(ctx, req.(*CreateRepositoryFromSnapshotRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RepositoryService_GetRawChanges_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetRawChangesRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(RepositoryServiceServer).GetRawChanges(m, &repositoryServiceGetRawChangesServer{stream}) -} - -type RepositoryService_GetRawChangesServer interface { - Send(*GetRawChangesResponse) error - grpc.ServerStream -} - -type repositoryServiceGetRawChangesServer struct { - grpc.ServerStream -} - -func (x *repositoryServiceGetRawChangesServer) Send(m *GetRawChangesResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _RepositoryService_SearchFilesByContent_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(SearchFilesByContentRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(RepositoryServiceServer).SearchFilesByContent(m, &repositoryServiceSearchFilesByContentServer{stream}) -} - -type RepositoryService_SearchFilesByContentServer interface { - Send(*SearchFilesByContentResponse) error - grpc.ServerStream -} - -type repositoryServiceSearchFilesByContentServer struct { - grpc.ServerStream -} - -func (x *repositoryServiceSearchFilesByContentServer) Send(m *SearchFilesByContentResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _RepositoryService_SearchFilesByName_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(SearchFilesByNameRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(RepositoryServiceServer).SearchFilesByName(m, &repositoryServiceSearchFilesByNameServer{stream}) -} - -type RepositoryService_SearchFilesByNameServer interface { - Send(*SearchFilesByNameResponse) error - grpc.ServerStream -} - -type repositoryServiceSearchFilesByNameServer struct { - grpc.ServerStream -} - -func (x *repositoryServiceSearchFilesByNameServer) Send(m *SearchFilesByNameResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _RepositoryService_RestoreCustomHooks_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(RepositoryServiceServer).RestoreCustomHooks(&repositoryServiceRestoreCustomHooksServer{stream}) -} - -type RepositoryService_RestoreCustomHooksServer interface { - SendAndClose(*RestoreCustomHooksResponse) error - Recv() (*RestoreCustomHooksRequest, error) - grpc.ServerStream -} - -type repositoryServiceRestoreCustomHooksServer struct { - grpc.ServerStream -} - -func (x *repositoryServiceRestoreCustomHooksServer) SendAndClose(m *RestoreCustomHooksResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *repositoryServiceRestoreCustomHooksServer) Recv() (*RestoreCustomHooksRequest, error) { - m := new(RestoreCustomHooksRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _RepositoryService_BackupCustomHooks_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(BackupCustomHooksRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(RepositoryServiceServer).BackupCustomHooks(m, &repositoryServiceBackupCustomHooksServer{stream}) -} - -type RepositoryService_BackupCustomHooksServer interface { - Send(*BackupCustomHooksResponse) error - grpc.ServerStream -} - -type repositoryServiceBackupCustomHooksServer struct { - grpc.ServerStream -} - -func (x *repositoryServiceBackupCustomHooksServer) Send(m *BackupCustomHooksResponse) error { - return x.ServerStream.SendMsg(m) -} - -var _RepositoryService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.RepositoryService", - HandlerType: (*RepositoryServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "RepositoryExists", - Handler: _RepositoryService_RepositoryExists_Handler, - }, - { - MethodName: "RepackIncremental", - Handler: _RepositoryService_RepackIncremental_Handler, - }, - { - MethodName: "RepackFull", - Handler: _RepositoryService_RepackFull_Handler, - }, - { - MethodName: "GarbageCollect", - Handler: _RepositoryService_GarbageCollect_Handler, - }, - { - MethodName: "RepositorySize", - Handler: _RepositoryService_RepositorySize_Handler, - }, - { - MethodName: "ApplyGitattributes", - Handler: _RepositoryService_ApplyGitattributes_Handler, - }, - { - MethodName: "FetchRemote", - Handler: _RepositoryService_FetchRemote_Handler, - }, - { - MethodName: "CreateRepository", - Handler: _RepositoryService_CreateRepository_Handler, - }, - { - MethodName: "HasLocalBranches", - Handler: _RepositoryService_HasLocalBranches_Handler, - }, - { - MethodName: "FetchSourceBranch", - Handler: _RepositoryService_FetchSourceBranch_Handler, - }, - { - MethodName: "Fsck", - Handler: _RepositoryService_Fsck_Handler, - }, - { - MethodName: "WriteRef", - Handler: _RepositoryService_WriteRef_Handler, - }, - { - MethodName: "FindMergeBase", - Handler: _RepositoryService_FindMergeBase_Handler, - }, - { - MethodName: "CreateFork", - Handler: _RepositoryService_CreateFork_Handler, - }, - { - MethodName: "IsRebaseInProgress", - Handler: _RepositoryService_IsRebaseInProgress_Handler, - }, - { - MethodName: "IsSquashInProgress", - Handler: _RepositoryService_IsSquashInProgress_Handler, - }, - { - MethodName: "CreateRepositoryFromURL", - Handler: _RepositoryService_CreateRepositoryFromURL_Handler, - }, - { - MethodName: "WriteConfig", - Handler: _RepositoryService_WriteConfig_Handler, - }, - { - MethodName: "SetConfig", - Handler: _RepositoryService_SetConfig_Handler, - }, - { - MethodName: "DeleteConfig", - Handler: _RepositoryService_DeleteConfig_Handler, - }, - { - MethodName: "FindLicense", - Handler: _RepositoryService_FindLicense_Handler, - }, - { - MethodName: "CalculateChecksum", - Handler: _RepositoryService_CalculateChecksum_Handler, - }, - { - MethodName: "Cleanup", - Handler: _RepositoryService_Cleanup_Handler, - }, - { - MethodName: "CreateRepositoryFromSnapshot", - Handler: _RepositoryService_CreateRepositoryFromSnapshot_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "GetArchive", - Handler: _RepositoryService_GetArchive_Handler, - ServerStreams: true, - }, - { - StreamName: "CreateBundle", - Handler: _RepositoryService_CreateBundle_Handler, - ServerStreams: true, - }, - { - StreamName: "CreateRepositoryFromBundle", - Handler: _RepositoryService_CreateRepositoryFromBundle_Handler, - ClientStreams: true, - }, - { - StreamName: "GetInfoAttributes", - Handler: _RepositoryService_GetInfoAttributes_Handler, - ServerStreams: true, - }, - { - StreamName: "GetSnapshot", - Handler: _RepositoryService_GetSnapshot_Handler, - ServerStreams: true, - }, - { - StreamName: "GetRawChanges", - Handler: _RepositoryService_GetRawChanges_Handler, - ServerStreams: true, - }, - { - StreamName: "SearchFilesByContent", - Handler: _RepositoryService_SearchFilesByContent_Handler, - ServerStreams: true, - }, - { - StreamName: "SearchFilesByName", - Handler: _RepositoryService_SearchFilesByName_Handler, - ServerStreams: true, - }, - { - StreamName: "RestoreCustomHooks", - Handler: _RepositoryService_RestoreCustomHooks_Handler, - ClientStreams: true, - }, - { - StreamName: "BackupCustomHooks", - Handler: _RepositoryService_BackupCustomHooks_Handler, - ServerStreams: true, - }, - }, - Metadata: "repository-service.proto", -} - -func init() { proto.RegisterFile("repository-service.proto", fileDescriptor10) } - -var fileDescriptor10 = []byte{ - // 2344 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x5a, 0x51, 0x73, 0xdb, 0xb8, - 0x11, 0x96, 0x6c, 0xcb, 0xb2, 0x56, 0xca, 0x9d, 0x0c, 0x2b, 0xb6, 0xc4, 0x38, 0x71, 0xc2, 0x64, - 0xee, 0x7c, 0x97, 0xd4, 0xbd, 0x73, 0x1e, 0x9a, 0x99, 0xb6, 0x73, 0x63, 0x4b, 0xb2, 0xad, 0x4b, - 0xec, 0xb8, 0x74, 0x32, 0x99, 0x66, 0x2e, 0xa3, 0xa1, 0x29, 0xc8, 0xe4, 0x88, 0x22, 0x14, 0x10, - 0x8a, 0xcf, 0xd7, 0xd7, 0x76, 0xe6, 0x1e, 0xdb, 0xdf, 0xd2, 0x7f, 0xd0, 0x3f, 0xd0, 0x87, 0xfe, - 0x8c, 0xbe, 0xf4, 0x27, 0x74, 0x00, 0x50, 0x04, 0x29, 0x92, 0x6a, 0x66, 0x98, 0xb6, 0x6f, 0xc4, - 0x62, 0xb1, 0xbb, 0xd8, 0x5d, 0x2c, 0xb0, 0x9f, 0x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x2d, 0xa4, 0xbf, 0x03, 0x94, 0x84, 0x99, 0x50, 0xe4, 0x95, 0x98, 0x81, 0x73, 0xa9, 0x8a, - 0x9c, 0x8d, 0x52, 0xed, 0x0a, 0xe3, 0x13, 0xb8, 0x92, 0x32, 0x3e, 0x0b, 0xc2, 0x52, 0xc6, 0x67, - 0x82, 0x52, 0xdc, 0xf8, 0xcb, 0x55, 0xf1, 0x97, 0x91, 0xa7, 0xff, 0x0e, 0x00, 0x00, 0xff, 0xff, - 0xcc, 0xc6, 0x1f, 0x98, 0x64, 0x22, 0x00, 0x00, -} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/server.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/server.pb.go deleted file mode 100644 index cd85fc4..0000000 --- a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/server.pb.go +++ /dev/null @@ -1,193 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: server.proto - -package gitaly - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -type ServerInfoRequest struct { -} - -func (m *ServerInfoRequest) Reset() { *m = ServerInfoRequest{} } -func (m *ServerInfoRequest) String() string { return proto.CompactTextString(m) } -func (*ServerInfoRequest) ProtoMessage() {} -func (*ServerInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{0} } - -type ServerInfoResponse struct { - ServerVersion string `protobuf:"bytes,1,opt,name=server_version,json=serverVersion" json:"server_version,omitempty"` - GitVersion string `protobuf:"bytes,2,opt,name=git_version,json=gitVersion" json:"git_version,omitempty"` - StorageStatuses []*ServerInfoResponse_StorageStatus `protobuf:"bytes,3,rep,name=storage_statuses,json=storageStatuses" json:"storage_statuses,omitempty"` -} - -func (m *ServerInfoResponse) Reset() { *m = ServerInfoResponse{} } -func (m *ServerInfoResponse) String() string { return proto.CompactTextString(m) } -func (*ServerInfoResponse) ProtoMessage() {} -func (*ServerInfoResponse) Descriptor() ([]byte, []int) { return fileDescriptor11, []int{1} } - -func (m *ServerInfoResponse) GetServerVersion() string { - if m != nil { - return m.ServerVersion - } - return "" -} - -func (m *ServerInfoResponse) GetGitVersion() string { - if m != nil { - return m.GitVersion - } - return "" -} - -func (m *ServerInfoResponse) GetStorageStatuses() []*ServerInfoResponse_StorageStatus { - if m != nil { - return m.StorageStatuses - } - return nil -} - -type ServerInfoResponse_StorageStatus struct { - StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName" json:"storage_name,omitempty"` - Readable bool `protobuf:"varint,2,opt,name=readable" json:"readable,omitempty"` - Writeable bool `protobuf:"varint,3,opt,name=writeable" json:"writeable,omitempty"` -} - -func (m *ServerInfoResponse_StorageStatus) Reset() { *m = ServerInfoResponse_StorageStatus{} } -func (m *ServerInfoResponse_StorageStatus) String() string { return proto.CompactTextString(m) } -func (*ServerInfoResponse_StorageStatus) ProtoMessage() {} -func (*ServerInfoResponse_StorageStatus) Descriptor() ([]byte, []int) { - return fileDescriptor11, []int{1, 0} -} - -func (m *ServerInfoResponse_StorageStatus) GetStorageName() string { - if m != nil { - return m.StorageName - } - return "" -} - -func (m *ServerInfoResponse_StorageStatus) GetReadable() bool { - if m != nil { - return m.Readable - } - return false -} - -func (m *ServerInfoResponse_StorageStatus) GetWriteable() bool { - if m != nil { - return m.Writeable - } - return false -} - -func init() { - proto.RegisterType((*ServerInfoRequest)(nil), "gitaly.ServerInfoRequest") - proto.RegisterType((*ServerInfoResponse)(nil), "gitaly.ServerInfoResponse") - proto.RegisterType((*ServerInfoResponse_StorageStatus)(nil), "gitaly.ServerInfoResponse.StorageStatus") -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for ServerService service - -type ServerServiceClient interface { - ServerInfo(ctx context.Context, in *ServerInfoRequest, opts ...grpc.CallOption) (*ServerInfoResponse, error) -} - -type serverServiceClient struct { - cc *grpc.ClientConn -} - -func NewServerServiceClient(cc *grpc.ClientConn) ServerServiceClient { - return &serverServiceClient{cc} -} - -func (c *serverServiceClient) ServerInfo(ctx context.Context, in *ServerInfoRequest, opts ...grpc.CallOption) (*ServerInfoResponse, error) { - out := new(ServerInfoResponse) - err := grpc.Invoke(ctx, "/gitaly.ServerService/ServerInfo", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for ServerService service - -type ServerServiceServer interface { - ServerInfo(context.Context, *ServerInfoRequest) (*ServerInfoResponse, error) -} - -func RegisterServerServiceServer(s *grpc.Server, srv ServerServiceServer) { - s.RegisterService(&_ServerService_serviceDesc, srv) -} - -func _ServerService_ServerInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ServerInfoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ServerServiceServer).ServerInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.ServerService/ServerInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ServerServiceServer).ServerInfo(ctx, req.(*ServerInfoRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _ServerService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.ServerService", - HandlerType: (*ServerServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ServerInfo", - Handler: _ServerService_ServerInfo_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "server.proto", -} - -func init() { proto.RegisterFile("server.proto", fileDescriptor11) } - -var fileDescriptor11 = []byte{ - // 258 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0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 0x14, - 0x86, 0x9e, 0xcc, 0x8b, 0x59, 0x36, 0xa4, 0x36, 0x87, 0xe5, 0xa1, 0xc6, 0x6b, 0x18, 0xbd, 0x7b, - 0x2b, 0xa4, 0xcd, 0x48, 0x9b, 0x47, 0x30, 0x9b, 0x43, 0x12, 0x2c, 0x7e, 0x9f, 0xf6, 0x99, 0xf0, - 0x01, 0xe0, 0xe8, 0x19, 0xaf, 0xfe, 0xca, 0xa1, 0x6f, 0x9b, 0xa6, 0xff, 0x47, 0xcc, 0x4e, 0x96, - 0x03, 0xfd, 0x9d, 0xfb, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xcc, 0xe4, 0x68, 0x27, 0xad, 0x01, - 0x00, 0x00, -} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/shared.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/shared.pb.go deleted file mode 100644 index 5cb1031..0000000 --- a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/shared.pb.go +++ /dev/null @@ -1,360 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: shared.proto - -package gitaly - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import google_protobuf "github.com/golang/protobuf/ptypes/timestamp" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -type Repository struct { - StorageName string `protobuf:"bytes,2,opt,name=storage_name,json=storageName" json:"storage_name,omitempty"` - RelativePath string `protobuf:"bytes,3,opt,name=relative_path,json=relativePath" json:"relative_path,omitempty"` - // Sets the GIT_OBJECT_DIRECTORY envvar on git commands to the value of this field. - // It influences the object storage directory the SHA1 directories are created underneath. - GitObjectDirectory string `protobuf:"bytes,4,opt,name=git_object_directory,json=gitObjectDirectory" json:"git_object_directory,omitempty"` - // Sets the GIT_ALTERNATE_OBJECT_DIRECTORIES envvar on git commands to the values of this field. - // It influences the list of Git object directories which can be used to search for Git objects. - GitAlternateObjectDirectories []string `protobuf:"bytes,5,rep,name=git_alternate_object_directories,json=gitAlternateObjectDirectories" json:"git_alternate_object_directories,omitempty"` - // Used in callbacks to GitLab so that it knows what repository the event is - // associated with. May be left empty on RPC's that do not perform callbacks. - GlRepository string `protobuf:"bytes,6,opt,name=gl_repository,json=glRepository" json:"gl_repository,omitempty"` -} - -func (m *Repository) Reset() { *m = Repository{} } -func (m *Repository) String() string { return proto.CompactTextString(m) } -func (*Repository) ProtoMessage() {} -func (*Repository) Descriptor() ([]byte, []int) { return fileDescriptor12, []int{0} } - -func (m *Repository) GetStorageName() string { - if m != nil { - return m.StorageName - } - return "" -} - -func (m *Repository) GetRelativePath() string { - if m != nil { - return m.RelativePath - } - return "" -} - -func (m *Repository) GetGitObjectDirectory() string { - if m != nil { - return m.GitObjectDirectory - } - return "" -} - -func (m *Repository) GetGitAlternateObjectDirectories() []string { - if m != nil { - return m.GitAlternateObjectDirectories - } - return nil -} - -func (m *Repository) GetGlRepository() string { - if m != nil { - return m.GlRepository - } - return "" -} - -// Corresponds to Gitlab::Git::Commit -type GitCommit struct { - Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` - Subject []byte `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` - Body []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` - Author *CommitAuthor `protobuf:"bytes,4,opt,name=author" json:"author,omitempty"` - Committer *CommitAuthor `protobuf:"bytes,5,opt,name=committer" json:"committer,omitempty"` - ParentIds []string `protobuf:"bytes,6,rep,name=parent_ids,json=parentIds" json:"parent_ids,omitempty"` - // If body exceeds a certain threshold, it will be nullified, - // but its size will be set in body_size so we can know if - // a commit had a body in the first place. - BodySize int64 `protobuf:"varint,7,opt,name=body_size,json=bodySize" json:"body_size,omitempty"` -} - -func (m *GitCommit) Reset() { *m = GitCommit{} } -func (m *GitCommit) String() string { return proto.CompactTextString(m) } -func (*GitCommit) ProtoMessage() {} -func (*GitCommit) Descriptor() ([]byte, []int) { return fileDescriptor12, []int{1} } - -func (m *GitCommit) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *GitCommit) GetSubject() []byte { - if m != nil { - return m.Subject - } - return nil -} - -func (m *GitCommit) GetBody() []byte { - if m != nil { - return m.Body - } - return nil -} - -func (m *GitCommit) GetAuthor() *CommitAuthor { - if m != nil { - return m.Author - } - return nil -} - -func (m *GitCommit) GetCommitter() *CommitAuthor { - if m != nil { - return m.Committer - } - return nil -} - -func (m *GitCommit) GetParentIds() []string { - if m != nil { - return m.ParentIds - } - return nil -} - -func (m *GitCommit) GetBodySize() int64 { - if m != nil { - return m.BodySize - } - return 0 -} - -type CommitAuthor struct { - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Email []byte `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` - Date *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=date" json:"date,omitempty"` -} - -func (m *CommitAuthor) Reset() { *m = CommitAuthor{} } -func (m *CommitAuthor) String() string { return proto.CompactTextString(m) } -func (*CommitAuthor) ProtoMessage() {} -func (*CommitAuthor) Descriptor() ([]byte, []int) { return fileDescriptor12, []int{2} } - -func (m *CommitAuthor) GetName() []byte { - if m != nil { - return m.Name - } - return nil -} - -func (m *CommitAuthor) GetEmail() []byte { - if m != nil { - return m.Email - } - return nil -} - -func (m *CommitAuthor) GetDate() *google_protobuf.Timestamp { - if m != nil { - return m.Date - } - return nil -} - -type ExitStatus struct { - Value int32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"` -} - -func (m *ExitStatus) Reset() { *m = ExitStatus{} } -func (m *ExitStatus) String() string { return proto.CompactTextString(m) } -func (*ExitStatus) ProtoMessage() {} -func (*ExitStatus) Descriptor() ([]byte, []int) { return fileDescriptor12, []int{3} } - -func (m *ExitStatus) GetValue() int32 { - if m != nil { - return m.Value - } - return 0 -} - -// Corresponds to Gitlab::Git::Branch -type Branch struct { - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - TargetCommit *GitCommit `protobuf:"bytes,2,opt,name=target_commit,json=targetCommit" json:"target_commit,omitempty"` -} - -func (m *Branch) Reset() { *m = Branch{} } -func (m *Branch) String() string { return proto.CompactTextString(m) } -func (*Branch) ProtoMessage() {} -func (*Branch) Descriptor() ([]byte, []int) { return fileDescriptor12, []int{4} } - -func (m *Branch) GetName() []byte { - if m != nil { - return m.Name - } - return nil -} - -func (m *Branch) GetTargetCommit() *GitCommit { - if m != nil { - return m.TargetCommit - } - return nil -} - -type Tag struct { - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` - TargetCommit *GitCommit `protobuf:"bytes,3,opt,name=target_commit,json=targetCommit" json:"target_commit,omitempty"` - // If message exceeds a certain threshold, it will be nullified, - // but its size will be set in message_size so we can know if - // a tag had a message in the first place. - Message []byte `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` - MessageSize int64 `protobuf:"varint,5,opt,name=message_size,json=messageSize" json:"message_size,omitempty"` - Tagger *CommitAuthor `protobuf:"bytes,6,opt,name=tagger" json:"tagger,omitempty"` -} - -func (m *Tag) Reset() { *m = Tag{} } -func (m *Tag) String() string { return proto.CompactTextString(m) } -func (*Tag) ProtoMessage() {} -func (*Tag) Descriptor() ([]byte, []int) { return fileDescriptor12, []int{5} } - -func (m *Tag) GetName() []byte { - if m != nil { - return m.Name - } - return nil -} - -func (m *Tag) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *Tag) GetTargetCommit() *GitCommit { - if m != nil { - return m.TargetCommit - } - return nil -} - -func (m *Tag) GetMessage() []byte { - if m != nil { - return m.Message - } - return nil -} - -func (m *Tag) GetMessageSize() int64 { - if m != nil { - return m.MessageSize - } - return 0 -} - -func (m *Tag) GetTagger() *CommitAuthor { - if m != nil { - return m.Tagger - } - return nil -} - -type User struct { - GlId string `protobuf:"bytes,1,opt,name=gl_id,json=glId" json:"gl_id,omitempty"` - Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Email []byte `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` - GlUsername string `protobuf:"bytes,4,opt,name=gl_username,json=glUsername" json:"gl_username,omitempty"` -} - -func (m *User) Reset() { *m = User{} } -func (m *User) String() string { return proto.CompactTextString(m) } -func (*User) ProtoMessage() {} -func (*User) Descriptor() ([]byte, []int) { return fileDescriptor12, []int{6} } - -func (m *User) GetGlId() string { - if m != nil { - return m.GlId - } - return "" -} - -func (m *User) GetName() []byte { - if m != nil { - return m.Name - } - return nil -} - -func (m *User) GetEmail() []byte { - if m != nil { - return m.Email - } - return nil -} - -func (m *User) GetGlUsername() string { - if m != nil { - return m.GlUsername - } - return "" -} - -func init() { - proto.RegisterType((*Repository)(nil), "gitaly.Repository") - proto.RegisterType((*GitCommit)(nil), "gitaly.GitCommit") - proto.RegisterType((*CommitAuthor)(nil), "gitaly.CommitAuthor") - proto.RegisterType((*ExitStatus)(nil), "gitaly.ExitStatus") - proto.RegisterType((*Branch)(nil), "gitaly.Branch") - proto.RegisterType((*Tag)(nil), "gitaly.Tag") - proto.RegisterType((*User)(nil), "gitaly.User") -} - -func init() { proto.RegisterFile("shared.proto", fileDescriptor12) } - -var fileDescriptor12 = []byte{ - // 568 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x5f, 0x6f, 0xd3, 0x3e, - 0x14, 0x55, 0xd2, 0xb4, 0x5b, 0x6f, 0xb3, 0x9f, 0x7e, 0x98, 0x3d, 0x44, 0x43, 0xd3, 0x4a, 0x78, - 0xd9, 0x03, 0xca, 0x50, 0x91, 0x78, 0x1f, 0x7f, 0x34, 0x8d, 0x07, 0x40, 0xde, 0xf6, 0x1c, 0xb9, - 0xcd, 0x9d, 0x6b, 0xe4, 0x34, 0x95, 0x7d, 0x33, 0x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0x7e, 0x09, 0xa3, 0xd7, 0x46, 0xac, 0x16, 0xcb, 0xad, 0x73, 0xbc, - 0x82, 0x3d, 0x12, 0x46, 0x22, 0x95, 0x41, 0xbb, 0x9f, 0x67, 0x32, 0x7b, 0xd4, 0xbf, 0xcf, 0xc6, - 0x31, 0x9e, 0x06, 0x5e, 0xa8, 0xf2, 0x6f, 0x11, 0x0c, 0x2e, 0x85, 0xdc, 0xda, 0x33, 0x78, 0x1b, - 0x6f, 0xbc, 0xfd, 0xed, 0x8e, 0xc1, 0x3f, 0xdd, 0xe1, 0x32, 0x51, 0xa3, 0xb5, 0x42, 0xa2, 0xb7, - 0x39, 0xe5, 0x7d, 0xe9, 0xfe, 0x4f, 0xb7, 0x0c, 0x0e, 0x0c, 0xbd, 0x03, 0x93, 0x0e, 0x73, 0x26, - 0xb8, 0x88, 0x90, 0x90, 0x12, 0x8d, 0x0f, 0xe6, 0x1f, 0x23, 0x12, 0x38, 0xf9, 0x35, 0x24, 0x57, - 0x16, 0x0d, 0x7b, 0x0c, 0x43, 0xa9, 0xcb, 0x4d, 0x32, 0x13, 0xa9, 0xcf, 0xab, 0x8d, 0xc6, 0x78, - 0x9b, 0x7f, 0x83, 0x87, 0xfe, 0x1d, 0xc1, 0x44, 0xea, 0xb2, 0xb5, 0xee, 0xd3, 0xd4, 0xd8, 0x7d, - 0x43, 0x90, 0xfa, 0xaa, 0x43, 0xe6, 0x23, 0x6f, 0xe5, 0xcb, 0x1f, 0x01, 0x00, 0x00, 0xff, 0xff, - 0xf1, 0xe6, 0xc7, 0x44, 0x47, 0x04, 0x00, 0x00, -} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/smarthttp.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/smarthttp.pb.go deleted file mode 100644 index 11e99e3..0000000 --- a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/smarthttp.pb.go +++ /dev/null @@ -1,555 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: smarthttp.proto - -package gitaly - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -type InfoRefsRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - // Parameters to use with git -c (key=value pairs) - GitConfigOptions []string `protobuf:"bytes,2,rep,name=git_config_options,json=gitConfigOptions" json:"git_config_options,omitempty"` - // Git protocol version - GitProtocol string `protobuf:"bytes,3,opt,name=git_protocol,json=gitProtocol" json:"git_protocol,omitempty"` -} - -func (m *InfoRefsRequest) Reset() { *m = InfoRefsRequest{} } -func (m *InfoRefsRequest) String() string { return proto.CompactTextString(m) } -func (*InfoRefsRequest) ProtoMessage() {} -func (*InfoRefsRequest) Descriptor() ([]byte, []int) { return fileDescriptor13, []int{0} } - -func (m *InfoRefsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *InfoRefsRequest) GetGitConfigOptions() []string { - if m != nil { - return m.GitConfigOptions - } - return nil -} - -func (m *InfoRefsRequest) GetGitProtocol() string { - if m != nil { - return m.GitProtocol - } - return "" -} - -type InfoRefsResponse struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (m *InfoRefsResponse) Reset() { *m = InfoRefsResponse{} } -func (m *InfoRefsResponse) String() string { return proto.CompactTextString(m) } -func (*InfoRefsResponse) ProtoMessage() {} -func (*InfoRefsResponse) Descriptor() ([]byte, []int) { return fileDescriptor13, []int{1} } - -func (m *InfoRefsResponse) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} - -type PostUploadPackRequest struct { - // repository should only be present in the first message of the stream - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - // Raw data to be copied to stdin of 'git upload-pack' - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - // Parameters to use with git -c (key=value pairs) - GitConfigOptions []string `protobuf:"bytes,3,rep,name=git_config_options,json=gitConfigOptions" json:"git_config_options,omitempty"` - // Git protocol version - GitProtocol string `protobuf:"bytes,4,opt,name=git_protocol,json=gitProtocol" json:"git_protocol,omitempty"` -} - -func (m *PostUploadPackRequest) Reset() { *m = PostUploadPackRequest{} } -func (m *PostUploadPackRequest) String() string { return proto.CompactTextString(m) } -func (*PostUploadPackRequest) ProtoMessage() {} -func (*PostUploadPackRequest) Descriptor() ([]byte, []int) { return fileDescriptor13, []int{2} } - -func (m *PostUploadPackRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *PostUploadPackRequest) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} - -func (m *PostUploadPackRequest) GetGitConfigOptions() []string { - if m != nil { - return m.GitConfigOptions - } - return nil -} - -func (m *PostUploadPackRequest) GetGitProtocol() string { - if m != nil { - return m.GitProtocol - } - return "" -} - -type PostUploadPackResponse struct { - // Raw data from stdout of 'git upload-pack' - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (m *PostUploadPackResponse) Reset() { *m = PostUploadPackResponse{} } -func (m *PostUploadPackResponse) String() string { return proto.CompactTextString(m) } -func (*PostUploadPackResponse) ProtoMessage() {} -func (*PostUploadPackResponse) Descriptor() ([]byte, []int) { return fileDescriptor13, []int{3} } - -func (m *PostUploadPackResponse) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} - -type PostReceivePackRequest struct { - // repository should only be present in the first message of the stream - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - // Raw data to be copied to stdin of 'git receive-pack' - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - // gl_id, gl_repository, and gl_username become env variables, used by the Git {pre,post}-receive - // hooks. They should only be present in the first message of the stream. - GlId string `protobuf:"bytes,3,opt,name=gl_id,json=glId" json:"gl_id,omitempty"` - GlRepository string `protobuf:"bytes,4,opt,name=gl_repository,json=glRepository" json:"gl_repository,omitempty"` - GlUsername string `protobuf:"bytes,5,opt,name=gl_username,json=glUsername" json:"gl_username,omitempty"` - // Git protocol version - GitProtocol string `protobuf:"bytes,6,opt,name=git_protocol,json=gitProtocol" json:"git_protocol,omitempty"` - // Parameters to use with git -c (key=value pairs) - GitConfigOptions []string `protobuf:"bytes,7,rep,name=git_config_options,json=gitConfigOptions" json:"git_config_options,omitempty"` -} - -func (m *PostReceivePackRequest) Reset() { *m = PostReceivePackRequest{} } -func (m *PostReceivePackRequest) String() string { return proto.CompactTextString(m) } -func (*PostReceivePackRequest) ProtoMessage() {} -func (*PostReceivePackRequest) Descriptor() ([]byte, []int) { return fileDescriptor13, []int{4} } - -func (m *PostReceivePackRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *PostReceivePackRequest) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} - -func (m *PostReceivePackRequest) GetGlId() string { - if m != nil { - return m.GlId - } - return "" -} - -func (m *PostReceivePackRequest) GetGlRepository() string { - if m != nil { - return m.GlRepository - } - return "" -} - -func (m *PostReceivePackRequest) GetGlUsername() string { - if m != nil { - return m.GlUsername - } - return "" -} - -func (m *PostReceivePackRequest) GetGitProtocol() string { - if m != nil { - return m.GitProtocol - } - return "" -} - -func (m *PostReceivePackRequest) GetGitConfigOptions() []string { - if m != nil { - return m.GitConfigOptions - } - return nil -} - -type PostReceivePackResponse struct { - // Raw data from stdout of 'git receive-pack' - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (m *PostReceivePackResponse) Reset() { *m = PostReceivePackResponse{} } -func (m *PostReceivePackResponse) String() string { return proto.CompactTextString(m) } -func (*PostReceivePackResponse) ProtoMessage() {} -func (*PostReceivePackResponse) Descriptor() ([]byte, []int) { return fileDescriptor13, []int{5} } - -func (m *PostReceivePackResponse) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} - -func init() { - proto.RegisterType((*InfoRefsRequest)(nil), "gitaly.InfoRefsRequest") - proto.RegisterType((*InfoRefsResponse)(nil), "gitaly.InfoRefsResponse") - proto.RegisterType((*PostUploadPackRequest)(nil), "gitaly.PostUploadPackRequest") - proto.RegisterType((*PostUploadPackResponse)(nil), "gitaly.PostUploadPackResponse") - proto.RegisterType((*PostReceivePackRequest)(nil), "gitaly.PostReceivePackRequest") - proto.RegisterType((*PostReceivePackResponse)(nil), "gitaly.PostReceivePackResponse") -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for SmartHTTPService service - -type SmartHTTPServiceClient interface { - // The response body for GET /info/refs?service=git-upload-pack - InfoRefsUploadPack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTPService_InfoRefsUploadPackClient, error) - // The response body for GET /info/refs?service=git-receive-pack - InfoRefsReceivePack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTPService_InfoRefsReceivePackClient, error) - // Request and response body for POST /upload-pack - PostUploadPack(ctx context.Context, opts ...grpc.CallOption) (SmartHTTPService_PostUploadPackClient, error) - // Request and response body for POST /receive-pack - PostReceivePack(ctx context.Context, opts ...grpc.CallOption) (SmartHTTPService_PostReceivePackClient, error) -} - -type smartHTTPServiceClient struct { - cc *grpc.ClientConn -} - -func NewSmartHTTPServiceClient(cc *grpc.ClientConn) SmartHTTPServiceClient { - return &smartHTTPServiceClient{cc} -} - -func (c *smartHTTPServiceClient) InfoRefsUploadPack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTPService_InfoRefsUploadPackClient, error) { - stream, err := grpc.NewClientStream(ctx, &_SmartHTTPService_serviceDesc.Streams[0], c.cc, "/gitaly.SmartHTTPService/InfoRefsUploadPack", opts...) - if err != nil { - return nil, err - } - x := &smartHTTPServiceInfoRefsUploadPackClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type SmartHTTPService_InfoRefsUploadPackClient interface { - Recv() (*InfoRefsResponse, error) - grpc.ClientStream -} - -type smartHTTPServiceInfoRefsUploadPackClient struct { - grpc.ClientStream -} - -func (x *smartHTTPServiceInfoRefsUploadPackClient) Recv() (*InfoRefsResponse, error) { - m := new(InfoRefsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *smartHTTPServiceClient) InfoRefsReceivePack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTPService_InfoRefsReceivePackClient, error) { - stream, err := grpc.NewClientStream(ctx, &_SmartHTTPService_serviceDesc.Streams[1], c.cc, "/gitaly.SmartHTTPService/InfoRefsReceivePack", opts...) - if err != nil { - return nil, err - } - x := &smartHTTPServiceInfoRefsReceivePackClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type SmartHTTPService_InfoRefsReceivePackClient interface { - Recv() (*InfoRefsResponse, error) - grpc.ClientStream -} - -type smartHTTPServiceInfoRefsReceivePackClient struct { - grpc.ClientStream -} - -func (x *smartHTTPServiceInfoRefsReceivePackClient) Recv() (*InfoRefsResponse, error) { - m := new(InfoRefsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *smartHTTPServiceClient) PostUploadPack(ctx context.Context, opts ...grpc.CallOption) (SmartHTTPService_PostUploadPackClient, error) { - stream, err := grpc.NewClientStream(ctx, &_SmartHTTPService_serviceDesc.Streams[2], c.cc, "/gitaly.SmartHTTPService/PostUploadPack", opts...) - if err != nil { - return nil, err - } - x := &smartHTTPServicePostUploadPackClient{stream} - return x, nil -} - -type SmartHTTPService_PostUploadPackClient interface { - Send(*PostUploadPackRequest) error - Recv() (*PostUploadPackResponse, error) - grpc.ClientStream -} - -type smartHTTPServicePostUploadPackClient struct { - grpc.ClientStream -} - -func (x *smartHTTPServicePostUploadPackClient) Send(m *PostUploadPackRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *smartHTTPServicePostUploadPackClient) Recv() (*PostUploadPackResponse, error) { - m := new(PostUploadPackResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *smartHTTPServiceClient) PostReceivePack(ctx context.Context, opts ...grpc.CallOption) (SmartHTTPService_PostReceivePackClient, error) { - stream, err := grpc.NewClientStream(ctx, &_SmartHTTPService_serviceDesc.Streams[3], c.cc, "/gitaly.SmartHTTPService/PostReceivePack", opts...) - if err != nil { - return nil, err - } - x := &smartHTTPServicePostReceivePackClient{stream} - return x, nil -} - -type SmartHTTPService_PostReceivePackClient interface { - Send(*PostReceivePackRequest) error - Recv() (*PostReceivePackResponse, error) - grpc.ClientStream -} - -type smartHTTPServicePostReceivePackClient struct { - grpc.ClientStream -} - -func (x *smartHTTPServicePostReceivePackClient) Send(m *PostReceivePackRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *smartHTTPServicePostReceivePackClient) Recv() (*PostReceivePackResponse, error) { - m := new(PostReceivePackResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Server API for SmartHTTPService service - -type SmartHTTPServiceServer interface { - // The response body for GET /info/refs?service=git-upload-pack - InfoRefsUploadPack(*InfoRefsRequest, SmartHTTPService_InfoRefsUploadPackServer) error - // The response body for GET /info/refs?service=git-receive-pack - InfoRefsReceivePack(*InfoRefsRequest, SmartHTTPService_InfoRefsReceivePackServer) error - // Request and response body for POST /upload-pack - PostUploadPack(SmartHTTPService_PostUploadPackServer) error - // Request and response body for POST /receive-pack - PostReceivePack(SmartHTTPService_PostReceivePackServer) error -} - -func RegisterSmartHTTPServiceServer(s *grpc.Server, srv SmartHTTPServiceServer) { - s.RegisterService(&_SmartHTTPService_serviceDesc, srv) -} - -func _SmartHTTPService_InfoRefsUploadPack_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(InfoRefsRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(SmartHTTPServiceServer).InfoRefsUploadPack(m, &smartHTTPServiceInfoRefsUploadPackServer{stream}) -} - -type SmartHTTPService_InfoRefsUploadPackServer interface { - Send(*InfoRefsResponse) error - grpc.ServerStream -} - -type smartHTTPServiceInfoRefsUploadPackServer struct { - grpc.ServerStream -} - -func (x *smartHTTPServiceInfoRefsUploadPackServer) Send(m *InfoRefsResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _SmartHTTPService_InfoRefsReceivePack_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(InfoRefsRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(SmartHTTPServiceServer).InfoRefsReceivePack(m, &smartHTTPServiceInfoRefsReceivePackServer{stream}) -} - -type SmartHTTPService_InfoRefsReceivePackServer interface { - Send(*InfoRefsResponse) error - grpc.ServerStream -} - -type smartHTTPServiceInfoRefsReceivePackServer struct { - grpc.ServerStream -} - -func (x *smartHTTPServiceInfoRefsReceivePackServer) Send(m *InfoRefsResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _SmartHTTPService_PostUploadPack_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(SmartHTTPServiceServer).PostUploadPack(&smartHTTPServicePostUploadPackServer{stream}) -} - -type SmartHTTPService_PostUploadPackServer interface { - Send(*PostUploadPackResponse) error - Recv() (*PostUploadPackRequest, error) - grpc.ServerStream -} - -type smartHTTPServicePostUploadPackServer struct { - grpc.ServerStream -} - -func (x *smartHTTPServicePostUploadPackServer) Send(m *PostUploadPackResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *smartHTTPServicePostUploadPackServer) Recv() (*PostUploadPackRequest, error) { - m := new(PostUploadPackRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _SmartHTTPService_PostReceivePack_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(SmartHTTPServiceServer).PostReceivePack(&smartHTTPServicePostReceivePackServer{stream}) -} - -type SmartHTTPService_PostReceivePackServer interface { - Send(*PostReceivePackResponse) error - Recv() (*PostReceivePackRequest, error) - grpc.ServerStream -} - -type smartHTTPServicePostReceivePackServer struct { - grpc.ServerStream -} - -func (x *smartHTTPServicePostReceivePackServer) Send(m *PostReceivePackResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *smartHTTPServicePostReceivePackServer) Recv() (*PostReceivePackRequest, error) { - m := new(PostReceivePackRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -var _SmartHTTPService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.SmartHTTPService", - HandlerType: (*SmartHTTPServiceServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "InfoRefsUploadPack", - Handler: _SmartHTTPService_InfoRefsUploadPack_Handler, - ServerStreams: true, - }, - { - StreamName: "InfoRefsReceivePack", - Handler: _SmartHTTPService_InfoRefsReceivePack_Handler, - ServerStreams: true, - }, - { - StreamName: "PostUploadPack", - Handler: _SmartHTTPService_PostUploadPack_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "PostReceivePack", - Handler: _SmartHTTPService_PostReceivePack_Handler, - ServerStreams: true, - ClientStreams: true, - }, - }, - Metadata: "smarthttp.proto", -} - -func init() { proto.RegisterFile("smarthttp.proto", fileDescriptor13) } - -var fileDescriptor13 = []byte{ - // 423 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x53, 0xd1, 0x8a, 0xd3, 0x40, - 0x14, 0x75, 0xd2, 0x6e, 0x65, 0x6f, 0xa3, 0x2d, 0x77, 0xd1, 0x0d, 0x01, 0xdd, 0x1a, 0x41, 0x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e1, 0xce, 0x8f, 0xed, 0xe3, 0xf2, 0xcf, - 0x3a, 0xfb, 0xdb, 0xcc, 0x9f, 0x07, 0xe5, 0x6a, 0xdf, 0xfc, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xf1, - 0x46, 0x34, 0x66, 0x70, 0x04, 0x00, 0x00, -} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/ssh.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/ssh.pb.go deleted file mode 100644 index a4f2fe5..0000000 --- a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/ssh.pb.go +++ /dev/null @@ -1,549 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: ssh.proto - -package gitaly - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -type SSHUploadPackRequest struct { - // 'repository' must be present in the first message. - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - // A chunk of raw data to be copied to 'git upload-pack' standard input - Stdin []byte `protobuf:"bytes,2,opt,name=stdin,proto3" json:"stdin,omitempty"` - // Parameters to use with git -c (key=value pairs) - GitConfigOptions []string `protobuf:"bytes,4,rep,name=git_config_options,json=gitConfigOptions" json:"git_config_options,omitempty"` - // Git protocol version - GitProtocol string `protobuf:"bytes,5,opt,name=git_protocol,json=gitProtocol" json:"git_protocol,omitempty"` -} - -func (m *SSHUploadPackRequest) Reset() { *m = SSHUploadPackRequest{} } -func (m *SSHUploadPackRequest) String() string { return proto.CompactTextString(m) } -func (*SSHUploadPackRequest) ProtoMessage() {} -func (*SSHUploadPackRequest) Descriptor() ([]byte, []int) { return fileDescriptor14, []int{0} } - -func (m *SSHUploadPackRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *SSHUploadPackRequest) GetStdin() []byte { - if m != nil { - return m.Stdin - } - return nil -} - -func (m *SSHUploadPackRequest) GetGitConfigOptions() []string { - if m != nil { - return m.GitConfigOptions - } - return nil -} - -func (m *SSHUploadPackRequest) GetGitProtocol() string { - if m != nil { - return m.GitProtocol - } - return "" -} - -type SSHUploadPackResponse struct { - // A chunk of raw data from 'git upload-pack' standard output - Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` - // A chunk of raw data from 'git upload-pack' standard error - Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` - // This field may be nil. This is intentional: only when the remote - // command has finished can we return its exit status. - ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus" json:"exit_status,omitempty"` -} - -func (m *SSHUploadPackResponse) Reset() { *m = SSHUploadPackResponse{} } -func (m *SSHUploadPackResponse) String() string { return proto.CompactTextString(m) } -func (*SSHUploadPackResponse) ProtoMessage() {} -func (*SSHUploadPackResponse) Descriptor() ([]byte, []int) { return fileDescriptor14, []int{1} } - -func (m *SSHUploadPackResponse) GetStdout() []byte { - if m != nil { - return m.Stdout - } - return nil -} - -func (m *SSHUploadPackResponse) GetStderr() []byte { - if m != nil { - return m.Stderr - } - return nil -} - -func (m *SSHUploadPackResponse) GetExitStatus() *ExitStatus { - if m != nil { - return m.ExitStatus - } - return nil -} - -type SSHReceivePackRequest struct { - // 'repository' must be present in the first message. - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - // A chunk of raw data to be copied to 'git upload-pack' standard input - Stdin []byte `protobuf:"bytes,2,opt,name=stdin,proto3" json:"stdin,omitempty"` - // Contents of GL_ID, GL_REPOSITORY, and GL_USERNAME environment variables - // for 'git receive-pack' - GlId string `protobuf:"bytes,3,opt,name=gl_id,json=glId" json:"gl_id,omitempty"` - GlRepository string `protobuf:"bytes,4,opt,name=gl_repository,json=glRepository" json:"gl_repository,omitempty"` - GlUsername string `protobuf:"bytes,5,opt,name=gl_username,json=glUsername" json:"gl_username,omitempty"` - // Git protocol version - GitProtocol string `protobuf:"bytes,6,opt,name=git_protocol,json=gitProtocol" json:"git_protocol,omitempty"` - // Parameters to use with git -c (key=value pairs) - GitConfigOptions []string `protobuf:"bytes,7,rep,name=git_config_options,json=gitConfigOptions" json:"git_config_options,omitempty"` -} - -func (m *SSHReceivePackRequest) Reset() { *m = SSHReceivePackRequest{} } -func (m *SSHReceivePackRequest) String() string { return proto.CompactTextString(m) } -func (*SSHReceivePackRequest) ProtoMessage() {} -func (*SSHReceivePackRequest) Descriptor() ([]byte, []int) { return fileDescriptor14, []int{2} } - -func (m *SSHReceivePackRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *SSHReceivePackRequest) GetStdin() []byte { - if m != nil { - return m.Stdin - } - return nil -} - -func (m *SSHReceivePackRequest) GetGlId() string { - if m != nil { - return m.GlId - } - return "" -} - -func (m *SSHReceivePackRequest) GetGlRepository() string { - if m != nil { - return m.GlRepository - } - return "" -} - -func (m *SSHReceivePackRequest) GetGlUsername() string { - if m != nil { - return m.GlUsername - } - return "" -} - -func (m *SSHReceivePackRequest) GetGitProtocol() string { - if m != nil { - return m.GitProtocol - } - return "" -} - -func (m *SSHReceivePackRequest) GetGitConfigOptions() []string { - if m != nil { - return m.GitConfigOptions - } - return nil -} - -type SSHReceivePackResponse struct { - // A chunk of raw data from 'git receive-pack' standard output - Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` - // A chunk of raw data from 'git receive-pack' standard error - Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` - // This field may be nil. This is intentional: only when the remote - // command has finished can we return its exit status. - ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus" json:"exit_status,omitempty"` -} - -func (m *SSHReceivePackResponse) Reset() { *m = SSHReceivePackResponse{} } -func (m *SSHReceivePackResponse) String() string { return proto.CompactTextString(m) } -func (*SSHReceivePackResponse) ProtoMessage() {} -func (*SSHReceivePackResponse) Descriptor() ([]byte, []int) { return fileDescriptor14, []int{3} } - -func (m *SSHReceivePackResponse) GetStdout() []byte { - if m != nil { - return m.Stdout - } - return nil -} - -func (m *SSHReceivePackResponse) GetStderr() []byte { - if m != nil { - return m.Stderr - } - return nil -} - -func (m *SSHReceivePackResponse) GetExitStatus() *ExitStatus { - if m != nil { - return m.ExitStatus - } - return nil -} - -type SSHUploadArchiveRequest struct { - // 'repository' must be present in the first message. - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - // A chunk of raw data to be copied to 'git upload-archive' standard input - Stdin []byte `protobuf:"bytes,2,opt,name=stdin,proto3" json:"stdin,omitempty"` -} - -func (m *SSHUploadArchiveRequest) Reset() { *m = SSHUploadArchiveRequest{} } -func (m *SSHUploadArchiveRequest) String() string { return proto.CompactTextString(m) } -func (*SSHUploadArchiveRequest) ProtoMessage() {} -func (*SSHUploadArchiveRequest) Descriptor() ([]byte, []int) { return fileDescriptor14, []int{4} } - -func (m *SSHUploadArchiveRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *SSHUploadArchiveRequest) GetStdin() []byte { - if m != nil { - return m.Stdin - } - return nil -} - -type SSHUploadArchiveResponse struct { - // A chunk of raw data from 'git upload-archive' standard output - Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` - // A chunk of raw data from 'git upload-archive' standard error - Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` - // This value will only be set on the last message - ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus" json:"exit_status,omitempty"` -} - -func (m *SSHUploadArchiveResponse) Reset() { *m = SSHUploadArchiveResponse{} } -func (m *SSHUploadArchiveResponse) String() string { return proto.CompactTextString(m) } -func (*SSHUploadArchiveResponse) ProtoMessage() {} -func (*SSHUploadArchiveResponse) Descriptor() ([]byte, []int) { return fileDescriptor14, []int{5} } - -func (m *SSHUploadArchiveResponse) GetStdout() []byte { - if m != nil { - return m.Stdout - } - return nil -} - -func (m *SSHUploadArchiveResponse) GetStderr() []byte { - if m != nil { - return m.Stderr - } - return nil -} - -func (m *SSHUploadArchiveResponse) GetExitStatus() *ExitStatus { - if m != nil { - return m.ExitStatus - } - return nil -} - -func init() { - proto.RegisterType((*SSHUploadPackRequest)(nil), "gitaly.SSHUploadPackRequest") - proto.RegisterType((*SSHUploadPackResponse)(nil), "gitaly.SSHUploadPackResponse") - proto.RegisterType((*SSHReceivePackRequest)(nil), "gitaly.SSHReceivePackRequest") - proto.RegisterType((*SSHReceivePackResponse)(nil), "gitaly.SSHReceivePackResponse") - proto.RegisterType((*SSHUploadArchiveRequest)(nil), "gitaly.SSHUploadArchiveRequest") - proto.RegisterType((*SSHUploadArchiveResponse)(nil), "gitaly.SSHUploadArchiveResponse") -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for SSHService service - -type SSHServiceClient interface { - // To forward 'git upload-pack' to Gitaly for SSH sessions - SSHUploadPack(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHUploadPackClient, error) - // To forward 'git receive-pack' to Gitaly for SSH sessions - SSHReceivePack(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHReceivePackClient, error) - // To forward 'git upload-archive' to Gitaly for SSH sessions - SSHUploadArchive(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHUploadArchiveClient, error) -} - -type sSHServiceClient struct { - cc *grpc.ClientConn -} - -func NewSSHServiceClient(cc *grpc.ClientConn) SSHServiceClient { - return &sSHServiceClient{cc} -} - -func (c *sSHServiceClient) SSHUploadPack(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHUploadPackClient, error) { - stream, err := grpc.NewClientStream(ctx, &_SSHService_serviceDesc.Streams[0], c.cc, "/gitaly.SSHService/SSHUploadPack", opts...) - if err != nil { - return nil, err - } - x := &sSHServiceSSHUploadPackClient{stream} - return x, nil -} - -type SSHService_SSHUploadPackClient interface { - Send(*SSHUploadPackRequest) error - Recv() (*SSHUploadPackResponse, error) - grpc.ClientStream -} - -type sSHServiceSSHUploadPackClient struct { - grpc.ClientStream -} - -func (x *sSHServiceSSHUploadPackClient) Send(m *SSHUploadPackRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *sSHServiceSSHUploadPackClient) Recv() (*SSHUploadPackResponse, error) { - m := new(SSHUploadPackResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *sSHServiceClient) SSHReceivePack(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHReceivePackClient, error) { - stream, err := grpc.NewClientStream(ctx, &_SSHService_serviceDesc.Streams[1], c.cc, "/gitaly.SSHService/SSHReceivePack", opts...) - if err != nil { - return nil, err - } - x := &sSHServiceSSHReceivePackClient{stream} - return x, nil -} - -type SSHService_SSHReceivePackClient interface { - Send(*SSHReceivePackRequest) error - Recv() (*SSHReceivePackResponse, error) - grpc.ClientStream -} - -type sSHServiceSSHReceivePackClient struct { - grpc.ClientStream -} - -func (x *sSHServiceSSHReceivePackClient) Send(m *SSHReceivePackRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *sSHServiceSSHReceivePackClient) Recv() (*SSHReceivePackResponse, error) { - m := new(SSHReceivePackResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *sSHServiceClient) SSHUploadArchive(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHUploadArchiveClient, error) { - stream, err := grpc.NewClientStream(ctx, &_SSHService_serviceDesc.Streams[2], c.cc, "/gitaly.SSHService/SSHUploadArchive", opts...) - if err != nil { - return nil, err - } - x := &sSHServiceSSHUploadArchiveClient{stream} - return x, nil -} - -type SSHService_SSHUploadArchiveClient interface { - Send(*SSHUploadArchiveRequest) error - Recv() (*SSHUploadArchiveResponse, error) - grpc.ClientStream -} - -type sSHServiceSSHUploadArchiveClient struct { - grpc.ClientStream -} - -func (x *sSHServiceSSHUploadArchiveClient) Send(m *SSHUploadArchiveRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *sSHServiceSSHUploadArchiveClient) Recv() (*SSHUploadArchiveResponse, error) { - m := new(SSHUploadArchiveResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Server API for SSHService service - -type SSHServiceServer interface { - // To forward 'git upload-pack' to Gitaly for SSH sessions - SSHUploadPack(SSHService_SSHUploadPackServer) error - // To forward 'git receive-pack' to Gitaly for SSH sessions - SSHReceivePack(SSHService_SSHReceivePackServer) error - // To forward 'git upload-archive' to Gitaly for SSH sessions - SSHUploadArchive(SSHService_SSHUploadArchiveServer) error -} - -func RegisterSSHServiceServer(s *grpc.Server, srv SSHServiceServer) { - s.RegisterService(&_SSHService_serviceDesc, srv) -} - -func _SSHService_SSHUploadPack_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(SSHServiceServer).SSHUploadPack(&sSHServiceSSHUploadPackServer{stream}) -} - -type SSHService_SSHUploadPackServer interface { - Send(*SSHUploadPackResponse) error - Recv() (*SSHUploadPackRequest, error) - grpc.ServerStream -} - -type sSHServiceSSHUploadPackServer struct { - grpc.ServerStream -} - -func (x *sSHServiceSSHUploadPackServer) Send(m *SSHUploadPackResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *sSHServiceSSHUploadPackServer) Recv() (*SSHUploadPackRequest, error) { - m := new(SSHUploadPackRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _SSHService_SSHReceivePack_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(SSHServiceServer).SSHReceivePack(&sSHServiceSSHReceivePackServer{stream}) -} - -type SSHService_SSHReceivePackServer interface { - Send(*SSHReceivePackResponse) error - Recv() (*SSHReceivePackRequest, error) - grpc.ServerStream -} - -type sSHServiceSSHReceivePackServer struct { - grpc.ServerStream -} - -func (x *sSHServiceSSHReceivePackServer) Send(m *SSHReceivePackResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *sSHServiceSSHReceivePackServer) Recv() (*SSHReceivePackRequest, error) { - m := new(SSHReceivePackRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _SSHService_SSHUploadArchive_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(SSHServiceServer).SSHUploadArchive(&sSHServiceSSHUploadArchiveServer{stream}) -} - -type SSHService_SSHUploadArchiveServer interface { - Send(*SSHUploadArchiveResponse) error - Recv() (*SSHUploadArchiveRequest, error) - grpc.ServerStream -} - -type sSHServiceSSHUploadArchiveServer struct { - grpc.ServerStream -} - -func (x *sSHServiceSSHUploadArchiveServer) Send(m *SSHUploadArchiveResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *sSHServiceSSHUploadArchiveServer) Recv() (*SSHUploadArchiveRequest, error) { - m := new(SSHUploadArchiveRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -var _SSHService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.SSHService", - HandlerType: (*SSHServiceServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "SSHUploadPack", - Handler: _SSHService_SSHUploadPack_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "SSHReceivePack", - Handler: _SSHService_SSHReceivePack_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "SSHUploadArchive", - Handler: _SSHService_SSHUploadArchive_Handler, - ServerStreams: true, - ClientStreams: true, - }, - }, - Metadata: "ssh.proto", -} - -func init() { proto.RegisterFile("ssh.proto", fileDescriptor14) } - -var fileDescriptor14 = []byte{ - // 452 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 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 0x00, 0x88, 0xe3, 0x8b, 0x18, 0xd5, 0x96, 0x67, 0x48, 0x28, 0x1c, 0xb5, 0x5e, 0x00, 0x79, - 0xf4, 0xe7, 0xff, 0xdb, 0x1e, 0xfa, 0xfc, 0x71, 0x0f, 0x5a, 0x6d, 0x10, 0xde, 0x89, 0x9c, 0x17, - 0x0e, 0x59, 0xc1, 0xfd, 0xb6, 0x8f, 0xa4, 0xf9, 0x5b, 0xf7, 0xdc, 0xe7, 0x4f, 0xfa, 0xe0, 0x16, - 0xed, 0x7b, 0x98, 0xed, 0x4b, 0x47, 0xce, 0x3a, 0xf3, 0xb4, 0x9d, 0x9b, 0x07, 0xfd, 0x05, 0x4d, - 0xf2, 0x0f, 0x63, 0x7b, 0xc6, 0xe7, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x1e, 0x98, 0x8e, 0xd7, - 0x04, 0x05, 0x00, 0x00, -} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/storage.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/storage.pb.go deleted file mode 100644 index e106695..0000000 --- a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/storage.pb.go +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: storage.proto - -package gitaly - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -type DeleteAllRepositoriesRequest struct { - StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName" json:"storage_name,omitempty"` -} - -func (m *DeleteAllRepositoriesRequest) Reset() { *m = DeleteAllRepositoriesRequest{} } -func (m *DeleteAllRepositoriesRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteAllRepositoriesRequest) ProtoMessage() {} -func (*DeleteAllRepositoriesRequest) Descriptor() ([]byte, []int) { return fileDescriptor15, []int{0} } - -func (m *DeleteAllRepositoriesRequest) GetStorageName() string { - if m != nil { - return m.StorageName - } - return "" -} - -type DeleteAllRepositoriesResponse struct { -} - -func (m *DeleteAllRepositoriesResponse) Reset() { *m = DeleteAllRepositoriesResponse{} } -func (m *DeleteAllRepositoriesResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteAllRepositoriesResponse) ProtoMessage() {} -func (*DeleteAllRepositoriesResponse) Descriptor() ([]byte, []int) { return fileDescriptor15, []int{1} } - -func init() { - proto.RegisterType((*DeleteAllRepositoriesRequest)(nil), "gitaly.DeleteAllRepositoriesRequest") - proto.RegisterType((*DeleteAllRepositoriesResponse)(nil), "gitaly.DeleteAllRepositoriesResponse") -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for StorageService service - -type StorageServiceClient interface { - DeleteAllRepositories(ctx context.Context, in *DeleteAllRepositoriesRequest, opts ...grpc.CallOption) (*DeleteAllRepositoriesResponse, error) -} - -type storageServiceClient struct { - cc *grpc.ClientConn -} - -func NewStorageServiceClient(cc *grpc.ClientConn) StorageServiceClient { - return &storageServiceClient{cc} -} - -func (c *storageServiceClient) DeleteAllRepositories(ctx context.Context, in *DeleteAllRepositoriesRequest, opts ...grpc.CallOption) (*DeleteAllRepositoriesResponse, error) { - out := new(DeleteAllRepositoriesResponse) - err := grpc.Invoke(ctx, "/gitaly.StorageService/DeleteAllRepositories", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for StorageService service - -type StorageServiceServer interface { - DeleteAllRepositories(context.Context, *DeleteAllRepositoriesRequest) (*DeleteAllRepositoriesResponse, error) -} - -func RegisterStorageServiceServer(s *grpc.Server, srv StorageServiceServer) { - s.RegisterService(&_StorageService_serviceDesc, srv) -} - -func _StorageService_DeleteAllRepositories_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteAllRepositoriesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(StorageServiceServer).DeleteAllRepositories(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.StorageService/DeleteAllRepositories", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(StorageServiceServer).DeleteAllRepositories(ctx, req.(*DeleteAllRepositoriesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _StorageService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.StorageService", - HandlerType: (*StorageServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "DeleteAllRepositories", - Handler: _StorageService_DeleteAllRepositories_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "storage.proto", -} - -func init() { proto.RegisterFile("storage.proto", fileDescriptor15) } - -var fileDescriptor15 = []byte{ - // 159 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2d, 0x2e, 0xc9, 0x2f, - 0x4a, 0x4c, 0x4f, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x4b, 0xcf, 0x2c, 0x49, 0xcc, - 0xa9, 0x54, 0x72, 0xe4, 0x92, 0x71, 0x49, 0xcd, 0x49, 0x2d, 0x49, 0x75, 0xcc, 0xc9, 0x09, 0x4a, - 0x2d, 0xc8, 0x2f, 0xce, 0x2c, 0xc9, 0x2f, 0xca, 0x4c, 0x2d, 0x0e, 0x4a, 0x2d, 0x2c, 0x4d, 0x2d, - 0x2e, 0x11, 0x52, 0xe4, 0xe2, 0x81, 0x6a, 0x8c, 0xcf, 0x4b, 0xcc, 0x4d, 0x95, 0x60, 0x54, 0x60, - 0xd4, 0xe0, 0x0c, 0xe2, 0x86, 0x8a, 0xf9, 0x25, 0xe6, 0xa6, 0x2a, 0xc9, 0x73, 0xc9, 0xe2, 0x30, - 0xa2, 0xb8, 0x20, 0x3f, 0xaf, 0x38, 0xd5, 0xa8, 0x82, 0x8b, 0x2f, 0x18, 0xa2, 0x3e, 0x38, 0xb5, - 0xa8, 0x2c, 0x33, 0x39, 0x55, 0x28, 0x8d, 0x4b, 0x14, 0xab, 0x16, 0x21, 0x15, 0x3d, 0x88, 0xbb, - 0xf4, 0xf0, 0x39, 0x4a, 0x4a, 0x95, 0x80, 0x2a, 0x88, 0xbd, 0x4a, 0x0c, 0x49, 0x6c, 0x60, 0xcf, - 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x3d, 0x21, 0xd8, 0x88, 0xfd, 0x00, 0x00, 0x00, -} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/wiki.pb.go b/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/wiki.pb.go deleted file mode 100644 index 4930440..0000000 --- a/go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/wiki.pb.go +++ /dev/null @@ -1,1236 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: wiki.proto - -package gitaly - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -type WikiCommitDetails struct { - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Email []byte `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` - Message []byte `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` - UserId int32 `protobuf:"varint,4,opt,name=user_id,json=userId" json:"user_id,omitempty"` - UserName []byte `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` -} - -func (m *WikiCommitDetails) Reset() { *m = WikiCommitDetails{} } -func (m *WikiCommitDetails) String() string { return proto.CompactTextString(m) } -func (*WikiCommitDetails) ProtoMessage() {} -func (*WikiCommitDetails) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{0} } - -func (m *WikiCommitDetails) GetName() []byte { - if m != nil { - return m.Name - } - return nil -} - -func (m *WikiCommitDetails) GetEmail() []byte { - if m != nil { - return m.Email - } - return nil -} - -func (m *WikiCommitDetails) GetMessage() []byte { - if m != nil { - return m.Message - } - return nil -} - -func (m *WikiCommitDetails) GetUserId() int32 { - if m != nil { - return m.UserId - } - return 0 -} - -func (m *WikiCommitDetails) GetUserName() []byte { - if m != nil { - return m.UserName - } - return nil -} - -type WikiPageVersion struct { - Commit *GitCommit `protobuf:"bytes,1,opt,name=commit" json:"commit,omitempty"` - Format string `protobuf:"bytes,2,opt,name=format" json:"format,omitempty"` -} - -func (m *WikiPageVersion) Reset() { *m = WikiPageVersion{} } -func (m *WikiPageVersion) String() string { return proto.CompactTextString(m) } -func (*WikiPageVersion) ProtoMessage() {} -func (*WikiPageVersion) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{1} } - -func (m *WikiPageVersion) GetCommit() *GitCommit { - if m != nil { - return m.Commit - } - return nil -} - -func (m *WikiPageVersion) GetFormat() string { - if m != nil { - return m.Format - } - return "" -} - -type WikiPage struct { - // These fields are only present in the first message of a WikiPage stream - Version *WikiPageVersion `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"` - Format string `protobuf:"bytes,2,opt,name=format" json:"format,omitempty"` - Title []byte `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` - UrlPath string `protobuf:"bytes,4,opt,name=url_path,json=urlPath" json:"url_path,omitempty"` - Path []byte `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` - Name []byte `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` - Historical bool `protobuf:"varint,7,opt,name=historical" json:"historical,omitempty"` - // This field is present in all messages of a WikiPage stream - RawData []byte `protobuf:"bytes,8,opt,name=raw_data,json=rawData,proto3" json:"raw_data,omitempty"` -} - -func (m *WikiPage) Reset() { *m = WikiPage{} } -func (m *WikiPage) String() string { return proto.CompactTextString(m) } -func (*WikiPage) ProtoMessage() {} -func (*WikiPage) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{2} } - -func (m *WikiPage) GetVersion() *WikiPageVersion { - if m != nil { - return m.Version - } - return nil -} - -func (m *WikiPage) GetFormat() string { - if m != nil { - return m.Format - } - return "" -} - -func (m *WikiPage) GetTitle() []byte { - if m != nil { - return m.Title - } - return nil -} - -func (m *WikiPage) GetUrlPath() string { - if m != nil { - return m.UrlPath - } - return "" -} - -func (m *WikiPage) GetPath() []byte { - if m != nil { - return m.Path - } - return nil -} - -func (m *WikiPage) GetName() []byte { - if m != nil { - return m.Name - } - return nil -} - -func (m *WikiPage) GetHistorical() bool { - if m != nil { - return m.Historical - } - return false -} - -func (m *WikiPage) GetRawData() []byte { - if m != nil { - return m.RawData - } - return nil -} - -type WikiGetPageVersionsRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - PagePath []byte `protobuf:"bytes,2,opt,name=page_path,json=pagePath,proto3" json:"page_path,omitempty"` - Page int32 `protobuf:"varint,3,opt,name=page" json:"page,omitempty"` - PerPage int32 `protobuf:"varint,4,opt,name=per_page,json=perPage" json:"per_page,omitempty"` -} - -func (m *WikiGetPageVersionsRequest) Reset() { *m = WikiGetPageVersionsRequest{} } -func (m *WikiGetPageVersionsRequest) String() string { return proto.CompactTextString(m) } -func (*WikiGetPageVersionsRequest) ProtoMessage() {} -func (*WikiGetPageVersionsRequest) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{3} } - -func (m *WikiGetPageVersionsRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *WikiGetPageVersionsRequest) GetPagePath() []byte { - if m != nil { - return m.PagePath - } - return nil -} - -func (m *WikiGetPageVersionsRequest) GetPage() int32 { - if m != nil { - return m.Page - } - return 0 -} - -func (m *WikiGetPageVersionsRequest) GetPerPage() int32 { - if m != nil { - return m.PerPage - } - return 0 -} - -type WikiGetPageVersionsResponse struct { - Versions []*WikiPageVersion `protobuf:"bytes,1,rep,name=versions" json:"versions,omitempty"` -} - -func (m *WikiGetPageVersionsResponse) Reset() { *m = WikiGetPageVersionsResponse{} } -func (m *WikiGetPageVersionsResponse) String() string { return proto.CompactTextString(m) } -func (*WikiGetPageVersionsResponse) ProtoMessage() {} -func (*WikiGetPageVersionsResponse) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{4} } - -func (m *WikiGetPageVersionsResponse) GetVersions() []*WikiPageVersion { - if m != nil { - return m.Versions - } - return nil -} - -// This message is sent in a stream because the 'content' field may be large. -type WikiWritePageRequest struct { - // These following fields are only present in the first message. - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Format string `protobuf:"bytes,3,opt,name=format" json:"format,omitempty"` - CommitDetails *WikiCommitDetails `protobuf:"bytes,4,opt,name=commit_details,json=commitDetails" json:"commit_details,omitempty"` - // This field is present in all messages. - Content []byte `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` -} - -func (m *WikiWritePageRequest) Reset() { *m = WikiWritePageRequest{} } -func (m *WikiWritePageRequest) String() string { return proto.CompactTextString(m) } -func (*WikiWritePageRequest) ProtoMessage() {} -func (*WikiWritePageRequest) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{5} } - -func (m *WikiWritePageRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *WikiWritePageRequest) GetName() []byte { - if m != nil { - return m.Name - } - return nil -} - -func (m *WikiWritePageRequest) GetFormat() string { - if m != nil { - return m.Format - } - return "" -} - -func (m *WikiWritePageRequest) GetCommitDetails() *WikiCommitDetails { - if m != nil { - return m.CommitDetails - } - return nil -} - -func (m *WikiWritePageRequest) GetContent() []byte { - if m != nil { - return m.Content - } - return nil -} - -type WikiWritePageResponse struct { - DuplicateError []byte `protobuf:"bytes,1,opt,name=duplicate_error,json=duplicateError,proto3" json:"duplicate_error,omitempty"` -} - -func (m *WikiWritePageResponse) Reset() { *m = WikiWritePageResponse{} } -func (m *WikiWritePageResponse) String() string { return proto.CompactTextString(m) } -func (*WikiWritePageResponse) ProtoMessage() {} -func (*WikiWritePageResponse) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{6} } - -func (m *WikiWritePageResponse) GetDuplicateError() []byte { - if m != nil { - return m.DuplicateError - } - return nil -} - -type WikiUpdatePageRequest struct { - // There fields are only present in the first message of the stream - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - PagePath []byte `protobuf:"bytes,2,opt,name=page_path,json=pagePath,proto3" json:"page_path,omitempty"` - Title []byte `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` - Format string `protobuf:"bytes,4,opt,name=format" json:"format,omitempty"` - CommitDetails *WikiCommitDetails `protobuf:"bytes,5,opt,name=commit_details,json=commitDetails" json:"commit_details,omitempty"` - // This field is present in all messages - Content []byte `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` -} - -func (m *WikiUpdatePageRequest) Reset() { *m = WikiUpdatePageRequest{} } -func (m *WikiUpdatePageRequest) String() string { return proto.CompactTextString(m) } -func (*WikiUpdatePageRequest) ProtoMessage() {} -func (*WikiUpdatePageRequest) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{7} } - -func (m *WikiUpdatePageRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *WikiUpdatePageRequest) GetPagePath() []byte { - if m != nil { - return m.PagePath - } - return nil -} - -func (m *WikiUpdatePageRequest) GetTitle() []byte { - if m != nil { - return m.Title - } - return nil -} - -func (m *WikiUpdatePageRequest) GetFormat() string { - if m != nil { - return m.Format - } - return "" -} - -func (m *WikiUpdatePageRequest) GetCommitDetails() *WikiCommitDetails { - if m != nil { - return m.CommitDetails - } - return nil -} - -func (m *WikiUpdatePageRequest) GetContent() []byte { - if m != nil { - return m.Content - } - return nil -} - -type WikiUpdatePageResponse struct { - Error []byte `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *WikiUpdatePageResponse) Reset() { *m = WikiUpdatePageResponse{} } -func (m *WikiUpdatePageResponse) String() string { return proto.CompactTextString(m) } -func (*WikiUpdatePageResponse) ProtoMessage() {} -func (*WikiUpdatePageResponse) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{8} } - -func (m *WikiUpdatePageResponse) GetError() []byte { - if m != nil { - return m.Error - } - return nil -} - -type WikiDeletePageRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - PagePath []byte `protobuf:"bytes,2,opt,name=page_path,json=pagePath,proto3" json:"page_path,omitempty"` - CommitDetails *WikiCommitDetails `protobuf:"bytes,3,opt,name=commit_details,json=commitDetails" json:"commit_details,omitempty"` -} - -func (m *WikiDeletePageRequest) Reset() { *m = WikiDeletePageRequest{} } -func (m *WikiDeletePageRequest) String() string { return proto.CompactTextString(m) } -func (*WikiDeletePageRequest) ProtoMessage() {} -func (*WikiDeletePageRequest) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{9} } - -func (m *WikiDeletePageRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *WikiDeletePageRequest) GetPagePath() []byte { - if m != nil { - return m.PagePath - } - return nil -} - -func (m *WikiDeletePageRequest) GetCommitDetails() *WikiCommitDetails { - if m != nil { - return m.CommitDetails - } - return nil -} - -type WikiDeletePageResponse struct { -} - -func (m *WikiDeletePageResponse) Reset() { *m = WikiDeletePageResponse{} } -func (m *WikiDeletePageResponse) String() string { return proto.CompactTextString(m) } -func (*WikiDeletePageResponse) ProtoMessage() {} -func (*WikiDeletePageResponse) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{10} } - -type WikiFindPageRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Title []byte `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - Revision []byte `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"` - Directory []byte `protobuf:"bytes,4,opt,name=directory,proto3" json:"directory,omitempty"` -} - -func (m *WikiFindPageRequest) Reset() { *m = WikiFindPageRequest{} } -func (m *WikiFindPageRequest) String() string { return proto.CompactTextString(m) } -func (*WikiFindPageRequest) ProtoMessage() {} -func (*WikiFindPageRequest) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{11} } - -func (m *WikiFindPageRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *WikiFindPageRequest) GetTitle() []byte { - if m != nil { - return m.Title - } - return nil -} - -func (m *WikiFindPageRequest) GetRevision() []byte { - if m != nil { - return m.Revision - } - return nil -} - -func (m *WikiFindPageRequest) GetDirectory() []byte { - if m != nil { - return m.Directory - } - return nil -} - -// WikiFindPageResponse is a stream because we need multiple WikiPage -// messages to send the raw_data field. -type WikiFindPageResponse struct { - Page *WikiPage `protobuf:"bytes,1,opt,name=page" json:"page,omitempty"` -} - -func (m *WikiFindPageResponse) Reset() { *m = WikiFindPageResponse{} } -func (m *WikiFindPageResponse) String() string { return proto.CompactTextString(m) } -func (*WikiFindPageResponse) ProtoMessage() {} -func (*WikiFindPageResponse) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{12} } - -func (m *WikiFindPageResponse) GetPage() *WikiPage { - if m != nil { - return m.Page - } - return nil -} - -type WikiFindFileRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - // Optional: revision - Revision []byte `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"` -} - -func (m *WikiFindFileRequest) Reset() { *m = WikiFindFileRequest{} } -func (m *WikiFindFileRequest) String() string { return proto.CompactTextString(m) } -func (*WikiFindFileRequest) ProtoMessage() {} -func (*WikiFindFileRequest) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{13} } - -func (m *WikiFindFileRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *WikiFindFileRequest) GetName() []byte { - if m != nil { - return m.Name - } - return nil -} - -func (m *WikiFindFileRequest) GetRevision() []byte { - if m != nil { - return m.Revision - } - return nil -} - -type WikiFindFileResponse struct { - // If 'name' is empty, the file was not found. - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType" json:"mime_type,omitempty"` - RawData []byte `protobuf:"bytes,3,opt,name=raw_data,json=rawData,proto3" json:"raw_data,omitempty"` - Path []byte `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` -} - -func (m *WikiFindFileResponse) Reset() { *m = WikiFindFileResponse{} } -func (m *WikiFindFileResponse) String() string { return proto.CompactTextString(m) } -func (*WikiFindFileResponse) ProtoMessage() {} -func (*WikiFindFileResponse) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{14} } - -func (m *WikiFindFileResponse) GetName() []byte { - if m != nil { - return m.Name - } - return nil -} - -func (m *WikiFindFileResponse) GetMimeType() string { - if m != nil { - return m.MimeType - } - return "" -} - -func (m *WikiFindFileResponse) GetRawData() []byte { - if m != nil { - return m.RawData - } - return nil -} - -func (m *WikiFindFileResponse) GetPath() []byte { - if m != nil { - return m.Path - } - return nil -} - -type WikiGetAllPagesRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - // Passing 0 means no limit is applied - Limit uint32 `protobuf:"varint,2,opt,name=limit" json:"limit,omitempty"` -} - -func (m *WikiGetAllPagesRequest) Reset() { *m = WikiGetAllPagesRequest{} } -func (m *WikiGetAllPagesRequest) String() string { return proto.CompactTextString(m) } -func (*WikiGetAllPagesRequest) ProtoMessage() {} -func (*WikiGetAllPagesRequest) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{15} } - -func (m *WikiGetAllPagesRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *WikiGetAllPagesRequest) GetLimit() uint32 { - if m != nil { - return m.Limit - } - return 0 -} - -// The WikiGetAllPagesResponse stream is a concatenation of WikiPage streams -type WikiGetAllPagesResponse struct { - Page *WikiPage `protobuf:"bytes,1,opt,name=page" json:"page,omitempty"` - // When end_of_page is true it signals a change of page for the next Response message (if any) - EndOfPage bool `protobuf:"varint,2,opt,name=end_of_page,json=endOfPage" json:"end_of_page,omitempty"` -} - -func (m *WikiGetAllPagesResponse) Reset() { *m = WikiGetAllPagesResponse{} } -func (m *WikiGetAllPagesResponse) String() string { return proto.CompactTextString(m) } -func (*WikiGetAllPagesResponse) ProtoMessage() {} -func (*WikiGetAllPagesResponse) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{16} } - -func (m *WikiGetAllPagesResponse) GetPage() *WikiPage { - if m != nil { - return m.Page - } - return nil -} - -func (m *WikiGetAllPagesResponse) GetEndOfPage() bool { - if m != nil { - return m.EndOfPage - } - return false -} - -type WikiGetFormattedDataRequest struct { - Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"` - Title []byte `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - Revision []byte `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"` - Directory []byte `protobuf:"bytes,4,opt,name=directory,proto3" json:"directory,omitempty"` -} - -func (m *WikiGetFormattedDataRequest) Reset() { *m = WikiGetFormattedDataRequest{} } -func (m *WikiGetFormattedDataRequest) String() string { return proto.CompactTextString(m) } -func (*WikiGetFormattedDataRequest) ProtoMessage() {} -func (*WikiGetFormattedDataRequest) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{17} } - -func (m *WikiGetFormattedDataRequest) GetRepository() *Repository { - if m != nil { - return m.Repository - } - return nil -} - -func (m *WikiGetFormattedDataRequest) GetTitle() []byte { - if m != nil { - return m.Title - } - return nil -} - -func (m *WikiGetFormattedDataRequest) GetRevision() []byte { - if m != nil { - return m.Revision - } - return nil -} - -func (m *WikiGetFormattedDataRequest) GetDirectory() []byte { - if m != nil { - return m.Directory - } - return nil -} - -type WikiGetFormattedDataResponse struct { - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (m *WikiGetFormattedDataResponse) Reset() { *m = WikiGetFormattedDataResponse{} } -func (m *WikiGetFormattedDataResponse) String() string { return proto.CompactTextString(m) } -func (*WikiGetFormattedDataResponse) ProtoMessage() {} -func (*WikiGetFormattedDataResponse) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{18} } - -func (m *WikiGetFormattedDataResponse) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} - -func init() { - proto.RegisterType((*WikiCommitDetails)(nil), "gitaly.WikiCommitDetails") - proto.RegisterType((*WikiPageVersion)(nil), "gitaly.WikiPageVersion") - proto.RegisterType((*WikiPage)(nil), "gitaly.WikiPage") - proto.RegisterType((*WikiGetPageVersionsRequest)(nil), "gitaly.WikiGetPageVersionsRequest") - proto.RegisterType((*WikiGetPageVersionsResponse)(nil), "gitaly.WikiGetPageVersionsResponse") - proto.RegisterType((*WikiWritePageRequest)(nil), "gitaly.WikiWritePageRequest") - proto.RegisterType((*WikiWritePageResponse)(nil), "gitaly.WikiWritePageResponse") - proto.RegisterType((*WikiUpdatePageRequest)(nil), "gitaly.WikiUpdatePageRequest") - proto.RegisterType((*WikiUpdatePageResponse)(nil), "gitaly.WikiUpdatePageResponse") - proto.RegisterType((*WikiDeletePageRequest)(nil), "gitaly.WikiDeletePageRequest") - proto.RegisterType((*WikiDeletePageResponse)(nil), "gitaly.WikiDeletePageResponse") - proto.RegisterType((*WikiFindPageRequest)(nil), "gitaly.WikiFindPageRequest") - proto.RegisterType((*WikiFindPageResponse)(nil), "gitaly.WikiFindPageResponse") - proto.RegisterType((*WikiFindFileRequest)(nil), "gitaly.WikiFindFileRequest") - proto.RegisterType((*WikiFindFileResponse)(nil), "gitaly.WikiFindFileResponse") - proto.RegisterType((*WikiGetAllPagesRequest)(nil), "gitaly.WikiGetAllPagesRequest") - proto.RegisterType((*WikiGetAllPagesResponse)(nil), "gitaly.WikiGetAllPagesResponse") - proto.RegisterType((*WikiGetFormattedDataRequest)(nil), "gitaly.WikiGetFormattedDataRequest") - proto.RegisterType((*WikiGetFormattedDataResponse)(nil), "gitaly.WikiGetFormattedDataResponse") -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for WikiService service - -type WikiServiceClient interface { - WikiGetPageVersions(ctx context.Context, in *WikiGetPageVersionsRequest, opts ...grpc.CallOption) (WikiService_WikiGetPageVersionsClient, error) - WikiWritePage(ctx context.Context, opts ...grpc.CallOption) (WikiService_WikiWritePageClient, error) - WikiUpdatePage(ctx context.Context, opts ...grpc.CallOption) (WikiService_WikiUpdatePageClient, error) - WikiDeletePage(ctx context.Context, in *WikiDeletePageRequest, opts ...grpc.CallOption) (*WikiDeletePageResponse, error) - // WikiFindPage returns a stream because the page's raw_data field may be arbitrarily large. - WikiFindPage(ctx context.Context, in *WikiFindPageRequest, opts ...grpc.CallOption) (WikiService_WikiFindPageClient, error) - WikiFindFile(ctx context.Context, in *WikiFindFileRequest, opts ...grpc.CallOption) (WikiService_WikiFindFileClient, error) - WikiGetAllPages(ctx context.Context, in *WikiGetAllPagesRequest, opts ...grpc.CallOption) (WikiService_WikiGetAllPagesClient, error) - WikiGetFormattedData(ctx context.Context, in *WikiGetFormattedDataRequest, opts ...grpc.CallOption) (WikiService_WikiGetFormattedDataClient, error) -} - -type wikiServiceClient struct { - cc *grpc.ClientConn -} - -func NewWikiServiceClient(cc *grpc.ClientConn) WikiServiceClient { - return &wikiServiceClient{cc} -} - -func (c *wikiServiceClient) WikiGetPageVersions(ctx context.Context, in *WikiGetPageVersionsRequest, opts ...grpc.CallOption) (WikiService_WikiGetPageVersionsClient, error) { - stream, err := grpc.NewClientStream(ctx, &_WikiService_serviceDesc.Streams[0], c.cc, "/gitaly.WikiService/WikiGetPageVersions", opts...) - if err != nil { - return nil, err - } - x := &wikiServiceWikiGetPageVersionsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type WikiService_WikiGetPageVersionsClient interface { - Recv() (*WikiGetPageVersionsResponse, error) - grpc.ClientStream -} - -type wikiServiceWikiGetPageVersionsClient struct { - grpc.ClientStream -} - -func (x *wikiServiceWikiGetPageVersionsClient) Recv() (*WikiGetPageVersionsResponse, error) { - m := new(WikiGetPageVersionsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *wikiServiceClient) WikiWritePage(ctx context.Context, opts ...grpc.CallOption) (WikiService_WikiWritePageClient, error) { - stream, err := grpc.NewClientStream(ctx, &_WikiService_serviceDesc.Streams[1], c.cc, "/gitaly.WikiService/WikiWritePage", opts...) - if err != nil { - return nil, err - } - x := &wikiServiceWikiWritePageClient{stream} - return x, nil -} - -type WikiService_WikiWritePageClient interface { - Send(*WikiWritePageRequest) error - CloseAndRecv() (*WikiWritePageResponse, error) - grpc.ClientStream -} - -type wikiServiceWikiWritePageClient struct { - grpc.ClientStream -} - -func (x *wikiServiceWikiWritePageClient) Send(m *WikiWritePageRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *wikiServiceWikiWritePageClient) CloseAndRecv() (*WikiWritePageResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(WikiWritePageResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *wikiServiceClient) WikiUpdatePage(ctx context.Context, opts ...grpc.CallOption) (WikiService_WikiUpdatePageClient, error) { - stream, err := grpc.NewClientStream(ctx, &_WikiService_serviceDesc.Streams[2], c.cc, "/gitaly.WikiService/WikiUpdatePage", opts...) - if err != nil { - return nil, err - } - x := &wikiServiceWikiUpdatePageClient{stream} - return x, nil -} - -type WikiService_WikiUpdatePageClient interface { - Send(*WikiUpdatePageRequest) error - CloseAndRecv() (*WikiUpdatePageResponse, error) - grpc.ClientStream -} - -type wikiServiceWikiUpdatePageClient struct { - grpc.ClientStream -} - -func (x *wikiServiceWikiUpdatePageClient) Send(m *WikiUpdatePageRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *wikiServiceWikiUpdatePageClient) CloseAndRecv() (*WikiUpdatePageResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(WikiUpdatePageResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *wikiServiceClient) WikiDeletePage(ctx context.Context, in *WikiDeletePageRequest, opts ...grpc.CallOption) (*WikiDeletePageResponse, error) { - out := new(WikiDeletePageResponse) - err := grpc.Invoke(ctx, "/gitaly.WikiService/WikiDeletePage", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *wikiServiceClient) WikiFindPage(ctx context.Context, in *WikiFindPageRequest, opts ...grpc.CallOption) (WikiService_WikiFindPageClient, error) { - stream, err := grpc.NewClientStream(ctx, &_WikiService_serviceDesc.Streams[3], c.cc, "/gitaly.WikiService/WikiFindPage", opts...) - if err != nil { - return nil, err - } - x := &wikiServiceWikiFindPageClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type WikiService_WikiFindPageClient interface { - Recv() (*WikiFindPageResponse, error) - grpc.ClientStream -} - -type wikiServiceWikiFindPageClient struct { - grpc.ClientStream -} - -func (x *wikiServiceWikiFindPageClient) Recv() (*WikiFindPageResponse, error) { - m := new(WikiFindPageResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *wikiServiceClient) WikiFindFile(ctx context.Context, in *WikiFindFileRequest, opts ...grpc.CallOption) (WikiService_WikiFindFileClient, error) { - stream, err := grpc.NewClientStream(ctx, &_WikiService_serviceDesc.Streams[4], c.cc, "/gitaly.WikiService/WikiFindFile", opts...) - if err != nil { - return nil, err - } - x := &wikiServiceWikiFindFileClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type WikiService_WikiFindFileClient interface { - Recv() (*WikiFindFileResponse, error) - grpc.ClientStream -} - -type wikiServiceWikiFindFileClient struct { - grpc.ClientStream -} - -func (x *wikiServiceWikiFindFileClient) Recv() (*WikiFindFileResponse, error) { - m := new(WikiFindFileResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *wikiServiceClient) WikiGetAllPages(ctx context.Context, in *WikiGetAllPagesRequest, opts ...grpc.CallOption) (WikiService_WikiGetAllPagesClient, error) { - stream, err := grpc.NewClientStream(ctx, &_WikiService_serviceDesc.Streams[5], c.cc, "/gitaly.WikiService/WikiGetAllPages", opts...) - if err != nil { - return nil, err - } - x := &wikiServiceWikiGetAllPagesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type WikiService_WikiGetAllPagesClient interface { - Recv() (*WikiGetAllPagesResponse, error) - grpc.ClientStream -} - -type wikiServiceWikiGetAllPagesClient struct { - grpc.ClientStream -} - -func (x *wikiServiceWikiGetAllPagesClient) Recv() (*WikiGetAllPagesResponse, error) { - m := new(WikiGetAllPagesResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *wikiServiceClient) WikiGetFormattedData(ctx context.Context, in *WikiGetFormattedDataRequest, opts ...grpc.CallOption) (WikiService_WikiGetFormattedDataClient, error) { - stream, err := grpc.NewClientStream(ctx, &_WikiService_serviceDesc.Streams[6], c.cc, "/gitaly.WikiService/WikiGetFormattedData", opts...) - if err != nil { - return nil, err - } - x := &wikiServiceWikiGetFormattedDataClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type WikiService_WikiGetFormattedDataClient interface { - Recv() (*WikiGetFormattedDataResponse, error) - grpc.ClientStream -} - -type wikiServiceWikiGetFormattedDataClient struct { - grpc.ClientStream -} - -func (x *wikiServiceWikiGetFormattedDataClient) Recv() (*WikiGetFormattedDataResponse, error) { - m := new(WikiGetFormattedDataResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Server API for WikiService service - -type WikiServiceServer interface { - WikiGetPageVersions(*WikiGetPageVersionsRequest, WikiService_WikiGetPageVersionsServer) error - WikiWritePage(WikiService_WikiWritePageServer) error - WikiUpdatePage(WikiService_WikiUpdatePageServer) error - WikiDeletePage(context.Context, *WikiDeletePageRequest) (*WikiDeletePageResponse, error) - // WikiFindPage returns a stream because the page's raw_data field may be arbitrarily large. - WikiFindPage(*WikiFindPageRequest, WikiService_WikiFindPageServer) error - WikiFindFile(*WikiFindFileRequest, WikiService_WikiFindFileServer) error - WikiGetAllPages(*WikiGetAllPagesRequest, WikiService_WikiGetAllPagesServer) error - WikiGetFormattedData(*WikiGetFormattedDataRequest, WikiService_WikiGetFormattedDataServer) error -} - -func RegisterWikiServiceServer(s *grpc.Server, srv WikiServiceServer) { - s.RegisterService(&_WikiService_serviceDesc, srv) -} - -func _WikiService_WikiGetPageVersions_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(WikiGetPageVersionsRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(WikiServiceServer).WikiGetPageVersions(m, &wikiServiceWikiGetPageVersionsServer{stream}) -} - -type WikiService_WikiGetPageVersionsServer interface { - Send(*WikiGetPageVersionsResponse) error - grpc.ServerStream -} - -type wikiServiceWikiGetPageVersionsServer struct { - grpc.ServerStream -} - -func (x *wikiServiceWikiGetPageVersionsServer) Send(m *WikiGetPageVersionsResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _WikiService_WikiWritePage_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(WikiServiceServer).WikiWritePage(&wikiServiceWikiWritePageServer{stream}) -} - -type WikiService_WikiWritePageServer interface { - SendAndClose(*WikiWritePageResponse) error - Recv() (*WikiWritePageRequest, error) - grpc.ServerStream -} - -type wikiServiceWikiWritePageServer struct { - grpc.ServerStream -} - -func (x *wikiServiceWikiWritePageServer) SendAndClose(m *WikiWritePageResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *wikiServiceWikiWritePageServer) Recv() (*WikiWritePageRequest, error) { - m := new(WikiWritePageRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _WikiService_WikiUpdatePage_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(WikiServiceServer).WikiUpdatePage(&wikiServiceWikiUpdatePageServer{stream}) -} - -type WikiService_WikiUpdatePageServer interface { - SendAndClose(*WikiUpdatePageResponse) error - Recv() (*WikiUpdatePageRequest, error) - grpc.ServerStream -} - -type wikiServiceWikiUpdatePageServer struct { - grpc.ServerStream -} - -func (x *wikiServiceWikiUpdatePageServer) SendAndClose(m *WikiUpdatePageResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *wikiServiceWikiUpdatePageServer) Recv() (*WikiUpdatePageRequest, error) { - m := new(WikiUpdatePageRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _WikiService_WikiDeletePage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(WikiDeletePageRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WikiServiceServer).WikiDeletePage(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gitaly.WikiService/WikiDeletePage", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WikiServiceServer).WikiDeletePage(ctx, req.(*WikiDeletePageRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WikiService_WikiFindPage_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(WikiFindPageRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(WikiServiceServer).WikiFindPage(m, &wikiServiceWikiFindPageServer{stream}) -} - -type WikiService_WikiFindPageServer interface { - Send(*WikiFindPageResponse) error - grpc.ServerStream -} - -type wikiServiceWikiFindPageServer struct { - grpc.ServerStream -} - -func (x *wikiServiceWikiFindPageServer) Send(m *WikiFindPageResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _WikiService_WikiFindFile_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(WikiFindFileRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(WikiServiceServer).WikiFindFile(m, &wikiServiceWikiFindFileServer{stream}) -} - -type WikiService_WikiFindFileServer interface { - Send(*WikiFindFileResponse) error - grpc.ServerStream -} - -type wikiServiceWikiFindFileServer struct { - grpc.ServerStream -} - -func (x *wikiServiceWikiFindFileServer) Send(m *WikiFindFileResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _WikiService_WikiGetAllPages_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(WikiGetAllPagesRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(WikiServiceServer).WikiGetAllPages(m, &wikiServiceWikiGetAllPagesServer{stream}) -} - -type WikiService_WikiGetAllPagesServer interface { - Send(*WikiGetAllPagesResponse) error - grpc.ServerStream -} - -type wikiServiceWikiGetAllPagesServer struct { - grpc.ServerStream -} - -func (x *wikiServiceWikiGetAllPagesServer) Send(m *WikiGetAllPagesResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _WikiService_WikiGetFormattedData_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(WikiGetFormattedDataRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(WikiServiceServer).WikiGetFormattedData(m, &wikiServiceWikiGetFormattedDataServer{stream}) -} - -type WikiService_WikiGetFormattedDataServer interface { - Send(*WikiGetFormattedDataResponse) error - grpc.ServerStream -} - -type wikiServiceWikiGetFormattedDataServer struct { - grpc.ServerStream -} - -func (x *wikiServiceWikiGetFormattedDataServer) Send(m *WikiGetFormattedDataResponse) error { - return x.ServerStream.SendMsg(m) -} - -var _WikiService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gitaly.WikiService", - HandlerType: (*WikiServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "WikiDeletePage", - Handler: _WikiService_WikiDeletePage_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "WikiGetPageVersions", - Handler: _WikiService_WikiGetPageVersions_Handler, - ServerStreams: true, - }, - { - StreamName: "WikiWritePage", - Handler: _WikiService_WikiWritePage_Handler, - ClientStreams: true, - }, - { - StreamName: "WikiUpdatePage", - Handler: _WikiService_WikiUpdatePage_Handler, - ClientStreams: true, - }, - { - StreamName: "WikiFindPage", - Handler: _WikiService_WikiFindPage_Handler, - ServerStreams: true, - }, - { - StreamName: "WikiFindFile", - Handler: _WikiService_WikiFindFile_Handler, - ServerStreams: true, - }, - { - StreamName: "WikiGetAllPages", - Handler: _WikiService_WikiGetAllPages_Handler, - ServerStreams: true, - }, - { - StreamName: "WikiGetFormattedData", - Handler: _WikiService_WikiGetFormattedData_Handler, - ServerStreams: true, - }, - }, - Metadata: "wiki.proto", -} - -func init() { proto.RegisterFile("wiki.proto", fileDescriptor16) } - -var fileDescriptor16 = []byte{ - // 937 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0xcd, 0x6e, 0xe4, 0x44, - 0x10, 0x5e, 0x67, 0xfe, 0x3c, 0x95, 0x9f, 0x65, 0x9b, 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0x00, -} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly/NOTICE b/go/vendor/gitlab.com/gitlab-org/gitaly/NOTICE index dbb1e63..d07b264 100644 --- a/go/vendor/gitlab.com/gitlab-org/gitaly/NOTICE +++ b/go/vendor/gitlab.com/gitlab-org/gitaly/NOTICE @@ -156,7 +156,7 @@ ISC License Copyright (c) 2012-2016 Dave Collins -Permission to use, copy, modify, and distribute this software for any +Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. @@ -199,10 +199,7 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LICENSE - gitlab.com/gitlab-org/gitaly/vendor/github.com/golang/protobuf -Go support for Protocol Buffers - Google's data interchange format - Copyright 2010 The Go Authors. All rights reserved. -https://github.com/golang/protobuf Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are @@ -656,6 +653,17 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +LICENSE - gitlab.com/gitlab-org/gitaly/vendor/github.com/konsorten/go-windows-terminal-sequences +(The MIT License) + +Copyright (c) 2017 marvin + konsorten GmbH (open-source@konsorten.de) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LICENSE - gitlab.com/gitlab-org/gitaly/vendor/github.com/matttproud/golang_protobuf_extensions Apache License Version 2.0, January 2004 @@ -862,6 +870,31 @@ LICENSE - gitlab.com/gitlab-org/gitaly/vendor/github.com/matttproud/golang_proto NOTICE - gitlab.com/gitlab-org/gitaly/vendor/github.com/matttproud/golang_protobuf_extensions Copyright 2012 Matt T. Proud (matt.proud@gmail.com) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +LICENSE - gitlab.com/gitlab-org/gitaly/vendor/github.com/pkg/errors +Copyright (c) 2015, Dave Cheney +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LICENSE - gitlab.com/gitlab-org/gitaly/vendor/github.com/pmezard/go-difflib Copyright (c) 2013, Patrick Mezard All rights reserved. @@ -1813,6 +1846,29 @@ furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +LICENSE - gitlab.com/gitlab-org/gitaly/vendor/gitlab.com/gitlab-org/labkit +The MIT License (MIT) + +Copyright (c) 2016-2017 GitLab B.V. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly/client/address_parser.go b/go/vendor/gitlab.com/gitlab-org/gitaly/client/address_parser.go new file mode 100644 index 0000000..55969e9 --- /dev/null +++ b/go/vendor/gitlab.com/gitlab-org/gitaly/client/address_parser.go @@ -0,0 +1,24 @@ +package client + +import ( + "fmt" + "net/url" +) + +func parseAddress(rawAddress string) (canonicalAddress string, err error) { + u, err := url.Parse(rawAddress) + if err != nil { + return "", err + } + + // tcp:// addresses are a special case which `grpc.Dial` expects in a + // different format + if u.Scheme == "tcp" || u.Scheme == "tls" { + if u.Path != "" { + return "", fmt.Errorf("%s addresses should not have a path", u.Scheme) + } + return u.Host, nil + } + + return u.String(), nil +} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly/client/dial.go b/go/vendor/gitlab.com/gitlab-org/gitaly/client/dial.go index 89f2a10..d0a51c0 100644 --- a/go/vendor/gitlab.com/gitlab-org/gitaly/client/dial.go +++ b/go/vendor/gitlab.com/gitlab-org/gitaly/client/dial.go @@ -1,32 +1,36 @@ package client import ( - "fmt" - "net" + "google.golang.org/grpc/credentials" + "net/url" - "strings" - "time" "google.golang.org/grpc" ) // DefaultDialOpts hold the default DialOptions for connection to Gitaly over UNIX-socket -var DefaultDialOpts = []grpc.DialOption{ - grpc.WithInsecure(), -} +var DefaultDialOpts = []grpc.DialOption{} // Dial gitaly func Dial(rawAddress string, connOpts []grpc.DialOption) (*grpc.ClientConn, error) { - network, addr, err := parseAddress(rawAddress) + canonicalAddress, err := parseAddress(rawAddress) if err != nil { return nil, err } - connOpts = append(connOpts, - grpc.WithDialer(func(a string, timeout time.Duration) (net.Conn, error) { - return net.DialTimeout(network, a, timeout) - })) - conn, err := grpc.Dial(addr, connOpts...) + if isTLS(rawAddress) { + certPool, err := systemCertPool() + if err != nil { + return nil, err + } + + creds := credentials.NewClientTLSFromCert(certPool, "") + connOpts = append(connOpts, grpc.WithTransportCredentials(creds)) + } else { + connOpts = append(connOpts, grpc.WithInsecure()) + } + + conn, err := grpc.Dial(canonicalAddress, connOpts...) if err != nil { return nil, err } @@ -34,28 +38,7 @@ func Dial(rawAddress string, connOpts []grpc.DialOption) (*grpc.ClientConn, erro return conn, nil } -func parseAddress(rawAddress string) (network, addr string, err error) { - // Parsing unix:// URL's with url.Parse does not give the result we want - // so we do it manually. - for _, prefix := range []string{"unix://", "unix:"} { - if strings.HasPrefix(rawAddress, prefix) { - return "unix", strings.TrimPrefix(rawAddress, prefix), nil - } - } - +func isTLS(rawAddress string) bool { u, err := url.Parse(rawAddress) - if err != nil { - return "", "", err - } - - if u.Scheme != "tcp" { - return "", "", fmt.Errorf("unknown scheme: %q", rawAddress) - } - if u.Host == "" { - return "", "", fmt.Errorf("network tcp requires host: %q", rawAddress) - } - if u.Path != "" { - return "", "", fmt.Errorf("network tcp should have no path: %q", rawAddress) - } - return "tcp", u.Host, nil + return err == nil && u.Scheme == "tls" } diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly/client/pool-darwin.go b/go/vendor/gitlab.com/gitlab-org/gitaly/client/pool-darwin.go new file mode 100644 index 0000000..e392a4d --- /dev/null +++ b/go/vendor/gitlab.com/gitlab-org/gitaly/client/pool-darwin.go @@ -0,0 +1,58 @@ +// +build darwin + +package client + +import ( + "crypto/x509" + "io/ioutil" + "os" + "path" +) + +// systemCertPool circumvents the fact that Go on macOS does not support +// SSL_CERT_{DIR,FILE}. +func systemCertPool() (*x509.CertPool, error) { + var certPem []byte + count := 0 + + if f := os.Getenv("SSL_CERT_FILE"); len(f) > 0 { + pem, err := ioutil.ReadFile(f) + if err != nil { + return nil, err + } + + pem = append(pem, '\n') + certPem = append(certPem, pem...) + count++ + } + + if d := os.Getenv("SSL_CERT_DIR"); len(d) > 0 { + entries, err := ioutil.ReadDir(d) + if err != nil { + return nil, err + } + + for _, entry := range entries { + if entry.IsDir() { + continue + } + + pem, err := ioutil.ReadFile(path.Join(d, entry.Name())) + if err != nil { + return nil, err + } + + pem = append(pem, '\n') + certPem = append(certPem, pem...) + count++ + } + } + + pool, err := x509.SystemCertPool() + if err != nil { + return nil, err + } + + pool.AppendCertsFromPEM(certPem) + return pool, nil +} diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly/client/pool.go b/go/vendor/gitlab.com/gitlab-org/gitaly/client/pool.go new file mode 100644 index 0000000..e4d2164 --- /dev/null +++ b/go/vendor/gitlab.com/gitlab-org/gitaly/client/pool.go @@ -0,0 +1,8 @@ +// +build !darwin + +package client + +import "crypto/x509" + +// systemCertPool has an override on macOS. +func systemCertPool() (*x509.CertPool, error) { return x509.SystemCertPool() } diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly/client/receive_pack.go b/go/vendor/gitlab.com/gitlab-org/gitaly/client/receive_pack.go index 84dbe88..767b392 100644 --- a/go/vendor/gitlab.com/gitlab-org/gitaly/client/receive_pack.go +++ b/go/vendor/gitlab.com/gitlab-org/gitaly/client/receive_pack.go @@ -3,20 +3,18 @@ package client import ( "io" + "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb" "gitlab.com/gitlab-org/gitaly/streamio" - - pb "gitlab.com/gitlab-org/gitaly-proto/go" - "golang.org/x/net/context" "google.golang.org/grpc" ) // ReceivePack proxies an SSH git-receive-pack (git push) session to Gitaly -func ReceivePack(ctx context.Context, conn *grpc.ClientConn, stdin io.Reader, stdout, stderr io.Writer, req *pb.SSHReceivePackRequest) (int32, error) { +func ReceivePack(ctx context.Context, conn *grpc.ClientConn, stdin io.Reader, stdout, stderr io.Writer, req *gitalypb.SSHReceivePackRequest) (int32, error) { ctx2, cancel := context.WithCancel(ctx) defer cancel() - ssh := pb.NewSSHServiceClient(conn) + ssh := gitalypb.NewSSHServiceClient(conn) stream, err := ssh.SSHReceivePack(ctx2) if err != nil { return 0, err @@ -27,7 +25,7 @@ func ReceivePack(ctx context.Context, conn *grpc.ClientConn, stdin io.Reader, st } inWriter := streamio.NewWriter(func(p []byte) error { - return stream.Send(&pb.SSHReceivePackRequest{Stdin: p}) + return stream.Send(&gitalypb.SSHReceivePackRequest{Stdin: p}) }) return streamHandler(func() (stdoutStderrResponse, error) { diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly/client/std_stream.go b/go/vendor/gitlab.com/gitlab-org/gitaly/client/std_stream.go index 83d2589..157aef4 100644 --- a/go/vendor/gitlab.com/gitlab-org/gitaly/client/std_stream.go +++ b/go/vendor/gitlab.com/gitlab-org/gitaly/client/std_stream.go @@ -4,11 +4,11 @@ import ( "fmt" "io" - pb "gitlab.com/gitlab-org/gitaly-proto/go" + "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb" ) type stdoutStderrResponse interface { - GetExitStatus() *pb.ExitStatus + GetExitStatus() *gitalypb.ExitStatus GetStderr() []byte GetStdout() []byte } diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly/client/upload_archive.go b/go/vendor/gitlab.com/gitlab-org/gitaly/client/upload_archive.go index 6b4d682..2459519 100644 --- a/go/vendor/gitlab.com/gitlab-org/gitaly/client/upload_archive.go +++ b/go/vendor/gitlab.com/gitlab-org/gitaly/client/upload_archive.go @@ -3,20 +3,18 @@ package client import ( "io" + "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb" "gitlab.com/gitlab-org/gitaly/streamio" - - pb "gitlab.com/gitlab-org/gitaly-proto/go" - "golang.org/x/net/context" "google.golang.org/grpc" ) // UploadArchive proxies an SSH git-upload-archive (git archive --remote) session to Gitaly -func UploadArchive(ctx context.Context, conn *grpc.ClientConn, stdin io.Reader, stdout, stderr io.Writer, req *pb.SSHUploadArchiveRequest) (int32, error) { +func UploadArchive(ctx context.Context, conn *grpc.ClientConn, stdin io.Reader, stdout, stderr io.Writer, req *gitalypb.SSHUploadArchiveRequest) (int32, error) { ctx2, cancel := context.WithCancel(ctx) defer cancel() - ssh := pb.NewSSHServiceClient(conn) + ssh := gitalypb.NewSSHServiceClient(conn) stream, err := ssh.SSHUploadArchive(ctx2) if err != nil { return 0, err @@ -27,7 +25,7 @@ func UploadArchive(ctx context.Context, conn *grpc.ClientConn, stdin io.Reader, } inWriter := streamio.NewWriter(func(p []byte) error { - return stream.Send(&pb.SSHUploadArchiveRequest{Stdin: p}) + return stream.Send(&gitalypb.SSHUploadArchiveRequest{Stdin: p}) }) return streamHandler(func() (stdoutStderrResponse, error) { diff --git a/go/vendor/gitlab.com/gitlab-org/gitaly/client/upload_pack.go b/go/vendor/gitlab.com/gitlab-org/gitaly/client/upload_pack.go index 690ae65..08372c5 100644 --- a/go/vendor/gitlab.com/gitlab-org/gitaly/client/upload_pack.go +++ b/go/vendor/gitlab.com/gitlab-org/gitaly/client/upload_pack.go @@ -3,20 +3,18 @@ package client import ( "io" + "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb" "gitlab.com/gitlab-org/gitaly/streamio" - - pb "gitlab.com/gitlab-org/gitaly-proto/go" - "golang.org/x/net/context" "google.golang.org/grpc" ) // UploadPack proxies an SSH git-upload-pack (git fetch) session to Gitaly -func UploadPack(ctx context.Context, conn *grpc.ClientConn, stdin io.Reader, stdout, stderr io.Writer, req *pb.SSHUploadPackRequest) (int32, error) { +func UploadPack(ctx context.Context, conn *grpc.ClientConn, stdin io.Reader, stdout, stderr io.Writer, req *gitalypb.SSHUploadPackRequest) (int32, error) { ctx2, cancel := context.WithCancel(ctx) defer cancel() - ssh := pb.NewSSHServiceClient(conn) + ssh := gitalypb.NewSSHServiceClient(conn) stream, err := ssh.SSHUploadPack(ctx2) if err != nil { return 0, err @@ -27,7 +25,7 @@ func UploadPack(ctx context.Context, conn *grpc.ClientConn, stdin io.Reader, std } inWriter := streamio.NewWriter(func(p []byte) error { - return stream.Send(&pb.SSHUploadPackRequest{Stdin: p}) + return stream.Send(&gitalypb.SSHUploadPackRequest{Stdin: p}) }) return streamHandler(func() (stdoutStderrResponse, error) { diff --git a/go/vendor/vendor.json b/go/vendor/vendor.json index 3ba87a1..698e6a6 100644 --- a/go/vendor/vendor.json +++ b/go/vendor/vendor.json @@ -59,13 +59,18 @@ "versionExact": "v1.0.5" }, { - "checksumSHA1": "cGc0AOiqkNlSVMc2w/dIJfoWDdQ=", + "checksumSHA1": "kokC1RVLYim3udweBefX0QXHcRE=", "path": "gitlab.com/gitlab-org/gitaly-proto/go", - "revision": "e3a5c0a6da1c62f406f6b74b281dad43f8b74ea5", - "revisionTime": "2018-08-02T15:59:47Z", - "tree": true, - "version": "v0.112.0", - "versionExact": "v0.112.0" + "revision": "ca09ca1e2da6dc957644fa95990e8a3d032d6252", + "revisionTime": "2018-11-28T10:00:28Z" + }, + { + "checksumSHA1": "K8ub2fUgYq2Sb3FbKPzGhv96UNo=", + "path": "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb", + "revision": "ca09ca1e2da6dc957644fa95990e8a3d032d6252", + "revisionTime": "2018-11-28T10:00:28Z", + "version": "v1.3.0", + "versionExact": "v1.3.0" }, { "checksumSHA1": "SbYAalNU5azT8lJGerDI4I/Nw84=", @@ -76,12 +81,12 @@ "versionExact": "v0.125.0" }, { - "checksumSHA1": "CsPKG7r/N8ARlHtnHKimJiOnYiY=", + "checksumSHA1": "0FMG4FMRxji6+9LSKgWT6snO1FM=", "path": "gitlab.com/gitlab-org/gitaly/client", - "revision": "5e2c70a9a670f5d675cf45f880bbbb08a5169ab8", - "revisionTime": "2018-03-13T20:33:04Z", - "version": "v0.90.0", - "versionExact": "v0.90.0" + "revision": "3265234b0d281942d8a02fa5654d76c360ace192", + "revisionTime": "2018-12-05T15:59:00Z", + "version": "v1.5.0", + "versionExact": "v1.5.0" }, { "checksumSHA1": "mifcYH0qXpoPkX5KzXoM3mterWQ=", -- cgit v1.2.1