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

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2022-05-02 12:42:47 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2022-05-06 12:59:52 +0300
commit630d1647787672f4f41550519ccaaf7532e0a619 (patch)
treeb1f13a8c764afb7c2f8b8dee4c476374063230a8
parentcba727d7f0c8f18bb221d8f7290a930bf1f588d5 (diff)
proto: Enforce comment-linting for RPC definitions
Enforce that RPC definitions must have a comment and add a placeholder for all instances where such a comment is missing.
-rw-r--r--proto/.protolint.yaml1
-rw-r--r--proto/blob.proto4
-rw-r--r--proto/cleanup.proto4
-rw-r--r--proto/commit.proto58
-rw-r--r--proto/conflicts.proto4
-rw-r--r--proto/diff.proto13
-rw-r--r--proto/go/gitalypb/blob_grpc.pb.go4
-rw-r--r--proto/go/gitalypb/cleanup_grpc.pb.go4
-rw-r--r--proto/go/gitalypb/commit_grpc.pb.go76
-rw-r--r--proto/go/gitalypb/conflicts_grpc.pb.go4
-rw-r--r--proto/go/gitalypb/diff_grpc.pb.go12
-rw-r--r--proto/go/gitalypb/hook_grpc.pb.go16
-rw-r--r--proto/go/gitalypb/namespace_grpc.pb.go16
-rw-r--r--proto/go/gitalypb/objectpool_grpc.pb.go24
-rw-r--r--proto/go/gitalypb/operations_grpc.pb.go16
-rw-r--r--proto/go/gitalypb/praefect_grpc.pb.go4
-rw-r--r--proto/go/gitalypb/ref_grpc.pb.go44
-rw-r--r--proto/go/gitalypb/remote_grpc.pb.go4
-rw-r--r--proto/go/gitalypb/repository_grpc.pb.go100
-rw-r--r--proto/go/gitalypb/server.pb.go14
-rw-r--r--proto/go/gitalypb/server_grpc.pb.go8
-rw-r--r--proto/go/gitalypb/transaction_grpc.pb.go42
-rw-r--r--proto/go/gitalypb/wiki_grpc.pb.go16
-rw-r--r--proto/hook.proto14
-rw-r--r--proto/namespace.proto13
-rw-r--r--proto/objectpool.proto18
-rw-r--r--proto/operations.proto13
-rw-r--r--proto/praefect.proto4
-rw-r--r--proto/ref.proto37
-rw-r--r--proto/remote.proto3
-rw-r--r--proto/repository.proto71
-rw-r--r--proto/server.proto9
-rw-r--r--proto/transaction.proto22
-rw-r--r--proto/wiki.proto16
-rw-r--r--ruby/proto/gitaly/blob_services_pb.rb2
-rw-r--r--ruby/proto/gitaly/cleanup_services_pb.rb2
-rw-r--r--ruby/proto/gitaly/commit_services_pb.rb38
-rw-r--r--ruby/proto/gitaly/conflicts_services_pb.rb2
-rw-r--r--ruby/proto/gitaly/diff_services_pb.rb6
-rw-r--r--ruby/proto/gitaly/hook_services_pb.rb8
-rw-r--r--ruby/proto/gitaly/namespace_services_pb.rb8
-rw-r--r--ruby/proto/gitaly/objectpool_services_pb.rb12
-rw-r--r--ruby/proto/gitaly/operations_services_pb.rb8
-rw-r--r--ruby/proto/gitaly/praefect_services_pb.rb2
-rw-r--r--ruby/proto/gitaly/ref_services_pb.rb22
-rw-r--r--ruby/proto/gitaly/remote_services_pb.rb2
-rw-r--r--ruby/proto/gitaly/repository_services_pb.rb50
-rw-r--r--ruby/proto/gitaly/server_services_pb.rb4
-rw-r--r--ruby/proto/gitaly/transaction_services_pb.rb21
-rw-r--r--ruby/proto/gitaly/wiki_services_pb.rb8
50 files changed, 892 insertions, 11 deletions
diff --git a/proto/.protolint.yaml b/proto/.protolint.yaml
index c415ec768..ef55edfec 100644
--- a/proto/.protolint.yaml
+++ b/proto/.protolint.yaml
@@ -14,7 +14,6 @@ lint:
# opt-in to enable these linting warnings, but right now we just want to
# get protolint included in our workflow with minimal required changes.
- FILE_HAS_COMMENT
- - RPCS_HAVE_COMMENT
- FIELDS_HAVE_COMMENT
- MESSAGES_HAVE_COMMENT
- ENUMS_HAVE_COMMENT
diff --git a/proto/blob.proto b/proto/blob.proto
index f6ded95b8..a32d549df 100644
--- a/proto/blob.proto
+++ b/proto/blob.proto
@@ -10,6 +10,7 @@ option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb";
// BlobService is a service which provides RPCs to retrieve Git blobs from a
// specific repository.
service BlobService {
+
// 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
@@ -18,6 +19,9 @@ service BlobService {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc GetBlobs(GetBlobsRequest) returns (stream GetBlobsResponse) {
option (op_type) = {
op: ACCESSOR
diff --git a/proto/cleanup.proto b/proto/cleanup.proto
index 13e575785..677d3f135 100644
--- a/proto/cleanup.proto
+++ b/proto/cleanup.proto
@@ -9,11 +9,15 @@ option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb";
// CleanupService provides RPCs to clean up a repository's contents.
service CleanupService {
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc ApplyBfgObjectMapStream(stream ApplyBfgObjectMapStreamRequest) returns (stream ApplyBfgObjectMapStreamResponse) {
option (op_type) = {
op: MUTATOR
};
}
+
}
message ApplyBfgObjectMapStreamRequest {
diff --git a/proto/commit.proto b/proto/commit.proto
index f61fffb35..d36ba0ec3 100644
--- a/proto/commit.proto
+++ b/proto/commit.proto
@@ -29,104 +29,161 @@ service CommitService {
};
}
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc CommitIsAncestor(CommitIsAncestorRequest) returns (CommitIsAncestorResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc TreeEntry(TreeEntryRequest) returns (stream TreeEntryResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc CountCommits(CountCommitsRequest) returns (CountCommitsResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc CountDivergingCommits(CountDivergingCommitsRequest) returns (CountDivergingCommitsResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc GetTreeEntries(GetTreeEntriesRequest) returns (stream GetTreeEntriesResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc ListFiles(ListFilesRequest) returns (stream ListFilesResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc FindCommit(FindCommitRequest) returns (FindCommitResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc CommitStats(CommitStatsRequest) returns (CommitStatsResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
// Use a stream to paginate the result set
rpc FindAllCommits(FindAllCommitsRequest) returns (stream FindAllCommitsResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc FindCommits(FindCommitsRequest) returns (stream FindCommitsResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc CommitLanguages(CommitLanguagesRequest) returns (CommitLanguagesResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc RawBlame(RawBlameRequest) returns (stream RawBlameResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc LastCommitForPath(LastCommitForPathRequest) returns (LastCommitForPathResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc ListLastCommitsForTree(ListLastCommitsForTreeRequest) returns (stream ListLastCommitsForTreeResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc CommitsByMessage(CommitsByMessageRequest) returns (stream CommitsByMessageResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc ListCommitsByOid(ListCommitsByOidRequest) returns (stream ListCommitsByOidResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc ListCommitsByRefName(ListCommitsByRefNameRequest) returns (stream ListCommitsByRefNameResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc FilterShasWithSignatures(stream FilterShasWithSignaturesRequest) returns (stream FilterShasWithSignaturesResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc GetCommitSignatures(GetCommitSignaturesRequest) returns (stream GetCommitSignaturesResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc GetCommitMessages(GetCommitMessagesRequest) returns (stream GetCommitMessagesResponse) {
option (op_type) = {
op: ACCESSOR
@@ -142,6 +199,7 @@ service CommitService {
op: ACCESSOR
};
}
+
}
// ListCommitsRequest is a request for the ListCommits RPC.
diff --git a/proto/conflicts.proto b/proto/conflicts.proto
index 25eb0965e..14c8f3c76 100644
--- a/proto/conflicts.proto
+++ b/proto/conflicts.proto
@@ -11,6 +11,9 @@ option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb";
// ConflictsService is a service which provides RPCs to interact with conflicts
// resulting from a merge.
service ConflictsService {
+
+ // ListConflictFiles returns all conflicting files which result from a merge
+ // of two specified commit objects.
rpc ListConflictFiles(ListConflictFilesRequest) returns (stream ListConflictFilesResponse) {
option (op_type) = {
op: ACCESSOR
@@ -25,6 +28,7 @@ service ConflictsService {
op: MUTATOR
};
}
+
}
message ListConflictFilesRequest {
diff --git a/proto/diff.proto b/proto/diff.proto
index 8ff8347a0..98fc6b226 100644
--- a/proto/diff.proto
+++ b/proto/diff.proto
@@ -10,39 +10,52 @@ option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb";
// DiffService is a service which provides RPCs to inspect differences
// introduced between a set of commits.
service DiffService {
+
// Returns stream of CommitDiffResponse with patches chunked over messages
rpc CommitDiff(CommitDiffRequest) returns (stream CommitDiffResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
// Return a stream so we can divide the response in chunks of deltas
rpc CommitDelta(CommitDeltaRequest) returns (stream CommitDeltaResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc RawDiff(RawDiffRequest) returns (stream RawDiffResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc RawPatch(RawPatchRequest) returns (stream RawPatchResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc DiffStats(DiffStatsRequest) returns (stream DiffStatsResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
// Return a list of files changed along with the status of each file
rpc FindChangedPaths(FindChangedPathsRequest) returns (stream FindChangedPathsResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
}
message CommitDiffRequest {
diff --git a/proto/go/gitalypb/blob_grpc.pb.go b/proto/go/gitalypb/blob_grpc.pb.go
index ffc48c044..c84c5c0ec 100644
--- a/proto/go/gitalypb/blob_grpc.pb.go
+++ b/proto/go/gitalypb/blob_grpc.pb.go
@@ -22,6 +22,8 @@ type BlobServiceClient interface {
// 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)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
GetBlobs(ctx context.Context, in *GetBlobsRequest, opts ...grpc.CallOption) (BlobService_GetBlobsClient, error)
// ListBlobs will list all blobs reachable from a given set of revisions by
// doing a graph walk. It is not valid to pass revisions which do not resolve
@@ -286,6 +288,8 @@ type BlobServiceServer interface {
// ID. We use a stream to return a chunked arbitrarily large binary
// response
GetBlob(*GetBlobRequest, BlobService_GetBlobServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
GetBlobs(*GetBlobsRequest, BlobService_GetBlobsServer) error
// ListBlobs will list all blobs reachable from a given set of revisions by
// doing a graph walk. It is not valid to pass revisions which do not resolve
diff --git a/proto/go/gitalypb/cleanup_grpc.pb.go b/proto/go/gitalypb/cleanup_grpc.pb.go
index f49c5560c..e6d92152b 100644
--- a/proto/go/gitalypb/cleanup_grpc.pb.go
+++ b/proto/go/gitalypb/cleanup_grpc.pb.go
@@ -18,6 +18,8 @@ const _ = grpc.SupportPackageIsVersion7
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type CleanupServiceClient interface {
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
ApplyBfgObjectMapStream(ctx context.Context, opts ...grpc.CallOption) (CleanupService_ApplyBfgObjectMapStreamClient, error)
}
@@ -64,6 +66,8 @@ func (x *cleanupServiceApplyBfgObjectMapStreamClient) Recv() (*ApplyBfgObjectMap
// All implementations must embed UnimplementedCleanupServiceServer
// for forward compatibility
type CleanupServiceServer interface {
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
ApplyBfgObjectMapStream(CleanupService_ApplyBfgObjectMapStreamServer) error
mustEmbedUnimplementedCleanupServiceServer()
}
diff --git a/proto/go/gitalypb/commit_grpc.pb.go b/proto/go/gitalypb/commit_grpc.pb.go
index 0e1f603bd..13f94eceb 100644
--- a/proto/go/gitalypb/commit_grpc.pb.go
+++ b/proto/go/gitalypb/commit_grpc.pb.go
@@ -25,26 +25,64 @@ type CommitServiceClient interface {
// ListAllCommits lists all commits present in the repository, including
// those not reachable by any reference.
ListAllCommits(ctx context.Context, in *ListAllCommitsRequest, opts ...grpc.CallOption) (CommitService_ListAllCommitsClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
CommitIsAncestor(ctx context.Context, in *CommitIsAncestorRequest, opts ...grpc.CallOption) (*CommitIsAncestorResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
TreeEntry(ctx context.Context, in *TreeEntryRequest, opts ...grpc.CallOption) (CommitService_TreeEntryClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
CountCommits(ctx context.Context, in *CountCommitsRequest, opts ...grpc.CallOption) (*CountCommitsResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
CountDivergingCommits(ctx context.Context, in *CountDivergingCommitsRequest, opts ...grpc.CallOption) (*CountDivergingCommitsResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
GetTreeEntries(ctx context.Context, in *GetTreeEntriesRequest, opts ...grpc.CallOption) (CommitService_GetTreeEntriesClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (CommitService_ListFilesClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
FindCommit(ctx context.Context, in *FindCommitRequest, opts ...grpc.CallOption) (*FindCommitResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
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)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
FindCommits(ctx context.Context, in *FindCommitsRequest, opts ...grpc.CallOption) (CommitService_FindCommitsClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
CommitLanguages(ctx context.Context, in *CommitLanguagesRequest, opts ...grpc.CallOption) (*CommitLanguagesResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
RawBlame(ctx context.Context, in *RawBlameRequest, opts ...grpc.CallOption) (CommitService_RawBlameClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
LastCommitForPath(ctx context.Context, in *LastCommitForPathRequest, opts ...grpc.CallOption) (*LastCommitForPathResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
ListLastCommitsForTree(ctx context.Context, in *ListLastCommitsForTreeRequest, opts ...grpc.CallOption) (CommitService_ListLastCommitsForTreeClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
CommitsByMessage(ctx context.Context, in *CommitsByMessageRequest, opts ...grpc.CallOption) (CommitService_CommitsByMessageClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
ListCommitsByOid(ctx context.Context, in *ListCommitsByOidRequest, opts ...grpc.CallOption) (CommitService_ListCommitsByOidClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
ListCommitsByRefName(ctx context.Context, in *ListCommitsByRefNameRequest, opts ...grpc.CallOption) (CommitService_ListCommitsByRefNameClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
FilterShasWithSignatures(ctx context.Context, opts ...grpc.CallOption) (CommitService_FilterShasWithSignaturesClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
GetCommitSignatures(ctx context.Context, in *GetCommitSignaturesRequest, opts ...grpc.CallOption) (CommitService_GetCommitSignaturesClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
GetCommitMessages(ctx context.Context, in *GetCommitMessagesRequest, opts ...grpc.CallOption) (CommitService_GetCommitMessagesClient, error)
// CheckObjectsExist will check for the existence of revisions against a
// repository. It returns two sets of data. An array containing the revisions
@@ -645,26 +683,64 @@ type CommitServiceServer interface {
// ListAllCommits lists all commits present in the repository, including
// those not reachable by any reference.
ListAllCommits(*ListAllCommitsRequest, CommitService_ListAllCommitsServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
CommitIsAncestor(context.Context, *CommitIsAncestorRequest) (*CommitIsAncestorResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
TreeEntry(*TreeEntryRequest, CommitService_TreeEntryServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
CountCommits(context.Context, *CountCommitsRequest) (*CountCommitsResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
CountDivergingCommits(context.Context, *CountDivergingCommitsRequest) (*CountDivergingCommitsResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
GetTreeEntries(*GetTreeEntriesRequest, CommitService_GetTreeEntriesServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
ListFiles(*ListFilesRequest, CommitService_ListFilesServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
FindCommit(context.Context, *FindCommitRequest) (*FindCommitResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
CommitStats(context.Context, *CommitStatsRequest) (*CommitStatsResponse, error)
// Use a stream to paginate the result set
FindAllCommits(*FindAllCommitsRequest, CommitService_FindAllCommitsServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
FindCommits(*FindCommitsRequest, CommitService_FindCommitsServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
CommitLanguages(context.Context, *CommitLanguagesRequest) (*CommitLanguagesResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
RawBlame(*RawBlameRequest, CommitService_RawBlameServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
LastCommitForPath(context.Context, *LastCommitForPathRequest) (*LastCommitForPathResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
ListLastCommitsForTree(*ListLastCommitsForTreeRequest, CommitService_ListLastCommitsForTreeServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
CommitsByMessage(*CommitsByMessageRequest, CommitService_CommitsByMessageServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
ListCommitsByOid(*ListCommitsByOidRequest, CommitService_ListCommitsByOidServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
ListCommitsByRefName(*ListCommitsByRefNameRequest, CommitService_ListCommitsByRefNameServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
FilterShasWithSignatures(CommitService_FilterShasWithSignaturesServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
GetCommitSignatures(*GetCommitSignaturesRequest, CommitService_GetCommitSignaturesServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
GetCommitMessages(*GetCommitMessagesRequest, CommitService_GetCommitMessagesServer) error
// CheckObjectsExist will check for the existence of revisions against a
// repository. It returns two sets of data. An array containing the revisions
diff --git a/proto/go/gitalypb/conflicts_grpc.pb.go b/proto/go/gitalypb/conflicts_grpc.pb.go
index ec73fb129..f50ae2a56 100644
--- a/proto/go/gitalypb/conflicts_grpc.pb.go
+++ b/proto/go/gitalypb/conflicts_grpc.pb.go
@@ -18,6 +18,8 @@ const _ = grpc.SupportPackageIsVersion7
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type ConflictsServiceClient interface {
+ // ListConflictFiles returns all conflicting files which result from a merge
+ // of two specified commit objects.
ListConflictFiles(ctx context.Context, in *ListConflictFilesRequest, opts ...grpc.CallOption) (ConflictsService_ListConflictFilesClient, error)
// ResolveConflicts tries to resolve a conflicting merge with a set of
// user-provided merge resolutions. If resolving the conflict succeeds, the
@@ -103,6 +105,8 @@ func (x *conflictsServiceResolveConflictsClient) CloseAndRecv() (*ResolveConflic
// All implementations must embed UnimplementedConflictsServiceServer
// for forward compatibility
type ConflictsServiceServer interface {
+ // ListConflictFiles returns all conflicting files which result from a merge
+ // of two specified commit objects.
ListConflictFiles(*ListConflictFilesRequest, ConflictsService_ListConflictFilesServer) error
// ResolveConflicts tries to resolve a conflicting merge with a set of
// user-provided merge resolutions. If resolving the conflict succeeds, the
diff --git a/proto/go/gitalypb/diff_grpc.pb.go b/proto/go/gitalypb/diff_grpc.pb.go
index 7fdc2a73c..35d340cf5 100644
--- a/proto/go/gitalypb/diff_grpc.pb.go
+++ b/proto/go/gitalypb/diff_grpc.pb.go
@@ -22,8 +22,14 @@ type DiffServiceClient interface {
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)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
RawDiff(ctx context.Context, in *RawDiffRequest, opts ...grpc.CallOption) (DiffService_RawDiffClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
RawPatch(ctx context.Context, in *RawPatchRequest, opts ...grpc.CallOption) (DiffService_RawPatchClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
DiffStats(ctx context.Context, in *DiffStatsRequest, opts ...grpc.CallOption) (DiffService_DiffStatsClient, error)
// Return a list of files changed along with the status of each file
FindChangedPaths(ctx context.Context, in *FindChangedPathsRequest, opts ...grpc.CallOption) (DiffService_FindChangedPathsClient, error)
@@ -237,8 +243,14 @@ type DiffServiceServer interface {
CommitDiff(*CommitDiffRequest, DiffService_CommitDiffServer) error
// Return a stream so we can divide the response in chunks of deltas
CommitDelta(*CommitDeltaRequest, DiffService_CommitDeltaServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
RawDiff(*RawDiffRequest, DiffService_RawDiffServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
RawPatch(*RawPatchRequest, DiffService_RawPatchServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
DiffStats(*DiffStatsRequest, DiffService_DiffStatsServer) error
// Return a list of files changed along with the status of each file
FindChangedPaths(*FindChangedPathsRequest, DiffService_FindChangedPathsServer) error
diff --git a/proto/go/gitalypb/hook_grpc.pb.go b/proto/go/gitalypb/hook_grpc.pb.go
index 8e9b0e989..88e76bbb8 100644
--- a/proto/go/gitalypb/hook_grpc.pb.go
+++ b/proto/go/gitalypb/hook_grpc.pb.go
@@ -18,9 +18,17 @@ const _ = grpc.SupportPackageIsVersion7
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type HookServiceClient interface {
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
PreReceiveHook(ctx context.Context, opts ...grpc.CallOption) (HookService_PreReceiveHookClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
PostReceiveHook(ctx context.Context, opts ...grpc.CallOption) (HookService_PostReceiveHookClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
UpdateHook(ctx context.Context, in *UpdateHookRequest, opts ...grpc.CallOption) (HookService_UpdateHookClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
ReferenceTransactionHook(ctx context.Context, opts ...grpc.CallOption) (HookService_ReferenceTransactionHookClient, error)
// PackObjectsHookWithSidechannel is an optimized version of PackObjectsHook that uses
// a unix socket side channel.
@@ -173,9 +181,17 @@ func (c *hookServiceClient) PackObjectsHookWithSidechannel(ctx context.Context,
// All implementations must embed UnimplementedHookServiceServer
// for forward compatibility
type HookServiceServer interface {
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
PreReceiveHook(HookService_PreReceiveHookServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
PostReceiveHook(HookService_PostReceiveHookServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
UpdateHook(*UpdateHookRequest, HookService_UpdateHookServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
ReferenceTransactionHook(HookService_ReferenceTransactionHookServer) error
// PackObjectsHookWithSidechannel is an optimized version of PackObjectsHook that uses
// a unix socket side channel.
diff --git a/proto/go/gitalypb/namespace_grpc.pb.go b/proto/go/gitalypb/namespace_grpc.pb.go
index 33ff20ee3..3706f68b6 100644
--- a/proto/go/gitalypb/namespace_grpc.pb.go
+++ b/proto/go/gitalypb/namespace_grpc.pb.go
@@ -18,9 +18,17 @@ const _ = grpc.SupportPackageIsVersion7
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type NamespaceServiceClient interface {
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
AddNamespace(ctx context.Context, in *AddNamespaceRequest, opts ...grpc.CallOption) (*AddNamespaceResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
RemoveNamespace(ctx context.Context, in *RemoveNamespaceRequest, opts ...grpc.CallOption) (*RemoveNamespaceResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
RenameNamespace(ctx context.Context, in *RenameNamespaceRequest, opts ...grpc.CallOption) (*RenameNamespaceResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
NamespaceExists(ctx context.Context, in *NamespaceExistsRequest, opts ...grpc.CallOption) (*NamespaceExistsResponse, error)
}
@@ -72,9 +80,17 @@ func (c *namespaceServiceClient) NamespaceExists(ctx context.Context, in *Namesp
// All implementations must embed UnimplementedNamespaceServiceServer
// for forward compatibility
type NamespaceServiceServer interface {
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
AddNamespace(context.Context, *AddNamespaceRequest) (*AddNamespaceResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
RemoveNamespace(context.Context, *RemoveNamespaceRequest) (*RemoveNamespaceResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
RenameNamespace(context.Context, *RenameNamespaceRequest) (*RenameNamespaceResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
NamespaceExists(context.Context, *NamespaceExistsRequest) (*NamespaceExistsResponse, error)
mustEmbedUnimplementedNamespaceServiceServer()
}
diff --git a/proto/go/gitalypb/objectpool_grpc.pb.go b/proto/go/gitalypb/objectpool_grpc.pb.go
index b46a4bc1c..22b86897e 100644
--- a/proto/go/gitalypb/objectpool_grpc.pb.go
+++ b/proto/go/gitalypb/objectpool_grpc.pb.go
@@ -18,13 +18,25 @@ const _ = grpc.SupportPackageIsVersion7
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type ObjectPoolServiceClient interface {
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
CreateObjectPool(ctx context.Context, in *CreateObjectPoolRequest, opts ...grpc.CallOption) (*CreateObjectPoolResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
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)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
ReduplicateRepository(ctx context.Context, in *ReduplicateRepositoryRequest, opts ...grpc.CallOption) (*ReduplicateRepositoryResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
DisconnectGitAlternates(ctx context.Context, in *DisconnectGitAlternatesRequest, opts ...grpc.CallOption) (*DisconnectGitAlternatesResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
FetchIntoObjectPool(ctx context.Context, in *FetchIntoObjectPoolRequest, opts ...grpc.CallOption) (*FetchIntoObjectPoolResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
GetObjectPool(ctx context.Context, in *GetObjectPoolRequest, opts ...grpc.CallOption) (*GetObjectPoolResponse, error)
}
@@ -103,13 +115,25 @@ func (c *objectPoolServiceClient) GetObjectPool(ctx context.Context, in *GetObje
// All implementations must embed UnimplementedObjectPoolServiceServer
// for forward compatibility
type ObjectPoolServiceServer interface {
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
CreateObjectPool(context.Context, *CreateObjectPoolRequest) (*CreateObjectPoolResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
DeleteObjectPool(context.Context, *DeleteObjectPoolRequest) (*DeleteObjectPoolResponse, error)
// Repositories are assumed to be stored on the same disk
LinkRepositoryToObjectPool(context.Context, *LinkRepositoryToObjectPoolRequest) (*LinkRepositoryToObjectPoolResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
ReduplicateRepository(context.Context, *ReduplicateRepositoryRequest) (*ReduplicateRepositoryResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
DisconnectGitAlternates(context.Context, *DisconnectGitAlternatesRequest) (*DisconnectGitAlternatesResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
FetchIntoObjectPool(context.Context, *FetchIntoObjectPoolRequest) (*FetchIntoObjectPoolResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
GetObjectPool(context.Context, *GetObjectPoolRequest) (*GetObjectPoolResponse, error)
mustEmbedUnimplementedObjectPoolServiceServer()
}
diff --git a/proto/go/gitalypb/operations_grpc.pb.go b/proto/go/gitalypb/operations_grpc.pb.go
index 45c083841..740c12e2b 100644
--- a/proto/go/gitalypb/operations_grpc.pb.go
+++ b/proto/go/gitalypb/operations_grpc.pb.go
@@ -18,11 +18,19 @@ const _ = grpc.SupportPackageIsVersion7
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type OperationServiceClient interface {
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
UserCreateBranch(ctx context.Context, in *UserCreateBranchRequest, opts ...grpc.CallOption) (*UserCreateBranchResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
UserUpdateBranch(ctx context.Context, in *UserUpdateBranchRequest, opts ...grpc.CallOption) (*UserUpdateBranchResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
UserDeleteBranch(ctx context.Context, in *UserDeleteBranchRequest, opts ...grpc.CallOption) (*UserDeleteBranchResponse, error)
// UserCreateTag creates a new tag.
UserCreateTag(ctx context.Context, in *UserCreateTagRequest, opts ...grpc.CallOption) (*UserCreateTagResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
UserDeleteTag(ctx context.Context, in *UserDeleteTagRequest, opts ...grpc.CallOption) (*UserDeleteTagResponse, error)
// UserMergeRef creates a merge commit and updates target_ref to point to that
// new commit. The first parent of the merge commit (the main line) is taken
@@ -316,11 +324,19 @@ func (c *operationServiceClient) UserUpdateSubmodule(ctx context.Context, in *Us
// All implementations must embed UnimplementedOperationServiceServer
// for forward compatibility
type OperationServiceServer interface {
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
UserCreateBranch(context.Context, *UserCreateBranchRequest) (*UserCreateBranchResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
UserUpdateBranch(context.Context, *UserUpdateBranchRequest) (*UserUpdateBranchResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
UserDeleteBranch(context.Context, *UserDeleteBranchRequest) (*UserDeleteBranchResponse, error)
// UserCreateTag creates a new tag.
UserCreateTag(context.Context, *UserCreateTagRequest) (*UserCreateTagResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
UserDeleteTag(context.Context, *UserDeleteTagRequest) (*UserDeleteTagResponse, error)
// UserMergeRef creates a merge commit and updates target_ref to point to that
// new commit. The first parent of the merge commit (the main line) is taken
diff --git a/proto/go/gitalypb/praefect_grpc.pb.go b/proto/go/gitalypb/praefect_grpc.pb.go
index b01e699f6..4f90f56f8 100644
--- a/proto/go/gitalypb/praefect_grpc.pb.go
+++ b/proto/go/gitalypb/praefect_grpc.pb.go
@@ -18,6 +18,8 @@ const _ = grpc.SupportPackageIsVersion7
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type PraefectInfoServiceClient interface {
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
RepositoryReplicas(ctx context.Context, in *RepositoryReplicasRequest, opts ...grpc.CallOption) (*RepositoryReplicasResponse, error)
// DatalossCheck checks for unavailable repositories.
DatalossCheck(ctx context.Context, in *DatalossCheckRequest, opts ...grpc.CallOption) (*DatalossCheckResponse, error)
@@ -107,6 +109,8 @@ func (c *praefectInfoServiceClient) GetRepositoryMetadata(ctx context.Context, i
// All implementations must embed UnimplementedPraefectInfoServiceServer
// for forward compatibility
type PraefectInfoServiceServer interface {
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
RepositoryReplicas(context.Context, *RepositoryReplicasRequest) (*RepositoryReplicasResponse, error)
// DatalossCheck checks for unavailable repositories.
DatalossCheck(context.Context, *DatalossCheckRequest) (*DatalossCheckResponse, error)
diff --git a/proto/go/gitalypb/ref_grpc.pb.go b/proto/go/gitalypb/ref_grpc.pb.go
index 825002030..5fe5f23c4 100644
--- a/proto/go/gitalypb/ref_grpc.pb.go
+++ b/proto/go/gitalypb/ref_grpc.pb.go
@@ -18,28 +18,50 @@ const _ = grpc.SupportPackageIsVersion7
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type RefServiceClient interface {
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
FindDefaultBranchName(ctx context.Context, in *FindDefaultBranchNameRequest, opts ...grpc.CallOption) (*FindDefaultBranchNameResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
FindAllBranchNames(ctx context.Context, in *FindAllBranchNamesRequest, opts ...grpc.CallOption) (RefService_FindAllBranchNamesClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
FindAllTagNames(ctx context.Context, in *FindAllTagNamesRequest, opts ...grpc.CallOption) (RefService_FindAllTagNamesClient, 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)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
FindAllBranches(ctx context.Context, in *FindAllBranchesRequest, opts ...grpc.CallOption) (RefService_FindAllBranchesClient, error)
// Returns a stream of tags repository has.
FindAllTags(ctx context.Context, in *FindAllTagsRequest, opts ...grpc.CallOption) (RefService_FindAllTagsClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
FindTag(ctx context.Context, in *FindTagRequest, opts ...grpc.CallOption) (*FindTagResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
FindAllRemoteBranches(ctx context.Context, in *FindAllRemoteBranchesRequest, opts ...grpc.CallOption) (RefService_FindAllRemoteBranchesClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
RefExists(ctx context.Context, in *RefExistsRequest, opts ...grpc.CallOption) (*RefExistsResponse, error)
// FindBranch finds a branch by its unqualified name (like "master") and
// returns the commit it currently points to.
FindBranch(ctx context.Context, in *FindBranchRequest, opts ...grpc.CallOption) (*FindBranchResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
DeleteRefs(ctx context.Context, in *DeleteRefsRequest, opts ...grpc.CallOption) (*DeleteRefsResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
ListBranchNamesContainingCommit(ctx context.Context, in *ListBranchNamesContainingCommitRequest, opts ...grpc.CallOption) (RefService_ListBranchNamesContainingCommitClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
ListTagNamesContainingCommit(ctx context.Context, in *ListTagNamesContainingCommitRequest, opts ...grpc.CallOption) (RefService_ListTagNamesContainingCommitClient, error)
// GetTagSignatures returns signatures for annotated tags resolved from a set of revisions. Revisions
// which don't resolve to an annotated tag are silently discarded. Revisions which cannot be resolved
// result in an error. Tags which are annotated but not signed will return a TagSignature response
// which has no signature, but its unsigned contents will still be returned.
GetTagSignatures(ctx context.Context, in *GetTagSignaturesRequest, opts ...grpc.CallOption) (RefService_GetTagSignaturesClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
GetTagMessages(ctx context.Context, in *GetTagMessagesRequest, opts ...grpc.CallOption) (RefService_GetTagMessagesClient, error)
// Deprecated: Do not use.
// PackRefs is deprecated in favor of OptimizeRepository.
@@ -482,28 +504,50 @@ func (c *refServiceClient) FindRefsByOID(ctx context.Context, in *FindRefsByOIDR
// All implementations must embed UnimplementedRefServiceServer
// for forward compatibility
type RefServiceServer interface {
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
FindDefaultBranchName(context.Context, *FindDefaultBranchNameRequest) (*FindDefaultBranchNameResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
FindAllBranchNames(*FindAllBranchNamesRequest, RefService_FindAllBranchNamesServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
FindAllTagNames(*FindAllTagNamesRequest, RefService_FindAllTagNamesServer) error
// Return a stream so we can divide the response in chunks of branches
FindLocalBranches(*FindLocalBranchesRequest, RefService_FindLocalBranchesServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
FindAllBranches(*FindAllBranchesRequest, RefService_FindAllBranchesServer) error
// Returns a stream of tags repository has.
FindAllTags(*FindAllTagsRequest, RefService_FindAllTagsServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
FindTag(context.Context, *FindTagRequest) (*FindTagResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
FindAllRemoteBranches(*FindAllRemoteBranchesRequest, RefService_FindAllRemoteBranchesServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
RefExists(context.Context, *RefExistsRequest) (*RefExistsResponse, error)
// FindBranch finds a branch by its unqualified name (like "master") and
// returns the commit it currently points to.
FindBranch(context.Context, *FindBranchRequest) (*FindBranchResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
DeleteRefs(context.Context, *DeleteRefsRequest) (*DeleteRefsResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
ListBranchNamesContainingCommit(*ListBranchNamesContainingCommitRequest, RefService_ListBranchNamesContainingCommitServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
ListTagNamesContainingCommit(*ListTagNamesContainingCommitRequest, RefService_ListTagNamesContainingCommitServer) error
// GetTagSignatures returns signatures for annotated tags resolved from a set of revisions. Revisions
// which don't resolve to an annotated tag are silently discarded. Revisions which cannot be resolved
// result in an error. Tags which are annotated but not signed will return a TagSignature response
// which has no signature, but its unsigned contents will still be returned.
GetTagSignatures(*GetTagSignaturesRequest, RefService_GetTagSignaturesServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
GetTagMessages(*GetTagMessagesRequest, RefService_GetTagMessagesServer) error
// Deprecated: Do not use.
// PackRefs is deprecated in favor of OptimizeRepository.
diff --git a/proto/go/gitalypb/remote_grpc.pb.go b/proto/go/gitalypb/remote_grpc.pb.go
index f97b453a5..f38ac45ce 100644
--- a/proto/go/gitalypb/remote_grpc.pb.go
+++ b/proto/go/gitalypb/remote_grpc.pb.go
@@ -24,6 +24,8 @@ type RemoteServiceClient interface {
// deleted from the mirror. UpdateRemoteMirror updates all tags. Branches are updated if they match
// the patterns specified in the requests.
UpdateRemoteMirror(ctx context.Context, opts ...grpc.CallOption) (RemoteService_UpdateRemoteMirrorClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
FindRemoteRepository(ctx context.Context, in *FindRemoteRepositoryRequest, opts ...grpc.CallOption) (*FindRemoteRepositoryResponse, error)
// FindRemoteRootRef tries to find the root reference of a remote
// repository. The root reference is the default branch as pointed to by
@@ -103,6 +105,8 @@ type RemoteServiceServer interface {
// deleted from the mirror. UpdateRemoteMirror updates all tags. Branches are updated if they match
// the patterns specified in the requests.
UpdateRemoteMirror(RemoteService_UpdateRemoteMirrorServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
FindRemoteRepository(context.Context, *FindRemoteRepositoryRequest) (*FindRemoteRepositoryResponse, error)
// FindRemoteRootRef tries to find the root reference of a remote
// repository. The root reference is the default branch as pointed to by
diff --git a/proto/go/gitalypb/repository_grpc.pb.go b/proto/go/gitalypb/repository_grpc.pb.go
index b05caa251..2c81837dc 100644
--- a/proto/go/gitalypb/repository_grpc.pb.go
+++ b/proto/go/gitalypb/repository_grpc.pb.go
@@ -18,6 +18,8 @@ const _ = grpc.SupportPackageIsVersion7
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type RepositoryServiceClient interface {
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
RepositoryExists(ctx context.Context, in *RepositoryExistsRequest, opts ...grpc.CallOption) (*RepositoryExistsResponse, error)
// Deprecated: Do not use.
// RepackIncremental is deprecated in favor of OptimizeRepository.
@@ -34,21 +36,41 @@ type RepositoryServiceClient interface {
// Deprecated: Do not use.
// WriteCommitGraph is deprecated in favor of OptimizeRepository.
WriteCommitGraph(ctx context.Context, in *WriteCommitGraphRequest, opts ...grpc.CallOption) (*WriteCommitGraphResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
RepositorySize(ctx context.Context, in *RepositorySizeRequest, opts ...grpc.CallOption) (*RepositorySizeResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
ApplyGitattributes(ctx context.Context, in *ApplyGitattributesRequest, opts ...grpc.CallOption) (*ApplyGitattributesResponse, error)
// FetchRemote fetches references from a remote repository into the local
// repository.
FetchRemote(ctx context.Context, in *FetchRemoteRequest, opts ...grpc.CallOption) (*FetchRemoteResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
CreateRepository(ctx context.Context, in *CreateRepositoryRequest, opts ...grpc.CallOption) (*CreateRepositoryResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
GetArchive(ctx context.Context, in *GetArchiveRequest, opts ...grpc.CallOption) (RepositoryService_GetArchiveClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
HasLocalBranches(ctx context.Context, in *HasLocalBranchesRequest, opts ...grpc.CallOption) (*HasLocalBranchesResponse, error)
// FetchSourceBranch fetches a branch from a second (potentially remote)
// repository into the given repository.
FetchSourceBranch(ctx context.Context, in *FetchSourceBranchRequest, opts ...grpc.CallOption) (*FetchSourceBranchResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
Fsck(ctx context.Context, in *FsckRequest, opts ...grpc.CallOption) (*FsckResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
WriteRef(ctx context.Context, in *WriteRefRequest, opts ...grpc.CallOption) (*WriteRefResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
FindMergeBase(ctx context.Context, in *FindMergeBaseRequest, opts ...grpc.CallOption) (*FindMergeBaseResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
CreateFork(ctx context.Context, in *CreateForkRequest, opts ...grpc.CallOption) (*CreateForkResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
CreateRepositoryFromURL(ctx context.Context, in *CreateRepositoryFromURLRequest, opts ...grpc.CallOption) (*CreateRepositoryFromURLResponse, error)
// CreateBundle creates a bundle from all refs
CreateBundle(ctx context.Context, in *CreateBundleRequest, opts ...grpc.CallOption) (RepositoryService_CreateBundleClient, error)
@@ -59,29 +81,57 @@ type RepositoryServiceClient interface {
// Refs will be mirrored to the target repository with the refspec
// "+refs/*:refs/*" and refs that do not exist in the bundle will be removed.
FetchBundle(ctx context.Context, opts ...grpc.CallOption) (RepositoryService_FetchBundleClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
CreateRepositoryFromBundle(ctx context.Context, opts ...grpc.CallOption) (RepositoryService_CreateRepositoryFromBundleClient, error)
// GetConfig reads the target repository's gitconfig and streams its contents
// back. Returns a NotFound error in case no gitconfig was found.
GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (RepositoryService_GetConfigClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
FindLicense(ctx context.Context, in *FindLicenseRequest, opts ...grpc.CallOption) (*FindLicenseResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
GetInfoAttributes(ctx context.Context, in *GetInfoAttributesRequest, opts ...grpc.CallOption) (RepositoryService_GetInfoAttributesClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
CalculateChecksum(ctx context.Context, in *CalculateChecksumRequest, opts ...grpc.CallOption) (*CalculateChecksumResponse, error)
// Deprecated: Do not use.
// Cleanup is deprecated in favor of OptimizeRepository.
Cleanup(ctx context.Context, in *CleanupRequest, opts ...grpc.CallOption) (*CleanupResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
GetSnapshot(ctx context.Context, in *GetSnapshotRequest, opts ...grpc.CallOption) (RepositoryService_GetSnapshotClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
CreateRepositoryFromSnapshot(ctx context.Context, in *CreateRepositoryFromSnapshotRequest, opts ...grpc.CallOption) (*CreateRepositoryFromSnapshotResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
GetRawChanges(ctx context.Context, in *GetRawChangesRequest, opts ...grpc.CallOption) (RepositoryService_GetRawChangesClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
SearchFilesByContent(ctx context.Context, in *SearchFilesByContentRequest, opts ...grpc.CallOption) (RepositoryService_SearchFilesByContentClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
SearchFilesByName(ctx context.Context, in *SearchFilesByNameRequest, opts ...grpc.CallOption) (RepositoryService_SearchFilesByNameClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
RestoreCustomHooks(ctx context.Context, opts ...grpc.CallOption) (RepositoryService_RestoreCustomHooksClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
BackupCustomHooks(ctx context.Context, in *BackupCustomHooksRequest, opts ...grpc.CallOption) (RepositoryService_BackupCustomHooksClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
GetObjectDirectorySize(ctx context.Context, in *GetObjectDirectorySizeRequest, opts ...grpc.CallOption) (*GetObjectDirectorySizeResponse, error)
// RemoveRepository will move the repository to `+gitaly/tmp/<relative_path>_removed` and
// eventually remove it. This ensures that even on networked filesystems the
// data is actually removed even if there's someone still handling the data.
RemoveRepository(ctx context.Context, in *RemoveRepositoryRequest, opts ...grpc.CallOption) (*RemoveRepositoryResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
RenameRepository(ctx context.Context, in *RenameRepositoryRequest, opts ...grpc.CallOption) (*RenameRepositoryResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
ReplicateRepository(ctx context.Context, in *ReplicateRepositoryRequest, opts ...grpc.CallOption) (*ReplicateRepositoryResponse, error)
// OptimizeRepository performs all maintenance tasks in a repository to keep
// it in an efficient state. It cleans up stale data, repacks objects,
@@ -800,6 +850,8 @@ func (c *repositoryServiceClient) SetFullPath(ctx context.Context, in *SetFullPa
// All implementations must embed UnimplementedRepositoryServiceServer
// for forward compatibility
type RepositoryServiceServer interface {
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
RepositoryExists(context.Context, *RepositoryExistsRequest) (*RepositoryExistsResponse, error)
// Deprecated: Do not use.
// RepackIncremental is deprecated in favor of OptimizeRepository.
@@ -816,21 +868,41 @@ type RepositoryServiceServer interface {
// Deprecated: Do not use.
// WriteCommitGraph is deprecated in favor of OptimizeRepository.
WriteCommitGraph(context.Context, *WriteCommitGraphRequest) (*WriteCommitGraphResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
RepositorySize(context.Context, *RepositorySizeRequest) (*RepositorySizeResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
ApplyGitattributes(context.Context, *ApplyGitattributesRequest) (*ApplyGitattributesResponse, error)
// FetchRemote fetches references from a remote repository into the local
// repository.
FetchRemote(context.Context, *FetchRemoteRequest) (*FetchRemoteResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
CreateRepository(context.Context, *CreateRepositoryRequest) (*CreateRepositoryResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
GetArchive(*GetArchiveRequest, RepositoryService_GetArchiveServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
HasLocalBranches(context.Context, *HasLocalBranchesRequest) (*HasLocalBranchesResponse, error)
// FetchSourceBranch fetches a branch from a second (potentially remote)
// repository into the given repository.
FetchSourceBranch(context.Context, *FetchSourceBranchRequest) (*FetchSourceBranchResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
Fsck(context.Context, *FsckRequest) (*FsckResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
WriteRef(context.Context, *WriteRefRequest) (*WriteRefResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
FindMergeBase(context.Context, *FindMergeBaseRequest) (*FindMergeBaseResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
CreateFork(context.Context, *CreateForkRequest) (*CreateForkResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
CreateRepositoryFromURL(context.Context, *CreateRepositoryFromURLRequest) (*CreateRepositoryFromURLResponse, error)
// CreateBundle creates a bundle from all refs
CreateBundle(*CreateBundleRequest, RepositoryService_CreateBundleServer) error
@@ -841,29 +913,57 @@ type RepositoryServiceServer interface {
// Refs will be mirrored to the target repository with the refspec
// "+refs/*:refs/*" and refs that do not exist in the bundle will be removed.
FetchBundle(RepositoryService_FetchBundleServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
CreateRepositoryFromBundle(RepositoryService_CreateRepositoryFromBundleServer) error
// GetConfig reads the target repository's gitconfig and streams its contents
// back. Returns a NotFound error in case no gitconfig was found.
GetConfig(*GetConfigRequest, RepositoryService_GetConfigServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
FindLicense(context.Context, *FindLicenseRequest) (*FindLicenseResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
GetInfoAttributes(*GetInfoAttributesRequest, RepositoryService_GetInfoAttributesServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
CalculateChecksum(context.Context, *CalculateChecksumRequest) (*CalculateChecksumResponse, error)
// Deprecated: Do not use.
// Cleanup is deprecated in favor of OptimizeRepository.
Cleanup(context.Context, *CleanupRequest) (*CleanupResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
GetSnapshot(*GetSnapshotRequest, RepositoryService_GetSnapshotServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
CreateRepositoryFromSnapshot(context.Context, *CreateRepositoryFromSnapshotRequest) (*CreateRepositoryFromSnapshotResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
GetRawChanges(*GetRawChangesRequest, RepositoryService_GetRawChangesServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
SearchFilesByContent(*SearchFilesByContentRequest, RepositoryService_SearchFilesByContentServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
SearchFilesByName(*SearchFilesByNameRequest, RepositoryService_SearchFilesByNameServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
RestoreCustomHooks(RepositoryService_RestoreCustomHooksServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
BackupCustomHooks(*BackupCustomHooksRequest, RepositoryService_BackupCustomHooksServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
GetObjectDirectorySize(context.Context, *GetObjectDirectorySizeRequest) (*GetObjectDirectorySizeResponse, error)
// RemoveRepository will move the repository to `+gitaly/tmp/<relative_path>_removed` and
// eventually remove it. This ensures that even on networked filesystems the
// data is actually removed even if there's someone still handling the data.
RemoveRepository(context.Context, *RemoveRepositoryRequest) (*RemoveRepositoryResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
RenameRepository(context.Context, *RenameRepositoryRequest) (*RenameRepositoryResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
ReplicateRepository(context.Context, *ReplicateRepositoryRequest) (*ReplicateRepositoryResponse, error)
// OptimizeRepository performs all maintenance tasks in a repository to keep
// it in an efficient state. It cleans up stale data, repacks objects,
diff --git a/proto/go/gitalypb/server.pb.go b/proto/go/gitalypb/server.pb.go
index a109a94d4..fde95b7b3 100644
--- a/proto/go/gitalypb/server.pb.go
+++ b/proto/go/gitalypb/server.pb.go
@@ -520,7 +520,7 @@ var file_server_proto_rawDesc = []byte{
0x73, 0x22, 0x2d, 0x0a, 0x13, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x79, 0x6e, 0x63, 0x65, 0x64,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x79, 0x6e, 0x63,
0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x73, 0x79, 0x6e, 0x63, 0x65, 0x64,
- 0x32, 0xf5, 0x01, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69,
+ 0x32, 0xf3, 0x01, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69,
0x63, 0x65, 0x12, 0x43, 0x0a, 0x0a, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f,
0x12, 0x19, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x67, 0x69,
@@ -530,16 +530,16 @@ var file_server_proto_rawDesc = []byte{
0x6c, 0x79, 0x2e, 0x44, 0x69, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c,
0x79, 0x2e, 0x44, 0x69, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73,
- 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0b, 0x43, 0x6c, 0x6f, 0x63,
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x0b, 0x43, 0x6c, 0x6f, 0x63,
0x6b, 0x53, 0x79, 0x6e, 0x63, 0x65, 0x64, 0x12, 0x1a, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79,
0x2e, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x79, 0x6e, 0x63, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x43, 0x6c, 0x6f,
0x63, 0x6b, 0x53, 0x79, 0x6e, 0x63, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
- 0x22, 0x00, 0x1a, 0x04, 0xf0, 0x97, 0x28, 0x01, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x6c,
- 0x61, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2d, 0x6f, 0x72,
- 0x67, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, 0x2f, 0x70, 0x72, 0x6f,
- 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x70, 0x62, 0x62, 0x06,
- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x1a, 0x04, 0xf0, 0x97, 0x28, 0x01, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62,
+ 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2d, 0x6f, 0x72, 0x67, 0x2f,
+ 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x33,
}
var (
diff --git a/proto/go/gitalypb/server_grpc.pb.go b/proto/go/gitalypb/server_grpc.pb.go
index 7c23f806f..2e3ea6a0c 100644
--- a/proto/go/gitalypb/server_grpc.pb.go
+++ b/proto/go/gitalypb/server_grpc.pb.go
@@ -18,7 +18,11 @@ const _ = grpc.SupportPackageIsVersion7
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type ServerServiceClient interface {
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
ServerInfo(ctx context.Context, in *ServerInfoRequest, opts ...grpc.CallOption) (*ServerInfoResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
DiskStatistics(ctx context.Context, in *DiskStatisticsRequest, opts ...grpc.CallOption) (*DiskStatisticsResponse, error)
// ClockSynced checks if machine clock is synced
// (the offset is less that the one passed in the request).
@@ -64,7 +68,11 @@ func (c *serverServiceClient) ClockSynced(ctx context.Context, in *ClockSyncedRe
// All implementations must embed UnimplementedServerServiceServer
// for forward compatibility
type ServerServiceServer interface {
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
ServerInfo(context.Context, *ServerInfoRequest) (*ServerInfoResponse, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
DiskStatistics(context.Context, *DiskStatisticsRequest) (*DiskStatisticsResponse, error)
// ClockSynced checks if machine clock is synced
// (the offset is less that the one passed in the request).
diff --git a/proto/go/gitalypb/transaction_grpc.pb.go b/proto/go/gitalypb/transaction_grpc.pb.go
index e0bff1022..0b3adf201 100644
--- a/proto/go/gitalypb/transaction_grpc.pb.go
+++ b/proto/go/gitalypb/transaction_grpc.pb.go
@@ -18,7 +18,28 @@ const _ = grpc.SupportPackageIsVersion7
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type RefTransactionClient interface {
+ // VoteTransactions casts a vote on a transaction to establish whether the
+ // node is doing the same change as all the other nodes part of the
+ // transaction. This RPC blocks until quorum has been reached, which may be
+ // _before_ all nodes have cast a vote.
+ //
+ // This RPC may return one of the following error codes:
+ //
+ // - `NotFound` in case the transaction could not be found.
+ // - `Canceled` in case the transaction has been canceled before quorum was
+ // reached.
VoteTransaction(ctx context.Context, in *VoteTransactionRequest, opts ...grpc.CallOption) (*VoteTransactionResponse, error)
+ // StopTransaction gracefully stops a transaction. This RPC can be used if
+ // only a subset of nodes executes specific code which may cause the
+ // transaction to fail. One such example is Git hooks, which only execute on
+ // the primary Gitaly noded. Other nodes which vote on this transaction will
+ // get a response with the `STOP` state being set.
+ //
+ // This RPC may return one of the following error codes:
+ //
+ // - `NotFound` in case the transaction could not be found.
+ // - `Canceled` in case the transaction has been canceled before quorum was
+ // reached.
StopTransaction(ctx context.Context, in *StopTransactionRequest, opts ...grpc.CallOption) (*StopTransactionResponse, error)
}
@@ -52,7 +73,28 @@ func (c *refTransactionClient) StopTransaction(ctx context.Context, in *StopTran
// All implementations must embed UnimplementedRefTransactionServer
// for forward compatibility
type RefTransactionServer interface {
+ // VoteTransactions casts a vote on a transaction to establish whether the
+ // node is doing the same change as all the other nodes part of the
+ // transaction. This RPC blocks until quorum has been reached, which may be
+ // _before_ all nodes have cast a vote.
+ //
+ // This RPC may return one of the following error codes:
+ //
+ // - `NotFound` in case the transaction could not be found.
+ // - `Canceled` in case the transaction has been canceled before quorum was
+ // reached.
VoteTransaction(context.Context, *VoteTransactionRequest) (*VoteTransactionResponse, error)
+ // StopTransaction gracefully stops a transaction. This RPC can be used if
+ // only a subset of nodes executes specific code which may cause the
+ // transaction to fail. One such example is Git hooks, which only execute on
+ // the primary Gitaly noded. Other nodes which vote on this transaction will
+ // get a response with the `STOP` state being set.
+ //
+ // This RPC may return one of the following error codes:
+ //
+ // - `NotFound` in case the transaction could not be found.
+ // - `Canceled` in case the transaction has been canceled before quorum was
+ // reached.
StopTransaction(context.Context, *StopTransactionRequest) (*StopTransactionResponse, error)
mustEmbedUnimplementedRefTransactionServer()
}
diff --git a/proto/go/gitalypb/wiki_grpc.pb.go b/proto/go/gitalypb/wiki_grpc.pb.go
index 3c1f5bf96..4c890725d 100644
--- a/proto/go/gitalypb/wiki_grpc.pb.go
+++ b/proto/go/gitalypb/wiki_grpc.pb.go
@@ -18,11 +18,19 @@ const _ = grpc.SupportPackageIsVersion7
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type WikiServiceClient interface {
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
WikiWritePage(ctx context.Context, opts ...grpc.CallOption) (WikiService_WikiWritePageClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
WikiUpdatePage(ctx context.Context, opts ...grpc.CallOption) (WikiService_WikiUpdatePageClient, 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)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
WikiGetAllPages(ctx context.Context, in *WikiGetAllPagesRequest, opts ...grpc.CallOption) (WikiService_WikiGetAllPagesClient, error)
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
WikiListPages(ctx context.Context, in *WikiListPagesRequest, opts ...grpc.CallOption) (WikiService_WikiListPagesClient, error)
}
@@ -202,11 +210,19 @@ func (x *wikiServiceWikiListPagesClient) Recv() (*WikiListPagesResponse, error)
// All implementations must embed UnimplementedWikiServiceServer
// for forward compatibility
type WikiServiceServer interface {
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
WikiWritePage(WikiService_WikiWritePageServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
WikiUpdatePage(WikiService_WikiUpdatePageServer) error
// WikiFindPage returns a stream because the page's raw_data field may be arbitrarily large.
WikiFindPage(*WikiFindPageRequest, WikiService_WikiFindPageServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
WikiGetAllPages(*WikiGetAllPagesRequest, WikiService_WikiGetAllPagesServer) error
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
WikiListPages(*WikiListPagesRequest, WikiService_WikiListPagesServer) error
mustEmbedUnimplementedWikiServiceServer()
}
diff --git a/proto/hook.proto b/proto/hook.proto
index 960c898ba..647943c65 100644
--- a/proto/hook.proto
+++ b/proto/hook.proto
@@ -11,26 +11,39 @@ option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb";
// Git hooks. These are typically invoked via the `gitaly-hooks` binary to
// ensure that the actual hook logic is executed in the context of the server.
service HookService {
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc PreReceiveHook(stream PreReceiveHookRequest) returns (stream PreReceiveHookResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc PostReceiveHook(stream PostReceiveHookRequest) returns (stream PostReceiveHookResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc UpdateHook(UpdateHookRequest) returns (stream UpdateHookResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc ReferenceTransactionHook(stream ReferenceTransactionHookRequest) returns (stream ReferenceTransactionHookResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
// PackObjectsHookWithSidechannel is an optimized version of PackObjectsHook that uses
// a unix socket side channel.
rpc PackObjectsHookWithSidechannel(PackObjectsHookWithSidechannelRequest) returns (PackObjectsHookWithSidechannelResponse) {
@@ -38,6 +51,7 @@ service HookService {
op: ACCESSOR
};
}
+
}
message PreReceiveHookRequest {
diff --git a/proto/namespace.proto b/proto/namespace.proto
index cc23a35ca..d74febfac 100644
--- a/proto/namespace.proto
+++ b/proto/namespace.proto
@@ -10,30 +10,43 @@ option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb";
// storage. Namespaces had been used before Gitaly migrated to hashed storages
// and shouldn't be used nowadays anymore.
service NamespaceService {
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc AddNamespace(AddNamespaceRequest) returns (AddNamespaceResponse) {
option (op_type) = {
op: MUTATOR
scope_level: STORAGE,
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc RemoveNamespace(RemoveNamespaceRequest) returns (RemoveNamespaceResponse) {
option (op_type) = {
op: MUTATOR
scope_level: STORAGE,
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc RenameNamespace(RenameNamespaceRequest) returns (RenameNamespaceResponse) {
option (op_type) = {
op: MUTATOR
scope_level: STORAGE,
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc NamespaceExists(NamespaceExistsRequest) returns (NamespaceExistsResponse) {
option (op_type) = {
op: ACCESSOR
scope_level: STORAGE,
};
}
+
}
message AddNamespaceRequest {
diff --git a/proto/objectpool.proto b/proto/objectpool.proto
index 8258e09db..92258d90c 100644
--- a/proto/objectpool.proto
+++ b/proto/objectpool.proto
@@ -12,11 +12,17 @@ option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb";
// satellite repositories in order to deduplicate common objects between them.
// This is mostly used in the contexet of repository forks.
service ObjectPoolService {
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc CreateObjectPool(CreateObjectPoolRequest) returns (CreateObjectPoolResponse) {
option (op_type) = {
op: MUTATOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc DeleteObjectPool(DeleteObjectPoolRequest) returns (DeleteObjectPoolResponse) {
option (op_type) = {
op: MUTATOR
@@ -30,26 +36,38 @@ service ObjectPoolService {
};
}
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc ReduplicateRepository(ReduplicateRepositoryRequest) returns (ReduplicateRepositoryResponse) {
option (op_type) = {
op: MUTATOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc DisconnectGitAlternates(DisconnectGitAlternatesRequest) returns (DisconnectGitAlternatesResponse) {
option (op_type) = {
op: MUTATOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc FetchIntoObjectPool(FetchIntoObjectPoolRequest) returns (FetchIntoObjectPoolResponse) {
option (op_type) = {
op: MUTATOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc GetObjectPool(GetObjectPoolRequest) returns (GetObjectPoolResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
}
// Creates an object pool from the repository. The client is responsible for
diff --git a/proto/operations.proto b/proto/operations.proto
index 023ed3c8b..c4cfa05bb 100644
--- a/proto/operations.proto
+++ b/proto/operations.proto
@@ -14,16 +14,25 @@ option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb";
// treated as untrusted. Any reference update is thus checked against GitLab's
// '/allowed' endpoint.
service OperationService {
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc UserCreateBranch(UserCreateBranchRequest) returns (UserCreateBranchResponse) {
option (op_type) = {
op: MUTATOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc UserUpdateBranch(UserUpdateBranchRequest) returns (UserUpdateBranchResponse) {
option (op_type) = {
op: MUTATOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc UserDeleteBranch(UserDeleteBranchRequest) returns (UserDeleteBranchResponse) {
option (op_type) = {
op: MUTATOR
@@ -36,6 +45,9 @@ service OperationService {
op: MUTATOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc UserDeleteTag(UserDeleteTagRequest) returns (UserDeleteTagResponse) {
option (op_type) = {
op: MUTATOR
@@ -140,6 +152,7 @@ service OperationService {
op: MUTATOR
};
}
+
}
message UserCreateBranchRequest {
diff --git a/proto/praefect.proto b/proto/praefect.proto
index 917be6ebb..ad0ae5450 100644
--- a/proto/praefect.proto
+++ b/proto/praefect.proto
@@ -13,6 +13,8 @@ option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb";
service PraefectInfoService {
option (intercepted) = true;
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc RepositoryReplicas(RepositoryReplicasRequest) returns (RepositoryReplicasResponse);
// DatalossCheck checks for unavailable repositories.
@@ -36,8 +38,10 @@ service PraefectInfoService {
// from a Praefect node that does not yet know about a new node. As assignments of unconfigured storages are ignored, replication
// factor of repositories assigned to a storage node removed from the cluster is effectively decreased.
rpc SetReplicationFactor(SetReplicationFactorRequest) returns (SetReplicationFactorResponse);
+
// GetRepositoryMetadata returns the cluster metadata for a repository. Returns NotFound if the repository does not exist.
rpc GetRepositoryMetadata(GetRepositoryMetadataRequest) returns (GetRepositoryMetadataResponse);
+
}
// MarkUnverifiedRequest specifies the replicas which to mark unverified.
diff --git a/proto/ref.proto b/proto/ref.proto
index 8980e6443..afdf4c47a 100644
--- a/proto/ref.proto
+++ b/proto/ref.proto
@@ -10,49 +10,72 @@ option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb";
// RefService is a service that provides RPCs to list and modify Git references.
service RefService {
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc FindDefaultBranchName(FindDefaultBranchNameRequest) returns (FindDefaultBranchNameResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc FindAllBranchNames(FindAllBranchNamesRequest) returns (stream FindAllBranchNamesResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc FindAllTagNames(FindAllTagNamesRequest) returns (stream FindAllTagNamesResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
// Return a stream so we can divide the response in chunks of branches
rpc FindLocalBranches(FindLocalBranchesRequest) returns (stream FindLocalBranchesResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc FindAllBranches(FindAllBranchesRequest) returns (stream FindAllBranchesResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
// Returns a stream of tags repository has.
rpc FindAllTags(FindAllTagsRequest) returns (stream FindAllTagsResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc FindTag(FindTagRequest) returns (FindTagResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc FindAllRemoteBranches(FindAllRemoteBranchesRequest) returns (stream FindAllRemoteBranchesResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc RefExists(RefExistsRequest) returns (RefExistsResponse) {
option (op_type) = {
op: ACCESSOR
@@ -66,17 +89,27 @@ service RefService {
op: ACCESSOR
};
}
+
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc DeleteRefs(DeleteRefsRequest) returns (DeleteRefsResponse) {
option (op_type) = {
op: MUTATOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc ListBranchNamesContainingCommit(ListBranchNamesContainingCommitRequest) returns (stream ListBranchNamesContainingCommitResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc ListTagNamesContainingCommit(ListTagNamesContainingCommitRequest) returns (stream ListTagNamesContainingCommitResponse) {
option (op_type) = {
op: ACCESSOR
@@ -93,6 +126,9 @@ service RefService {
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc GetTagMessages(GetTagMessagesRequest) returns (stream GetTagMessagesResponse) {
option (op_type) = {
op: ACCESSOR
@@ -124,6 +160,7 @@ service RefService {
op: ACCESSOR
};
}
+
}
message FindDefaultBranchNameRequest {
diff --git a/proto/remote.proto b/proto/remote.proto
index 003c06105..2cf3a60aa 100644
--- a/proto/remote.proto
+++ b/proto/remote.proto
@@ -21,6 +21,9 @@ service RemoteService {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc FindRemoteRepository(FindRemoteRepositoryRequest) returns (FindRemoteRepositoryResponse) {
option (op_type) = {
op: ACCESSOR
diff --git a/proto/repository.proto b/proto/repository.proto
index c203ac2db..dc948a302 100644
--- a/proto/repository.proto
+++ b/proto/repository.proto
@@ -9,6 +9,9 @@ option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb";
// RepositoryService is a service providing RPCs accessing repositories as a whole.
service RepositoryService {
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc RepositoryExists(RepositoryExistsRequest) returns (RepositoryExistsResponse) {
option (op_type) = {
op: ACCESSOR
@@ -55,11 +58,16 @@ service RepositoryService {
};
}
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc RepositorySize(RepositorySizeRequest) returns (RepositorySizeResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc ApplyGitattributes(ApplyGitattributesRequest) returns (ApplyGitattributesResponse) {
option (op_type) = {
op: MUTATOR
@@ -73,16 +81,25 @@ service RepositoryService {
op: MUTATOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc CreateRepository(CreateRepositoryRequest) returns (CreateRepositoryResponse) {
option (op_type) = {
op: MUTATOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc GetArchive(GetArchiveRequest) returns (stream GetArchiveResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc HasLocalBranches(HasLocalBranchesRequest) returns (HasLocalBranchesResponse) {
option (op_type) = {
op: ACCESSOR
@@ -96,27 +113,41 @@ service RepositoryService {
op: MUTATOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc Fsck(FsckRequest) returns (FsckResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc WriteRef(WriteRefRequest) returns (WriteRefResponse) {
option (op_type) = {
op: MUTATOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc FindMergeBase(FindMergeBaseRequest) returns (FindMergeBaseResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc CreateFork(CreateForkRequest) returns (CreateForkResponse) {
option (op_type) = {
op: MUTATOR
};
}
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc CreateRepositoryFromURL(CreateRepositoryFromURLRequest) returns (CreateRepositoryFromURLResponse) {
option (op_type) = {
op: MUTATOR
@@ -147,6 +178,8 @@ service RepositoryService {
};
}
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc CreateRepositoryFromBundle(stream CreateRepositoryFromBundleRequest) returns (CreateRepositoryFromBundleResponse) {
option (op_type) = {
op: MUTATOR
@@ -161,16 +194,24 @@ service RepositoryService {
};
}
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc FindLicense(FindLicenseRequest) returns (FindLicenseResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc GetInfoAttributes(GetInfoAttributesRequest) returns (stream GetInfoAttributesResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc CalculateChecksum(CalculateChecksumRequest) returns (CalculateChecksumResponse) {
option (op_type) = {
op: ACCESSOR
@@ -185,46 +226,70 @@ service RepositoryService {
};
}
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc GetSnapshot(GetSnapshotRequest) returns (stream GetSnapshotResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc CreateRepositoryFromSnapshot(CreateRepositoryFromSnapshotRequest) returns (CreateRepositoryFromSnapshotResponse) {
option (op_type) = {
op: MUTATOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc GetRawChanges(GetRawChangesRequest) returns (stream GetRawChangesResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc SearchFilesByContent(SearchFilesByContentRequest) returns (stream SearchFilesByContentResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc SearchFilesByName(SearchFilesByNameRequest) returns (stream SearchFilesByNameResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc RestoreCustomHooks(stream RestoreCustomHooksRequest) returns (RestoreCustomHooksResponse) {
option (op_type) = {
op: MUTATOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc BackupCustomHooks(BackupCustomHooksRequest) returns (stream BackupCustomHooksResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc GetObjectDirectorySize(GetObjectDirectorySizeRequest) returns (GetObjectDirectorySizeResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
// RemoveRepository will move the repository to `+gitaly/tmp/<relative_path>_removed` and
// eventually remove it. This ensures that even on networked filesystems the
// data is actually removed even if there's someone still handling the data.
@@ -233,11 +298,17 @@ service RepositoryService {
op: MUTATOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc RenameRepository(RenameRepositoryRequest) returns (RenameRepositoryResponse) {
option (op_type) = {
op: MUTATOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc ReplicateRepository(ReplicateRepositoryRequest) returns (ReplicateRepositoryResponse) {
option (op_type) = {
op: MUTATOR
diff --git a/proto/server.proto b/proto/server.proto
index fc5901036..d3d3c2cfd 100644
--- a/proto/server.proto
+++ b/proto/server.proto
@@ -10,11 +10,18 @@ option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb";
service ServerService {
option (intercepted) = true;
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc ServerInfo(ServerInfoRequest) returns (ServerInfoResponse);
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc DiskStatistics(DiskStatisticsRequest) returns (DiskStatisticsResponse);
+
// ClockSynced checks if machine clock is synced
// (the offset is less that the one passed in the request).
- rpc ClockSynced(ClockSyncedRequest) returns (ClockSyncedResponse) {}
+ rpc ClockSynced(ClockSyncedRequest) returns (ClockSyncedResponse);
+
}
message ServerInfoRequest {
diff --git a/proto/transaction.proto b/proto/transaction.proto
index cb76e2b6f..edb399fba 100644
--- a/proto/transaction.proto
+++ b/proto/transaction.proto
@@ -15,9 +15,31 @@ option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb";
service RefTransaction {
option (intercepted) = true;
+ // VoteTransactions casts a vote on a transaction to establish whether the
+ // node is doing the same change as all the other nodes part of the
+ // transaction. This RPC blocks until quorum has been reached, which may be
+ // _before_ all nodes have cast a vote.
+ //
+ // This RPC may return one of the following error codes:
+ //
+ // - `NotFound` in case the transaction could not be found.
+ // - `Canceled` in case the transaction has been canceled before quorum was
+ // reached.
rpc VoteTransaction (VoteTransactionRequest) returns (VoteTransactionResponse);
+ // StopTransaction gracefully stops a transaction. This RPC can be used if
+ // only a subset of nodes executes specific code which may cause the
+ // transaction to fail. One such example is Git hooks, which only execute on
+ // the primary Gitaly noded. Other nodes which vote on this transaction will
+ // get a response with the `STOP` state being set.
+ //
+ // This RPC may return one of the following error codes:
+ //
+ // - `NotFound` in case the transaction could not be found.
+ // - `Canceled` in case the transaction has been canceled before quorum was
+ // reached.
rpc StopTransaction (StopTransactionRequest) returns (StopTransactionResponse);
+
}
message VoteTransactionRequest {
diff --git a/proto/wiki.proto b/proto/wiki.proto
index bf5f62320..b53b6b717 100644
--- a/proto/wiki.proto
+++ b/proto/wiki.proto
@@ -11,34 +11,46 @@ option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb";
// service is deprecated and should not be used anymore. Instead, all
// functionality to implement Wikis should use Git-based RPCS.
service WikiService {
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc WikiWritePage(stream WikiWritePageRequest) returns (WikiWritePageResponse) {
option (op_type) = {
op: MUTATOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc WikiUpdatePage(stream WikiUpdatePageRequest) returns (WikiUpdatePageResponse) {
option (op_type) = {
op: MUTATOR
};
}
+
// WikiFindPage returns a stream because the page's raw_data field may be arbitrarily large.
rpc WikiFindPage(WikiFindPageRequest) returns (stream WikiFindPageResponse) {
option (op_type) = {
op: ACCESSOR
};
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc WikiGetAllPages(WikiGetAllPagesRequest) returns (stream WikiGetAllPagesResponse) {
option (op_type) = {
op: ACCESSOR
};
-
}
+
+ // protolint:disable:this RPCS_HAVE_COMMENT
+ // This comment is left unintentionally blank.
rpc WikiListPages(WikiListPagesRequest) returns (stream WikiListPagesResponse) {
option (op_type) = {
op: ACCESSOR
};
-
}
+
}
message WikiCommitDetails {
diff --git a/ruby/proto/gitaly/blob_services_pb.rb b/ruby/proto/gitaly/blob_services_pb.rb
index 1e726517b..52cd18114 100644
--- a/ruby/proto/gitaly/blob_services_pb.rb
+++ b/ruby/proto/gitaly/blob_services_pb.rb
@@ -20,6 +20,8 @@ module Gitaly
# ID. We use a stream to return a chunked arbitrarily large binary
# response
rpc :GetBlob, ::Gitaly::GetBlobRequest, stream(::Gitaly::GetBlobResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :GetBlobs, ::Gitaly::GetBlobsRequest, stream(::Gitaly::GetBlobsResponse)
# ListBlobs will list all blobs reachable from a given set of revisions by
# doing a graph walk. It is not valid to pass revisions which do not resolve
diff --git a/ruby/proto/gitaly/cleanup_services_pb.rb b/ruby/proto/gitaly/cleanup_services_pb.rb
index 6fdbd4304..4cdc4abea 100644
--- a/ruby/proto/gitaly/cleanup_services_pb.rb
+++ b/ruby/proto/gitaly/cleanup_services_pb.rb
@@ -15,6 +15,8 @@ module Gitaly
self.unmarshal_class_method = :decode
self.service_name = 'gitaly.CleanupService'
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :ApplyBfgObjectMapStream, stream(::Gitaly::ApplyBfgObjectMapStreamRequest), stream(::Gitaly::ApplyBfgObjectMapStreamResponse)
end
diff --git a/ruby/proto/gitaly/commit_services_pb.rb b/ruby/proto/gitaly/commit_services_pb.rb
index 0551e05de..5fc0c040d 100644
--- a/ruby/proto/gitaly/commit_services_pb.rb
+++ b/ruby/proto/gitaly/commit_services_pb.rb
@@ -23,26 +23,64 @@ module Gitaly
# ListAllCommits lists all commits present in the repository, including
# those not reachable by any reference.
rpc :ListAllCommits, ::Gitaly::ListAllCommitsRequest, stream(::Gitaly::ListAllCommitsResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :CommitIsAncestor, ::Gitaly::CommitIsAncestorRequest, ::Gitaly::CommitIsAncestorResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :TreeEntry, ::Gitaly::TreeEntryRequest, stream(::Gitaly::TreeEntryResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :CountCommits, ::Gitaly::CountCommitsRequest, ::Gitaly::CountCommitsResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :CountDivergingCommits, ::Gitaly::CountDivergingCommitsRequest, ::Gitaly::CountDivergingCommitsResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :GetTreeEntries, ::Gitaly::GetTreeEntriesRequest, stream(::Gitaly::GetTreeEntriesResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :ListFiles, ::Gitaly::ListFilesRequest, stream(::Gitaly::ListFilesResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :FindCommit, ::Gitaly::FindCommitRequest, ::Gitaly::FindCommitResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :CommitStats, ::Gitaly::CommitStatsRequest, ::Gitaly::CommitStatsResponse
# Use a stream to paginate the result set
rpc :FindAllCommits, ::Gitaly::FindAllCommitsRequest, stream(::Gitaly::FindAllCommitsResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :FindCommits, ::Gitaly::FindCommitsRequest, stream(::Gitaly::FindCommitsResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :CommitLanguages, ::Gitaly::CommitLanguagesRequest, ::Gitaly::CommitLanguagesResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :RawBlame, ::Gitaly::RawBlameRequest, stream(::Gitaly::RawBlameResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :LastCommitForPath, ::Gitaly::LastCommitForPathRequest, ::Gitaly::LastCommitForPathResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :ListLastCommitsForTree, ::Gitaly::ListLastCommitsForTreeRequest, stream(::Gitaly::ListLastCommitsForTreeResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :CommitsByMessage, ::Gitaly::CommitsByMessageRequest, stream(::Gitaly::CommitsByMessageResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :ListCommitsByOid, ::Gitaly::ListCommitsByOidRequest, stream(::Gitaly::ListCommitsByOidResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :ListCommitsByRefName, ::Gitaly::ListCommitsByRefNameRequest, stream(::Gitaly::ListCommitsByRefNameResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :FilterShasWithSignatures, stream(::Gitaly::FilterShasWithSignaturesRequest), stream(::Gitaly::FilterShasWithSignaturesResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :GetCommitSignatures, ::Gitaly::GetCommitSignaturesRequest, stream(::Gitaly::GetCommitSignaturesResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :GetCommitMessages, ::Gitaly::GetCommitMessagesRequest, stream(::Gitaly::GetCommitMessagesResponse)
# CheckObjectsExist will check for the existence of revisions against a
# repository. It returns two sets of data. An array containing the revisions
diff --git a/ruby/proto/gitaly/conflicts_services_pb.rb b/ruby/proto/gitaly/conflicts_services_pb.rb
index 344f5afa2..245cdd2eb 100644
--- a/ruby/proto/gitaly/conflicts_services_pb.rb
+++ b/ruby/proto/gitaly/conflicts_services_pb.rb
@@ -16,6 +16,8 @@ module Gitaly
self.unmarshal_class_method = :decode
self.service_name = 'gitaly.ConflictsService'
+ # ListConflictFiles returns all conflicting files which result from a merge
+ # of two specified commit objects.
rpc :ListConflictFiles, ::Gitaly::ListConflictFilesRequest, stream(::Gitaly::ListConflictFilesResponse)
# ResolveConflicts tries to resolve a conflicting merge with a set of
# user-provided merge resolutions. If resolving the conflict succeeds, the
diff --git a/ruby/proto/gitaly/diff_services_pb.rb b/ruby/proto/gitaly/diff_services_pb.rb
index 071c98c36..137eca079 100644
--- a/ruby/proto/gitaly/diff_services_pb.rb
+++ b/ruby/proto/gitaly/diff_services_pb.rb
@@ -20,8 +20,14 @@ module Gitaly
rpc :CommitDiff, ::Gitaly::CommitDiffRequest, stream(::Gitaly::CommitDiffResponse)
# Return a stream so we can divide the response in chunks of deltas
rpc :CommitDelta, ::Gitaly::CommitDeltaRequest, stream(::Gitaly::CommitDeltaResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :RawDiff, ::Gitaly::RawDiffRequest, stream(::Gitaly::RawDiffResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :RawPatch, ::Gitaly::RawPatchRequest, stream(::Gitaly::RawPatchResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :DiffStats, ::Gitaly::DiffStatsRequest, stream(::Gitaly::DiffStatsResponse)
# Return a list of files changed along with the status of each file
rpc :FindChangedPaths, ::Gitaly::FindChangedPathsRequest, stream(::Gitaly::FindChangedPathsResponse)
diff --git a/ruby/proto/gitaly/hook_services_pb.rb b/ruby/proto/gitaly/hook_services_pb.rb
index 6ecf549e9..6482c34a0 100644
--- a/ruby/proto/gitaly/hook_services_pb.rb
+++ b/ruby/proto/gitaly/hook_services_pb.rb
@@ -17,9 +17,17 @@ module Gitaly
self.unmarshal_class_method = :decode
self.service_name = 'gitaly.HookService'
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :PreReceiveHook, stream(::Gitaly::PreReceiveHookRequest), stream(::Gitaly::PreReceiveHookResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :PostReceiveHook, stream(::Gitaly::PostReceiveHookRequest), stream(::Gitaly::PostReceiveHookResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :UpdateHook, ::Gitaly::UpdateHookRequest, stream(::Gitaly::UpdateHookResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :ReferenceTransactionHook, stream(::Gitaly::ReferenceTransactionHookRequest), stream(::Gitaly::ReferenceTransactionHookResponse)
# PackObjectsHookWithSidechannel is an optimized version of PackObjectsHook that uses
# a unix socket side channel.
diff --git a/ruby/proto/gitaly/namespace_services_pb.rb b/ruby/proto/gitaly/namespace_services_pb.rb
index 09174f063..f5bb1b6f6 100644
--- a/ruby/proto/gitaly/namespace_services_pb.rb
+++ b/ruby/proto/gitaly/namespace_services_pb.rb
@@ -17,9 +17,17 @@ module Gitaly
self.unmarshal_class_method = :decode
self.service_name = 'gitaly.NamespaceService'
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :AddNamespace, ::Gitaly::AddNamespaceRequest, ::Gitaly::AddNamespaceResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :RemoveNamespace, ::Gitaly::RemoveNamespaceRequest, ::Gitaly::RemoveNamespaceResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :RenameNamespace, ::Gitaly::RenameNamespaceRequest, ::Gitaly::RenameNamespaceResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :NamespaceExists, ::Gitaly::NamespaceExistsRequest, ::Gitaly::NamespaceExistsResponse
end
diff --git a/ruby/proto/gitaly/objectpool_services_pb.rb b/ruby/proto/gitaly/objectpool_services_pb.rb
index 5984af019..6373d2b30 100644
--- a/ruby/proto/gitaly/objectpool_services_pb.rb
+++ b/ruby/proto/gitaly/objectpool_services_pb.rb
@@ -18,13 +18,25 @@ module Gitaly
self.unmarshal_class_method = :decode
self.service_name = 'gitaly.ObjectPoolService'
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :CreateObjectPool, ::Gitaly::CreateObjectPoolRequest, ::Gitaly::CreateObjectPoolResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :DeleteObjectPool, ::Gitaly::DeleteObjectPoolRequest, ::Gitaly::DeleteObjectPoolResponse
# Repositories are assumed to be stored on the same disk
rpc :LinkRepositoryToObjectPool, ::Gitaly::LinkRepositoryToObjectPoolRequest, ::Gitaly::LinkRepositoryToObjectPoolResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :ReduplicateRepository, ::Gitaly::ReduplicateRepositoryRequest, ::Gitaly::ReduplicateRepositoryResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :DisconnectGitAlternates, ::Gitaly::DisconnectGitAlternatesRequest, ::Gitaly::DisconnectGitAlternatesResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :FetchIntoObjectPool, ::Gitaly::FetchIntoObjectPoolRequest, ::Gitaly::FetchIntoObjectPoolResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :GetObjectPool, ::Gitaly::GetObjectPoolRequest, ::Gitaly::GetObjectPoolResponse
end
diff --git a/ruby/proto/gitaly/operations_services_pb.rb b/ruby/proto/gitaly/operations_services_pb.rb
index 13a98c011..3774276eb 100644
--- a/ruby/proto/gitaly/operations_services_pb.rb
+++ b/ruby/proto/gitaly/operations_services_pb.rb
@@ -18,11 +18,19 @@ module Gitaly
self.unmarshal_class_method = :decode
self.service_name = 'gitaly.OperationService'
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :UserCreateBranch, ::Gitaly::UserCreateBranchRequest, ::Gitaly::UserCreateBranchResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :UserUpdateBranch, ::Gitaly::UserUpdateBranchRequest, ::Gitaly::UserUpdateBranchResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :UserDeleteBranch, ::Gitaly::UserDeleteBranchRequest, ::Gitaly::UserDeleteBranchResponse
# UserCreateTag creates a new tag.
rpc :UserCreateTag, ::Gitaly::UserCreateTagRequest, ::Gitaly::UserCreateTagResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :UserDeleteTag, ::Gitaly::UserDeleteTagRequest, ::Gitaly::UserDeleteTagResponse
# UserMergeRef creates a merge commit and updates target_ref to point to that
# new commit. The first parent of the merge commit (the main line) is taken
diff --git a/ruby/proto/gitaly/praefect_services_pb.rb b/ruby/proto/gitaly/praefect_services_pb.rb
index 752bef266..586f9982f 100644
--- a/ruby/proto/gitaly/praefect_services_pb.rb
+++ b/ruby/proto/gitaly/praefect_services_pb.rb
@@ -16,6 +16,8 @@ module Gitaly
self.unmarshal_class_method = :decode
self.service_name = 'gitaly.PraefectInfoService'
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :RepositoryReplicas, ::Gitaly::RepositoryReplicasRequest, ::Gitaly::RepositoryReplicasResponse
# DatalossCheck checks for unavailable repositories.
rpc :DatalossCheck, ::Gitaly::DatalossCheckRequest, ::Gitaly::DatalossCheckResponse
diff --git a/ruby/proto/gitaly/ref_services_pb.rb b/ruby/proto/gitaly/ref_services_pb.rb
index a508e3c7a..06c02a3aa 100644
--- a/ruby/proto/gitaly/ref_services_pb.rb
+++ b/ruby/proto/gitaly/ref_services_pb.rb
@@ -15,28 +15,50 @@ module Gitaly
self.unmarshal_class_method = :decode
self.service_name = 'gitaly.RefService'
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :FindDefaultBranchName, ::Gitaly::FindDefaultBranchNameRequest, ::Gitaly::FindDefaultBranchNameResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :FindAllBranchNames, ::Gitaly::FindAllBranchNamesRequest, stream(::Gitaly::FindAllBranchNamesResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :FindAllTagNames, ::Gitaly::FindAllTagNamesRequest, stream(::Gitaly::FindAllTagNamesResponse)
# Return a stream so we can divide the response in chunks of branches
rpc :FindLocalBranches, ::Gitaly::FindLocalBranchesRequest, stream(::Gitaly::FindLocalBranchesResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :FindAllBranches, ::Gitaly::FindAllBranchesRequest, stream(::Gitaly::FindAllBranchesResponse)
# Returns a stream of tags repository has.
rpc :FindAllTags, ::Gitaly::FindAllTagsRequest, stream(::Gitaly::FindAllTagsResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :FindTag, ::Gitaly::FindTagRequest, ::Gitaly::FindTagResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :FindAllRemoteBranches, ::Gitaly::FindAllRemoteBranchesRequest, stream(::Gitaly::FindAllRemoteBranchesResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :RefExists, ::Gitaly::RefExistsRequest, ::Gitaly::RefExistsResponse
# FindBranch finds a branch by its unqualified name (like "master") and
# returns the commit it currently points to.
rpc :FindBranch, ::Gitaly::FindBranchRequest, ::Gitaly::FindBranchResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :DeleteRefs, ::Gitaly::DeleteRefsRequest, ::Gitaly::DeleteRefsResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :ListBranchNamesContainingCommit, ::Gitaly::ListBranchNamesContainingCommitRequest, stream(::Gitaly::ListBranchNamesContainingCommitResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :ListTagNamesContainingCommit, ::Gitaly::ListTagNamesContainingCommitRequest, stream(::Gitaly::ListTagNamesContainingCommitResponse)
# GetTagSignatures returns signatures for annotated tags resolved from a set of revisions. Revisions
# which don't resolve to an annotated tag are silently discarded. Revisions which cannot be resolved
# result in an error. Tags which are annotated but not signed will return a TagSignature response
# which has no signature, but its unsigned contents will still be returned.
rpc :GetTagSignatures, ::Gitaly::GetTagSignaturesRequest, stream(::Gitaly::GetTagSignaturesResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :GetTagMessages, ::Gitaly::GetTagMessagesRequest, stream(::Gitaly::GetTagMessagesResponse)
# PackRefs is deprecated in favor of OptimizeRepository.
rpc :PackRefs, ::Gitaly::PackRefsRequest, ::Gitaly::PackRefsResponse
diff --git a/ruby/proto/gitaly/remote_services_pb.rb b/ruby/proto/gitaly/remote_services_pb.rb
index c8fce6ae1..7cda3ead5 100644
--- a/ruby/proto/gitaly/remote_services_pb.rb
+++ b/ruby/proto/gitaly/remote_services_pb.rb
@@ -22,6 +22,8 @@ module Gitaly
# deleted from the mirror. UpdateRemoteMirror updates all tags. Branches are updated if they match
# the patterns specified in the requests.
rpc :UpdateRemoteMirror, stream(::Gitaly::UpdateRemoteMirrorRequest), ::Gitaly::UpdateRemoteMirrorResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :FindRemoteRepository, ::Gitaly::FindRemoteRepositoryRequest, ::Gitaly::FindRemoteRepositoryResponse
# FindRemoteRootRef tries to find the root reference of a remote
# repository. The root reference is the default branch as pointed to by
diff --git a/ruby/proto/gitaly/repository_services_pb.rb b/ruby/proto/gitaly/repository_services_pb.rb
index 25f339ac2..5d6cb5141 100644
--- a/ruby/proto/gitaly/repository_services_pb.rb
+++ b/ruby/proto/gitaly/repository_services_pb.rb
@@ -15,6 +15,8 @@ module Gitaly
self.unmarshal_class_method = :decode
self.service_name = 'gitaly.RepositoryService'
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :RepositoryExists, ::Gitaly::RepositoryExistsRequest, ::Gitaly::RepositoryExistsResponse
# RepackIncremental is deprecated in favor of OptimizeRepository.
rpc :RepackIncremental, ::Gitaly::RepackIncrementalRequest, ::Gitaly::RepackIncrementalResponse
@@ -26,21 +28,41 @@ module Gitaly
rpc :GarbageCollect, ::Gitaly::GarbageCollectRequest, ::Gitaly::GarbageCollectResponse
# WriteCommitGraph is deprecated in favor of OptimizeRepository.
rpc :WriteCommitGraph, ::Gitaly::WriteCommitGraphRequest, ::Gitaly::WriteCommitGraphResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :RepositorySize, ::Gitaly::RepositorySizeRequest, ::Gitaly::RepositorySizeResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :ApplyGitattributes, ::Gitaly::ApplyGitattributesRequest, ::Gitaly::ApplyGitattributesResponse
# FetchRemote fetches references from a remote repository into the local
# repository.
rpc :FetchRemote, ::Gitaly::FetchRemoteRequest, ::Gitaly::FetchRemoteResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :CreateRepository, ::Gitaly::CreateRepositoryRequest, ::Gitaly::CreateRepositoryResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :GetArchive, ::Gitaly::GetArchiveRequest, stream(::Gitaly::GetArchiveResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :HasLocalBranches, ::Gitaly::HasLocalBranchesRequest, ::Gitaly::HasLocalBranchesResponse
# FetchSourceBranch fetches a branch from a second (potentially remote)
# repository into the given repository.
rpc :FetchSourceBranch, ::Gitaly::FetchSourceBranchRequest, ::Gitaly::FetchSourceBranchResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :Fsck, ::Gitaly::FsckRequest, ::Gitaly::FsckResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :WriteRef, ::Gitaly::WriteRefRequest, ::Gitaly::WriteRefResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :FindMergeBase, ::Gitaly::FindMergeBaseRequest, ::Gitaly::FindMergeBaseResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :CreateFork, ::Gitaly::CreateForkRequest, ::Gitaly::CreateForkResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :CreateRepositoryFromURL, ::Gitaly::CreateRepositoryFromURLRequest, ::Gitaly::CreateRepositoryFromURLResponse
# CreateBundle creates a bundle from all refs
rpc :CreateBundle, ::Gitaly::CreateBundleRequest, stream(::Gitaly::CreateBundleResponse)
@@ -51,28 +73,56 @@ module Gitaly
# Refs will be mirrored to the target repository with the refspec
# "+refs/*:refs/*" and refs that do not exist in the bundle will be removed.
rpc :FetchBundle, stream(::Gitaly::FetchBundleRequest), ::Gitaly::FetchBundleResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :CreateRepositoryFromBundle, stream(::Gitaly::CreateRepositoryFromBundleRequest), ::Gitaly::CreateRepositoryFromBundleResponse
# GetConfig reads the target repository's gitconfig and streams its contents
# back. Returns a NotFound error in case no gitconfig was found.
rpc :GetConfig, ::Gitaly::GetConfigRequest, stream(::Gitaly::GetConfigResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :FindLicense, ::Gitaly::FindLicenseRequest, ::Gitaly::FindLicenseResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :GetInfoAttributes, ::Gitaly::GetInfoAttributesRequest, stream(::Gitaly::GetInfoAttributesResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :CalculateChecksum, ::Gitaly::CalculateChecksumRequest, ::Gitaly::CalculateChecksumResponse
# Cleanup is deprecated in favor of OptimizeRepository.
rpc :Cleanup, ::Gitaly::CleanupRequest, ::Gitaly::CleanupResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :GetSnapshot, ::Gitaly::GetSnapshotRequest, stream(::Gitaly::GetSnapshotResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :CreateRepositoryFromSnapshot, ::Gitaly::CreateRepositoryFromSnapshotRequest, ::Gitaly::CreateRepositoryFromSnapshotResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :GetRawChanges, ::Gitaly::GetRawChangesRequest, stream(::Gitaly::GetRawChangesResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :SearchFilesByContent, ::Gitaly::SearchFilesByContentRequest, stream(::Gitaly::SearchFilesByContentResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :SearchFilesByName, ::Gitaly::SearchFilesByNameRequest, stream(::Gitaly::SearchFilesByNameResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :RestoreCustomHooks, stream(::Gitaly::RestoreCustomHooksRequest), ::Gitaly::RestoreCustomHooksResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :BackupCustomHooks, ::Gitaly::BackupCustomHooksRequest, stream(::Gitaly::BackupCustomHooksResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :GetObjectDirectorySize, ::Gitaly::GetObjectDirectorySizeRequest, ::Gitaly::GetObjectDirectorySizeResponse
# RemoveRepository will move the repository to `+gitaly/tmp/<relative_path>_removed` and
# eventually remove it. This ensures that even on networked filesystems the
# data is actually removed even if there's someone still handling the data.
rpc :RemoveRepository, ::Gitaly::RemoveRepositoryRequest, ::Gitaly::RemoveRepositoryResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :RenameRepository, ::Gitaly::RenameRepositoryRequest, ::Gitaly::RenameRepositoryResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :ReplicateRepository, ::Gitaly::ReplicateRepositoryRequest, ::Gitaly::ReplicateRepositoryResponse
# OptimizeRepository performs all maintenance tasks in a repository to keep
# it in an efficient state. It cleans up stale data, repacks objects,
diff --git a/ruby/proto/gitaly/server_services_pb.rb b/ruby/proto/gitaly/server_services_pb.rb
index 1d76e8667..8b0c954df 100644
--- a/ruby/proto/gitaly/server_services_pb.rb
+++ b/ruby/proto/gitaly/server_services_pb.rb
@@ -15,7 +15,11 @@ module Gitaly
self.unmarshal_class_method = :decode
self.service_name = 'gitaly.ServerService'
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :ServerInfo, ::Gitaly::ServerInfoRequest, ::Gitaly::ServerInfoResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :DiskStatistics, ::Gitaly::DiskStatisticsRequest, ::Gitaly::DiskStatisticsResponse
# ClockSynced checks if machine clock is synced
# (the offset is less that the one passed in the request).
diff --git a/ruby/proto/gitaly/transaction_services_pb.rb b/ruby/proto/gitaly/transaction_services_pb.rb
index f3c804547..3b7138c48 100644
--- a/ruby/proto/gitaly/transaction_services_pb.rb
+++ b/ruby/proto/gitaly/transaction_services_pb.rb
@@ -19,7 +19,28 @@ module Gitaly
self.unmarshal_class_method = :decode
self.service_name = 'gitaly.RefTransaction'
+ # VoteTransactions casts a vote on a transaction to establish whether the
+ # node is doing the same change as all the other nodes part of the
+ # transaction. This RPC blocks until quorum has been reached, which may be
+ # _before_ all nodes have cast a vote.
+ #
+ # This RPC may return one of the following error codes:
+ #
+ # - `NotFound` in case the transaction could not be found.
+ # - `Canceled` in case the transaction has been canceled before quorum was
+ # reached.
rpc :VoteTransaction, ::Gitaly::VoteTransactionRequest, ::Gitaly::VoteTransactionResponse
+ # StopTransaction gracefully stops a transaction. This RPC can be used if
+ # only a subset of nodes executes specific code which may cause the
+ # transaction to fail. One such example is Git hooks, which only execute on
+ # the primary Gitaly noded. Other nodes which vote on this transaction will
+ # get a response with the `STOP` state being set.
+ #
+ # This RPC may return one of the following error codes:
+ #
+ # - `NotFound` in case the transaction could not be found.
+ # - `Canceled` in case the transaction has been canceled before quorum was
+ # reached.
rpc :StopTransaction, ::Gitaly::StopTransactionRequest, ::Gitaly::StopTransactionResponse
end
diff --git a/ruby/proto/gitaly/wiki_services_pb.rb b/ruby/proto/gitaly/wiki_services_pb.rb
index 2304ff3a7..161c60b94 100644
--- a/ruby/proto/gitaly/wiki_services_pb.rb
+++ b/ruby/proto/gitaly/wiki_services_pb.rb
@@ -17,11 +17,19 @@ module Gitaly
self.unmarshal_class_method = :decode
self.service_name = 'gitaly.WikiService'
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :WikiWritePage, stream(::Gitaly::WikiWritePageRequest), ::Gitaly::WikiWritePageResponse
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :WikiUpdatePage, stream(::Gitaly::WikiUpdatePageRequest), ::Gitaly::WikiUpdatePageResponse
# WikiFindPage returns a stream because the page's raw_data field may be arbitrarily large.
rpc :WikiFindPage, ::Gitaly::WikiFindPageRequest, stream(::Gitaly::WikiFindPageResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :WikiGetAllPages, ::Gitaly::WikiGetAllPagesRequest, stream(::Gitaly::WikiGetAllPagesResponse)
+ # protolint:disable:this RPCS_HAVE_COMMENT
+ # This comment is left unintentionally blank.
rpc :WikiListPages, ::Gitaly::WikiListPagesRequest, stream(::Gitaly::WikiListPagesResponse)
end