Commit 41852415 authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg

Upgrade Gitaly-Proto to protobuf go v1.2 code

Helps determine the state of
https://gitlab.com/gitlab-org/gitaly-proto/merge_requests/266
parent acecbbdf
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: blob.proto
/*
Package gitalypb is a generated protocol buffer package.
It is generated from these files:
blob.proto
cleanup.proto
commit.proto
conflicts.proto
diff.proto
namespace.proto
notifications.proto
objectpool.proto
operations.proto
ref.proto
remote.proto
repository-service.proto
server.proto
shared.proto
smarthttp.proto
ssh.proto
storage.proto
wiki.proto
It has these top-level messages:
GetBlobRequest
GetBlobResponse
GetBlobsRequest
GetBlobsResponse
LFSPointer
NewBlobObject
GetLFSPointersRequest
GetLFSPointersResponse
GetNewLFSPointersRequest
GetNewLFSPointersResponse
GetAllLFSPointersRequest
GetAllLFSPointersResponse
ApplyBfgObjectMapRequest
ApplyBfgObjectMapResponse
CommitStatsRequest
CommitStatsResponse
CommitIsAncestorRequest
CommitIsAncestorResponse
TreeEntryRequest
TreeEntryResponse
CommitsBetweenRequest
CommitsBetweenResponse
CountCommitsRequest
CountCommitsResponse
CountDivergingCommitsRequest
CountDivergingCommitsResponse
TreeEntry
GetTreeEntriesRequest
GetTreeEntriesResponse
ListFilesRequest
ListFilesResponse
FindCommitRequest
FindCommitResponse
ListCommitsByOidRequest
ListCommitsByOidResponse
FindAllCommitsRequest
FindAllCommitsResponse
FindCommitsRequest
FindCommitsResponse
CommitLanguagesRequest
CommitLanguagesResponse
RawBlameRequest
RawBlameResponse
LastCommitForPathRequest
LastCommitForPathResponse
ListLastCommitsForTreeRequest
ListLastCommitsForTreeResponse
CommitsByMessageRequest
CommitsByMessageResponse
FilterShasWithSignaturesRequest
FilterShasWithSignaturesResponse
ExtractCommitSignatureRequest
ExtractCommitSignatureResponse
GetCommitSignaturesRequest
GetCommitSignaturesResponse
GetCommitMessagesRequest
GetCommitMessagesResponse
ListConflictFilesRequest
ConflictFileHeader
ConflictFile
ListConflictFilesResponse
ResolveConflictsRequestHeader
ResolveConflictsRequest
ResolveConflictsResponse
CommitDiffRequest
CommitDiffResponse
CommitDeltaRequest
CommitDelta
CommitDeltaResponse
CommitPatchRequest
CommitPatchResponse
RawDiffRequest
RawDiffResponse
RawPatchRequest
RawPatchResponse
DiffStatsRequest
DiffStats
DiffStatsResponse
AddNamespaceRequest
RemoveNamespaceRequest
RenameNamespaceRequest
NamespaceExistsRequest
NamespaceExistsResponse
AddNamespaceResponse
RemoveNamespaceResponse
RenameNamespaceResponse
PostReceiveRequest
PostReceiveResponse
ObjectPool
CreateObjectPoolRequest
CreateObjectPoolResponse
DeleteObjectPoolRequest
DeleteObjectPoolResponse
LinkRepositoryToObjectPoolRequest
LinkRepositoryToObjectPoolResponse
UnlinkRepositoryFromObjectPoolRequest
UnlinkRepositoryFromObjectPoolResponse
ReduplicateRepositoryRequest
ReduplicateRepositoryResponse
UserCreateBranchRequest
UserCreateBranchResponse
UserUpdateBranchRequest
UserUpdateBranchResponse
UserDeleteBranchRequest
UserDeleteBranchResponse
UserDeleteTagRequest
UserDeleteTagResponse
UserCreateTagRequest
UserCreateTagResponse
UserMergeBranchRequest
UserMergeBranchResponse
UserMergeToRefRequest
UserMergeToRefResponse
OperationBranchUpdate
UserFFBranchRequest
UserFFBranchResponse
UserCherryPickRequest
UserCherryPickResponse
UserRevertRequest
UserRevertResponse
UserCommitFilesActionHeader
UserCommitFilesAction
UserCommitFilesRequestHeader
UserCommitFilesRequest
UserCommitFilesResponse
UserRebaseRequest
UserRebaseResponse
UserSquashRequest
UserSquashResponse
UserApplyPatchRequest
UserApplyPatchResponse
UserUpdateSubmoduleRequest
UserUpdateSubmoduleResponse
ListNewBlobsRequest
ListNewBlobsResponse
FindDefaultBranchNameRequest
FindDefaultBranchNameResponse
FindAllBranchNamesRequest
FindAllBranchNamesResponse
FindAllTagNamesRequest
FindAllTagNamesResponse
FindRefNameRequest
FindRefNameResponse
FindLocalBranchesRequest
FindLocalBranchesResponse
FindLocalBranchResponse
FindLocalBranchCommitAuthor
FindAllBranchesRequest
FindAllBranchesResponse
FindAllTagsRequest
FindAllTagsResponse
RefExistsRequest
RefExistsResponse
CreateBranchRequest
CreateBranchResponse
DeleteBranchRequest
DeleteBranchResponse
FindBranchRequest
FindBranchResponse
DeleteRefsRequest
DeleteRefsResponse
ListBranchNamesContainingCommitRequest
ListBranchNamesContainingCommitResponse
ListTagNamesContainingCommitRequest
ListTagNamesContainingCommitResponse
GetTagMessagesRequest
GetTagMessagesResponse
ListNewCommitsRequest
ListNewCommitsResponse
FindAllRemoteBranchesRequest
FindAllRemoteBranchesResponse
AddRemoteRequest
AddRemoteResponse
RemoveRemoteRequest
RemoveRemoteResponse
FetchInternalRemoteRequest
FetchInternalRemoteResponse
UpdateRemoteMirrorRequest
UpdateRemoteMirrorResponse
FindRemoteRepositoryRequest
FindRemoteRepositoryResponse
FindRemoteRootRefRequest
FindRemoteRootRefResponse
ListRemotesRequest
ListRemotesResponse
RepositoryExistsRequest
RepositoryExistsResponse
RepackIncrementalRequest
RepackIncrementalResponse
RepackFullRequest
RepackFullResponse
GarbageCollectRequest
GarbageCollectResponse
CleanupRequest
CleanupResponse
RepositorySizeRequest
RepositorySizeResponse
ApplyGitattributesRequest
ApplyGitattributesResponse
FetchRemoteRequest
FetchRemoteResponse
CreateRepositoryRequest
CreateRepositoryResponse
GetArchiveRequest
GetArchiveResponse
HasLocalBranchesRequest
HasLocalBranchesResponse
FetchSourceBranchRequest
FetchSourceBranchResponse
FsckRequest
FsckResponse
WriteRefRequest
WriteRefResponse
FindMergeBaseRequest
FindMergeBaseResponse
CreateForkRequest
CreateForkResponse
IsRebaseInProgressRequest
IsRebaseInProgressResponse
IsSquashInProgressRequest
IsSquashInProgressResponse
CreateRepositoryFromURLRequest
CreateRepositoryFromURLResponse
CreateBundleRequest
CreateBundleResponse
WriteConfigRequest
WriteConfigResponse
SetConfigRequest
SetConfigResponse
DeleteConfigRequest
DeleteConfigResponse
RestoreCustomHooksRequest
RestoreCustomHooksResponse
BackupCustomHooksRequest
BackupCustomHooksResponse
CreateRepositoryFromBundleRequest
CreateRepositoryFromBundleResponse
FindLicenseRequest
FindLicenseResponse
GetInfoAttributesRequest
GetInfoAttributesResponse
CalculateChecksumRequest
CalculateChecksumResponse
GetSnapshotRequest
GetSnapshotResponse
CreateRepositoryFromSnapshotRequest
CreateRepositoryFromSnapshotResponse
GetRawChangesRequest
GetRawChangesResponse
SearchFilesByNameRequest
SearchFilesByNameResponse
SearchFilesByContentRequest
SearchFilesByContentResponse
ServerInfoRequest
ServerInfoResponse
Repository
GitCommit
CommitAuthor
ExitStatus
Branch
Tag
User
InfoRefsRequest
InfoRefsResponse
PostUploadPackRequest
PostUploadPackResponse
PostReceivePackRequest
PostReceivePackResponse
SSHUploadPackRequest
SSHUploadPackResponse
SSHReceivePackRequest
SSHReceivePackResponse
SSHUploadArchiveRequest
SSHUploadArchiveResponse
ListDirectoriesRequest
ListDirectoriesResponse
DeleteAllRepositoriesRequest
DeleteAllRepositoriesResponse
WikiCommitDetails
WikiPageVersion
WikiPage
WikiGetPageVersionsRequest
WikiGetPageVersionsResponse
WikiWritePageRequest
WikiWritePageResponse
WikiUpdatePageRequest
WikiUpdatePageResponse
WikiDeletePageRequest
WikiDeletePageResponse
WikiFindPageRequest
WikiFindPageResponse
WikiFindFileRequest
WikiFindFileResponse
WikiGetAllPagesRequest
WikiGetAllPagesResponse
WikiGetFormattedDataRequest
WikiGetFormattedDataResponse
*/
package gitalypb
import proto "github.com/golang/protobuf/proto"
......@@ -346,17 +24,39 @@ var _ = math.Inf
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type GetBlobRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
// Object ID (SHA1) of the blob we want to get
Oid string `protobuf:"bytes,2,opt,name=oid" json:"oid,omitempty"`
Oid string `protobuf:"bytes,2,opt,name=oid,proto3" json:"oid,omitempty"`
// Maximum number of bytes we want to receive. Use '-1' to get the full blob no matter how big.
Limit int64 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"`
Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetBlobRequest) Reset() { *m = GetBlobRequest{} }
func (m *GetBlobRequest) String() string { return proto.CompactTextString(m) }
func (*GetBlobRequest) ProtoMessage() {}
func (*GetBlobRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *GetBlobRequest) Reset() { *m = GetBlobRequest{} }
func (m *GetBlobRequest) String() string { return proto.CompactTextString(m) }
func (*GetBlobRequest) ProtoMessage() {}
func (*GetBlobRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_blob_c77e365e4ee3386b, []int{0}
}
func (m *GetBlobRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetBlobRequest.Unmarshal(m, b)
}
func (m *GetBlobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetBlobRequest.Marshal(b, m, deterministic)
}
func (dst *GetBlobRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetBlobRequest.Merge(dst, src)
}
func (m *GetBlobRequest) XXX_Size() int {
return xxx_messageInfo_GetBlobRequest.Size(m)
}
func (m *GetBlobRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetBlobRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetBlobRequest proto.InternalMessageInfo
func (m *GetBlobRequest) GetRepository() *Repository {
if m != nil {
......@@ -381,17 +81,39 @@ func (m *GetBlobRequest) GetLimit() int64 {
type GetBlobResponse struct {
// Blob size; present only in first response message
Size int64 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"`
Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
// Chunk of blob data
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
// Object ID of the actual blob returned. Empty if no blob was found.
Oid string `protobuf:"bytes,3,opt,name=oid" json:"oid,omitempty"`
Oid string `protobuf:"bytes,3,opt,name=oid,proto3" json:"oid,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetBlobResponse) Reset() { *m = GetBlobResponse{} }
func (m *GetBlobResponse) String() string { return proto.CompactTextString(m) }
func (*GetBlobResponse) ProtoMessage() {}
func (*GetBlobResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_blob_c77e365e4ee3386b, []int{1}
}
func (m *GetBlobResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetBlobResponse.Unmarshal(m, b)
}
func (m *GetBlobResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetBlobResponse.Marshal(b, m, deterministic)
}
func (dst *GetBlobResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetBlobResponse.Merge(dst, src)
}
func (m *GetBlobResponse) XXX_Size() int {
return xxx_messageInfo_GetBlobResponse.Size(m)
}
func (m *GetBlobResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetBlobResponse.DiscardUnknown(m)
}
func (m *GetBlobResponse) Reset() { *m = GetBlobResponse{} }
func (m *GetBlobResponse) String() string { return proto.CompactTextString(m) }
func (*GetBlobResponse) ProtoMessage() {}
func (*GetBlobResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
var xxx_messageInfo_GetBlobResponse proto.InternalMessageInfo
func (m *GetBlobResponse) GetSize() int64 {
if m != nil {
......@@ -415,17 +137,39 @@ func (m *GetBlobResponse) GetOid() string {
}
type GetBlobsRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
// Revision/Path pairs of the blobs we want to get.
RevisionPaths []*GetBlobsRequest_RevisionPath `protobuf:"bytes,2,rep,name=revision_paths,json=revisionPaths" json:"revision_paths,omitempty"`
RevisionPaths []*GetBlobsRequest_RevisionPath `protobuf:"bytes,2,rep,name=revision_paths,json=revisionPaths,proto3" json:"revision_paths,omitempty"`
// Maximum number of bytes we want to receive. Use '-1' to get the full blobs no matter how big.
Limit int64 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"`
Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetBlobsRequest) Reset() { *m = GetBlobsRequest{} }
func (m *GetBlobsRequest) String() string { return proto.CompactTextString(m) }
func (*GetBlobsRequest) ProtoMessage() {}
func (*GetBlobsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_blob_c77e365e4ee3386b, []int{2}
}
func (m *GetBlobsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetBlobsRequest.Unmarshal(m, b)
}
func (m *GetBlobsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetBlobsRequest.Marshal(b, m, deterministic)
}
func (dst *GetBlobsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetBlobsRequest.Merge(dst, src)
}
func (m *GetBlobsRequest) XXX_Size() int {
return xxx_messageInfo_GetBlobsRequest.Size(m)
}
func (m *GetBlobsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetBlobsRequest.DiscardUnknown(m)
}
func (m *GetBlobsRequest) Reset() { *m = GetBlobsRequest{} }
func (m *GetBlobsRequest) String() string { return proto.CompactTextString(m) }
func (*GetBlobsRequest) ProtoMessage() {}
func (*GetBlobsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
var xxx_messageInfo_GetBlobsRequest proto.InternalMessageInfo
func (m *GetBlobsRequest) GetRepository() *Repository {
if m != nil {
......@@ -449,14 +193,36 @@ func (m *GetBlobsRequest) GetLimit() int64 {
}
type GetBlobsRequest_RevisionPath struct {
Revision string `protobuf:"bytes,1,opt,name=revision" json:"revision,omitempty"`
Path []byte `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
Revision string `protobuf:"bytes,1,opt,name=revision,proto3" json:"revision,omitempty"`
Path []byte `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetBlobsRequest_RevisionPath) Reset() { *m = GetBlobsRequest_RevisionPath{} }
func (m *GetBlobsRequest_RevisionPath) String() string { return proto.CompactTextString(m) }
func (*GetBlobsRequest_RevisionPath) ProtoMessage() {}
func (*GetBlobsRequest_RevisionPath) Descriptor() ([]byte, []int) {
return fileDescriptor_blob_c77e365e4ee3386b, []int{2, 0}
}
func (m *GetBlobsRequest_RevisionPath) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetBlobsRequest_RevisionPath.Unmarshal(m, b)
}
func (m *GetBlobsRequest_RevisionPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetBlobsRequest_RevisionPath.Marshal(b, m, deterministic)
}
func (dst *GetBlobsRequest_RevisionPath) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetBlobsRequest_RevisionPath.Merge(dst, src)
}
func (m *GetBlobsRequest_RevisionPath) XXX_Size() int {
return xxx_messageInfo_GetBlobsRequest_RevisionPath.Size(m)
}
func (m *GetBlobsRequest_RevisionPath) XXX_DiscardUnknown() {
xxx_messageInfo_GetBlobsRequest_RevisionPath.DiscardUnknown(m)
}
func (m *GetBlobsRequest_RevisionPath) Reset() { *m = GetBlobsRequest_RevisionPath{} }
func (m *GetBlobsRequest_RevisionPath) String() string { return proto.CompactTextString(m) }
func (*GetBlobsRequest_RevisionPath) ProtoMessage() {}
func (*GetBlobsRequest_RevisionPath) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} }
var xxx_messageInfo_GetBlobsRequest_RevisionPath proto.InternalMessageInfo
func (m *GetBlobsRequest_RevisionPath) GetRevision() string {
if m != nil {
......@@ -474,21 +240,43 @@ func (m *GetBlobsRequest_RevisionPath) GetPath() []byte {
type GetBlobsResponse struct {
// Blob size; present only on the first message per blob
Size int64 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"`
Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
// Chunk of blob data, could span over multiple messages.
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
// Object ID of the current blob. Only present on the first message per blob. Empty if no blob was found.
Oid string `protobuf:"bytes,3,opt,name=oid" json:"oid,omitempty"`
IsSubmodule bool `protobuf:"varint,4,opt,name=is_submodule,json=isSubmodule" json:"is_submodule,omitempty"`
Mode int32 `protobuf:"varint,5,opt,name=mode" json:"mode,omitempty"`
Revision string `protobuf:"bytes,6,opt,name=revision" json:"revision,omitempty"`
Path []byte `protobuf:"bytes,7,opt,name=path,proto3" json:"path,omitempty"`
Oid string `protobuf:"bytes,3,opt,name=oid,proto3" json:"oid,omitempty"`
IsSubmodule bool `protobuf:"varint,4,opt,name=is_submodule,json=isSubmodule,proto3" json:"is_submodule,omitempty"`
Mode int32 `protobuf:"varint,5,opt,name=mode,proto3" json:"mode,omitempty"`
Revision string `protobuf:"bytes,6,opt,name=revision,proto3" json:"revision,omitempty"`
Path []byte `protobuf:"bytes,7,opt,name=path,proto3" json:"path,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetBlobsResponse) Reset() { *m = GetBlobsResponse{} }
func (m *GetBlobsResponse) String() string { return proto.CompactTextString(m) }
func (*GetBlobsResponse) ProtoMessage() {}
func (*GetBlobsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_blob_c77e365e4ee3386b, []int{3}
}
func (m *GetBlobsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetBlobsResponse.Unmarshal(m, b)
}
func (m *GetBlobsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetBlobsResponse.Marshal(b, m, deterministic)
}
func (dst *GetBlobsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetBlobsResponse.Merge(dst, src)
}
func (m *GetBlobsResponse) XXX_Size() int {
return xxx_messageInfo_GetBlobsResponse.Size(m)
}
func (m *GetBlobsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetBlobsResponse.DiscardUnknown(m)
}
func (m *GetBlobsResponse) Reset() { *m = GetBlobsResponse{} }
func (m *GetBlobsResponse) String() string { return proto.CompactTextString(m) }
func (*GetBlobsResponse) ProtoMessage() {}
func (*GetBlobsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
var xxx_messageInfo_GetBlobsResponse proto.InternalMessageInfo
func (m *GetBlobsResponse) GetSize() int64 {
if m != nil {
......@@ -540,15 +328,37 @@ func (m *GetBlobsResponse) GetPath() []byte {
}
type LFSPointer struct {
Size int64 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"`
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
Oid string `protobuf:"bytes,3,opt,name=oid" json:"oid,omitempty"`
Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
Oid string `protobuf:"bytes,3,opt,name=oid,proto3" json:"oid,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LFSPointer) Reset() { *m = LFSPointer{} }
func (m *LFSPointer) String() string { return proto.CompactTextString(m) }
func (*LFSPointer) ProtoMessage() {}
func (*LFSPointer) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *LFSPointer) Reset() { *m = LFSPointer{} }
func (m *LFSPointer) String() string { return proto.CompactTextString(m) }
func (*LFSPointer) ProtoMessage() {}
func (*LFSPointer) Descriptor() ([]byte, []int) {
return fileDescriptor_blob_c77e365e4ee3386b, []int{4}
}
func (m *LFSPointer) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LFSPointer.Unmarshal(m, b)
}
func (m *LFSPointer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LFSPointer.Marshal(b, m, deterministic)
}
func (dst *LFSPointer) XXX_Merge(src proto.Message) {
xxx_messageInfo_LFSPointer.Merge(dst, src)
}
func (m *LFSPointer) XXX_Size() int {
return xxx_messageInfo_LFSPointer.Size(m)
}
func (m *LFSPointer) XXX_DiscardUnknown() {
xxx_messageInfo_LFSPointer.DiscardUnknown(m)
}
var xxx_messageInfo_LFSPointer proto.InternalMessageInfo
func (m *LFSPointer) GetSize() int64 {
if m != nil {
......@@ -572,15 +382,37 @@ func (m *LFSPointer) GetOid() string {
}
type NewBlobObject struct {
Size int64 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"`
Oid string `protobuf:"bytes,2,opt,name=oid" json:"oid,omitempty"`
Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
Oid string `protobuf:"bytes,2,opt,name=oid,proto3" json:"oid,omitempty"`
Path []byte `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NewBlobObject) Reset() { *m = NewBlobObject{} }
func (m *NewBlobObject) String() string { return proto.CompactTextString(m) }
func (*NewBlobObject) ProtoMessage() {}
func (*NewBlobObject) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *NewBlobObject) Reset() { *m = NewBlobObject{} }
func (m *NewBlobObject) String() string { return proto.CompactTextString(m) }
func (*NewBlobObject) ProtoMessage() {}
func (*NewBlobObject) Descriptor() ([]byte, []int) {
return fileDescriptor_blob_c77e365e4ee3386b, []int{5}
}
func (m *NewBlobObject) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NewBlobObject.Unmarshal(m, b)
}
func (m *NewBlobObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NewBlobObject.Marshal(b, m, deterministic)
}
func (dst *NewBlobObject) XXX_Merge(src proto.Message) {
xxx_messageInfo_NewBlobObject.Merge(dst, src)
}
func (m *NewBlobObject) XXX_Size() int {
return xxx_messageInfo_NewBlobObject.Size(m)
}
func (m *NewBlobObject) XXX_DiscardUnknown() {
xxx_messageInfo_NewBlobObject.DiscardUnknown(m)
}
var xxx_messageInfo_NewBlobObject proto.InternalMessageInfo
func (m *NewBlobObject) GetSize() int64 {
if m != nil {
......@@ -604,14 +436,36 @@ func (m *NewBlobObject) GetPath() []byte {
}
type GetLFSPointersRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
BlobIds []string `protobuf:"bytes,2,rep,name=blob_ids,json=blobIds" json:"blob_ids,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
BlobIds []string `protobuf:"bytes,2,rep,name=blob_ids,json=blobIds,proto3" json:"blob_ids,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetLFSPointersRequest) Reset() { *m = GetLFSPointersRequest{} }
func (m *GetLFSPointersRequest) String() string { return proto.CompactTextString(m) }
func (*GetLFSPointersRequest) ProtoMessage() {}
func (*GetLFSPointersRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_blob_c77e365e4ee3386b, []int{6}
}
func (m *GetLFSPointersRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetLFSPointersRequest.Unmarshal(m, b)
}
func (m *GetLFSPointersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetLFSPointersRequest.Marshal(b, m, deterministic)
}
func (dst *GetLFSPointersRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetLFSPointersRequest.Merge(dst, src)
}
func (m *GetLFSPointersRequest) XXX_Size() int {
return xxx_messageInfo_GetLFSPointersRequest.Size(m)
}
func (m *GetLFSPointersRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetLFSPointersRequest.DiscardUnknown(m)
}
func (m *GetLFSPointersRequest) Reset() { *m = GetLFSPointersRequest{} }
func (m *GetLFSPointersRequest) String() string { return proto.CompactTextString(m) }
func (*GetLFSPointersRequest) ProtoMessage() {}
func (*GetLFSPointersRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
var xxx_messageInfo_GetLFSPointersRequest proto.InternalMessageInfo
func (m *GetLFSPointersRequest) GetRepository() *Repository {
if m != nil {
......@@ -628,13 +482,35 @@ func (m *GetLFSPointersRequest) GetBlobIds() []string {
}
type GetLFSPointersResponse struct {
LfsPointers []*LFSPointer `protobuf:"bytes,1,rep,name=lfs_pointers,json=lfsPointers" json:"lfs_pointers,omitempty"`
LfsPointers []*LFSPointer `protobuf:"bytes,1,rep,name=lfs_pointers,json=lfsPointers,proto3" json:"lfs_pointers,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetLFSPointersResponse) Reset() { *m = GetLFSPointersResponse{} }
func (m *GetLFSPointersResponse) String() string { return proto.CompactTextString(m) }
func (*GetLFSPointersResponse) ProtoMessage() {}
func (*GetLFSPointersResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_blob_c77e365e4ee3386b, []int{7}
}
func (m *GetLFSPointersResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetLFSPointersResponse.Unmarshal(m, b)
}
func (m *GetLFSPointersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetLFSPointersResponse.Marshal(b, m, deterministic)
}
func (dst *GetLFSPointersResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetLFSPointersResponse.Merge(dst, src)
}
func (m *GetLFSPointersResponse) XXX_Size() int {
return xxx_messageInfo_GetLFSPointersResponse.Size(m)
}
func (m *GetLFSPointersResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetLFSPointersResponse.DiscardUnknown(m)
}
func (m *GetLFSPointersResponse) Reset() { *m = GetLFSPointersResponse{} }
func (m *GetLFSPointersResponse) String() string { return proto.CompactTextString(m) }
func (*GetLFSPointersResponse) ProtoMessage() {}
func (*GetLFSPointersResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
var xxx_messageInfo_GetLFSPointersResponse proto.InternalMessageInfo
func (m *GetLFSPointersResponse) GetLfsPointers() []*LFSPointer {
if m != nil {
......@@ -644,18 +520,40 @@ func (m *GetLFSPointersResponse) GetLfsPointers() []*LFSPointer {
}
type GetNewLFSPointersRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"`
Limit int32 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"`
Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
// Note: When `not_in_all` is true, `not_in_refs` is ignored
NotInAll bool `protobuf:"varint,4,opt,name=not_in_all,json=notInAll" json:"not_in_all,omitempty"`
NotInRefs [][]byte `protobuf:"bytes,5,rep,name=not_in_refs,json=notInRefs,proto3" json:"not_in_refs,omitempty"`
NotInAll bool `protobuf:"varint,4,opt,name=not_in_all,json=notInAll,proto3" json:"not_in_all,omitempty"`
NotInRefs [][]byte `protobuf:"bytes,5,rep,name=not_in_refs,json=notInRefs,proto3" json:"not_in_refs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetNewLFSPointersRequest) Reset() { *m = GetNewLFSPointersRequest{} }
func (m *GetNewLFSPointersRequest) String() string { return proto.CompactTextString(m) }
func (*GetNewLFSPointersRequest) ProtoMessage() {}
func (*GetNewLFSPointersRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_blob_c77e365e4ee3386b, []int{8}
}
func (m *GetNewLFSPointersRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetNewLFSPointersRequest.Unmarshal(m, b)
}
func (m *GetNewLFSPointersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetNewLFSPointersRequest.Marshal(b, m, deterministic)
}
func (dst *GetNewLFSPointersRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetNewLFSPointersRequest.Merge(dst, src)
}
func (m *GetNewLFSPointersRequest) XXX_Size() int {
return xxx_messageInfo_GetNewLFSPointersRequest.Size(m)
}
func (m *GetNewLFSPointersRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetNewLFSPointersRequest.DiscardUnknown(m)
}
func (m *GetNewLFSPointersRequest) Reset() { *m = GetNewLFSPointersRequest{} }
func (m *GetNewLFSPointersRequest) String() string { return proto.CompactTextString(m) }
func (*GetNewLFSPointersRequest) ProtoMessage() {}
func (*GetNewLFSPointersRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
var xxx_messageInfo_GetNewLFSPointersRequest proto.InternalMessageInfo
func (m *GetNewLFSPointersRequest) GetRepository() *Repository {
if m != nil {
......@@ -693,13 +591,35 @@ func (m *GetNewLFSPointersRequest) GetNotInRefs() [][]byte {
}
type GetNewLFSPointersResponse struct {
LfsPointers []*LFSPointer `protobuf:"bytes,1,rep,name=lfs_pointers,json=lfsPointers" json:"lfs_pointers,omitempty"`
LfsPointers []*LFSPointer `protobuf:"bytes,1,rep,name=lfs_pointers,json=lfsPointers,proto3" json:"lfs_pointers,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetNewLFSPointersResponse) Reset() { *m = GetNewLFSPointersResponse{} }
func (m *GetNewLFSPointersResponse) String() string { return proto.CompactTextString(m) }
func (*GetNewLFSPointersResponse) ProtoMessage() {}
func (*GetNewLFSPointersResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
func (m *GetNewLFSPointersResponse) Reset() { *m = GetNewLFSPointersResponse{} }
func (m *GetNewLFSPointersResponse) String() string { return proto.CompactTextString(m) }
func (*GetNewLFSPointersResponse) ProtoMessage() {}
func (*GetNewLFSPointersResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_blob_c77e365e4ee3386b, []int{9}
}
func (m *GetNewLFSPointersResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetNewLFSPointersResponse.Unmarshal(m, b)
}
func (m *GetNewLFSPointersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetNewLFSPointersResponse.Marshal(b, m, deterministic)
}
func (dst *GetNewLFSPointersResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetNewLFSPointersResponse.Merge(dst, src)
}
func (m *GetNewLFSPointersResponse) XXX_Size() int {
return xxx_messageInfo_GetNewLFSPointersResponse.Size(m)
}
func (m *GetNewLFSPointersResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetNewLFSPointersResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetNewLFSPointersResponse proto.InternalMessageInfo
func (m *GetNewLFSPointersResponse) GetLfsPointers() []*LFSPointer {
if m != nil {
......@@ -709,14 +629,36 @@ func (m *GetNewLFSPointersResponse) GetLfsPointers() []*LFSPointer {
}
type GetAllLFSPointersRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetAllLFSPointersRequest) Reset() { *m = GetAllLFSPointersRequest{} }
func (m *GetAllLFSPointersRequest) String() string { return proto.CompactTextString(m) }
func (*GetAllLFSPointersRequest) ProtoMessage() {}
func (*GetAllLFSPointersRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
func (m *GetAllLFSPointersRequest) Reset() { *m = GetAllLFSPointersRequest{} }
func (m *GetAllLFSPointersRequest) String() string { return proto.CompactTextString(m) }
func (*GetAllLFSPointersRequest) ProtoMessage() {}
func (*GetAllLFSPointersRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_blob_c77e365e4ee3386b, []int{10}
}
func (m *GetAllLFSPointersRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetAllLFSPointersRequest.Unmarshal(m, b)
}
func (m *GetAllLFSPointersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetAllLFSPointersRequest.Marshal(b, m, deterministic)
}
func (dst *GetAllLFSPointersRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetAllLFSPointersRequest.Merge(dst, src)
}
func (m *GetAllLFSPointersRequest) XXX_Size() int {
return xxx_messageInfo_GetAllLFSPointersRequest.Size(m)
}
func (m *GetAllLFSPointersRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetAllLFSPointersRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetAllLFSPointersRequest proto.InternalMessageInfo
func (m *GetAllLFSPointersRequest) GetRepository() *Repository {
if m != nil {
......@@ -733,13 +675,35 @@ func (m *GetAllLFSPointersRequest) GetRevision() []byte {
}
type GetAllLFSPointersResponse struct {
LfsPointers []*LFSPointer `protobuf:"bytes,1,rep,name=lfs_pointers,json=lfsPointers" json:"lfs_pointers,omitempty"`
LfsPointers []*LFSPointer `protobuf:"bytes,1,rep,name=lfs_pointers,json=lfsPointers,proto3" json:"lfs_pointers,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetAllLFSPointersResponse) Reset() { *m = GetAllLFSPointersResponse{} }
func (m *GetAllLFSPointersResponse) String() string { return proto.CompactTextString(m) }
func (*GetAllLFSPointersResponse) ProtoMessage() {}
func (*GetAllLFSPointersResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
func (m *GetAllLFSPointersResponse) Reset() { *m = GetAllLFSPointersResponse{} }
func (m *GetAllLFSPointersResponse) String() string { return proto.CompactTextString(m) }
func (*GetAllLFSPointersResponse) ProtoMessage() {}
func (*GetAllLFSPointersResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_blob_c77e365e4ee3386b, []int{11}
}
func (m *GetAllLFSPointersResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetAllLFSPointersResponse.Unmarshal(m, b)
}
func (m *GetAllLFSPointersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetAllLFSPointersResponse.Marshal(b, m, deterministic)
}
func (dst *GetAllLFSPointersResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetAllLFSPointersResponse.Merge(dst, src)
}
func (m *GetAllLFSPointersResponse) XXX_Size() int {
return xxx_messageInfo_GetAllLFSPointersResponse.Size(m)
}
func (m *GetAllLFSPointersResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetAllLFSPointersResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetAllLFSPointersResponse proto.InternalMessageInfo
func (m *GetAllLFSPointersResponse) GetLfsPointers() []*LFSPointer {
if m != nil {
......@@ -772,8 +736,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for BlobService service
// BlobServiceClient is the client API for BlobService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type BlobServiceClient interface {
// GetBlob returns the contents of a blob object referenced by its object
// ID. We use a stream to return a chunked arbitrarily large binary
......@@ -794,7 +759,7 @@ func NewBlobServiceClient(cc *grpc.ClientConn) BlobServiceClient {
}
func (c *blobServiceClient) GetBlob(ctx context.Context, in *GetBlobRequest, opts ...grpc.CallOption) (BlobService_GetBlobClient, error) {
stream, err := grpc.NewClientStream(ctx, &_BlobService_serviceDesc.Streams[0], c.cc, "/gitaly.BlobService/GetBlob", opts...)
stream, err := c.cc.NewStream(ctx, &_BlobService_serviceDesc.Streams[0], "/gitaly.BlobService/GetBlob", opts...)
if err != nil {
return nil, err
}
......@@ -826,7 +791,7 @@ func (x *blobServiceGetBlobClient) Recv() (*GetBlobResponse, error) {
}
func (c *blobServiceClient) GetBlobs(ctx context.Context, in *GetBlobsRequest, opts ...grpc.CallOption) (BlobService_GetBlobsClient, error) {
stream, err := grpc.NewClientStream(ctx, &_BlobService_serviceDesc.Streams[1], c.cc, "/gitaly.BlobService/GetBlobs", opts...)
stream, err := c.cc.NewStream(ctx, &_BlobService_serviceDesc.Streams[1], "/gitaly.BlobService/GetBlobs", opts...)
if err != nil {
return nil, err
}
......@@ -858,7 +823,7 @@ func (x *blobServiceGetBlobsClient) Recv() (*GetBlobsResponse, error) {
}
func (c *blobServiceClient) GetLFSPointers(ctx context.Context, in *GetLFSPointersRequest, opts ...grpc.CallOption) (BlobService_GetLFSPointersClient, error) {
stream, err := grpc.NewClientStream(ctx, &_BlobService_serviceDesc.Streams[2], c.cc, "/gitaly.BlobService/GetLFSPointers", opts...)
stream, err := c.cc.NewStream(ctx, &_BlobService_serviceDesc.Streams[2], "/gitaly.BlobService/GetLFSPointers", opts...)
if err != nil {
return nil, err
}
......@@ -890,7 +855,7 @@ func (x *blobServiceGetLFSPointersClient) Recv() (*GetLFSPointersResponse, error
}
func (c *blobServiceClient) GetNewLFSPointers(ctx context.Context, in *GetNewLFSPointersRequest, opts ...grpc.CallOption) (BlobService_GetNewLFSPointersClient, error) {
stream, err := grpc.NewClientStream(ctx, &_BlobService_serviceDesc.Streams[3], c.cc, "/gitaly.BlobService/GetNewLFSPointers", opts...)
stream, err := c.cc.NewStream(ctx, &_BlobService_serviceDesc.Streams[3], "/gitaly.BlobService/GetNewLFSPointers", opts...)
if err != nil {
return nil, err
}
......@@ -922,7 +887,7 @@ func (x *blobServiceGetNewLFSPointersClient) Recv() (*GetNewLFSPointersResponse,
}
func (c *blobServiceClient) GetAllLFSPointers(ctx context.Context, in *GetAllLFSPointersRequest, opts ...grpc.CallOption) (BlobService_GetAllLFSPointersClient, error) {
stream, err := grpc.NewClientStream(ctx, &_BlobService_serviceDesc.Streams[4], c.cc, "/gitaly.BlobService/GetAllLFSPointers", opts...)
stream, err := c.cc.NewStream(ctx, &_BlobService_serviceDesc.Streams[4], "/gitaly.BlobService/GetAllLFSPointers", opts...)
if err != nil {
return nil, err
}
......@@ -953,8 +918,7 @@ func (x *blobServiceGetAllLFSPointersClient) Recv() (*GetAllLFSPointersResponse,
return m, nil
}
// Server API for BlobService service
// BlobServiceServer is the server API for BlobService service.
type BlobServiceServer interface {
// GetBlob returns the contents of a blob object referenced by its object
// ID. We use a stream to return a chunked arbitrarily large binary
......@@ -1109,9 +1073,9 @@ var _BlobService_serviceDesc = grpc.ServiceDesc{
Metadata: "blob.proto",
}
func init() { proto.RegisterFile("blob.proto", fileDescriptor0) }
func init() { proto.RegisterFile("blob.proto", fileDescriptor_blob_c77e365e4ee3386b) }
var fileDescriptor0 = []byte{
var fileDescriptor_blob_c77e365e4ee3386b = []byte{
// 596 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcf, 0x6e, 0xd3, 0x4e,
0x10, 0xfe, 0xb9, 0x6e, 0x9a, 0x64, 0xec, 0xf6, 0x57, 0x56, 0xd0, 0xba, 0x16, 0x54, 0xae, 0xc5,
......
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: cleanup.proto
package gitalypb
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type ApplyBfgObjectMapRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
// A raw object-map file as generated by BFG: https://rtyley.github.io/bfg-repo-cleaner
// Each line in the file has two object SHAs, space-separated - the original
// SHA of the object, and the SHA after BFG has rewritten the object.
ObjectMap []byte `protobuf:"bytes,2,opt,name=object_map,json=objectMap,proto3" json:"object_map,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApplyBfgObjectMapRequest) Reset() { *m = ApplyBfgObjectMapRequest{} }
func (m *ApplyBfgObjectMapRequest) String() string { return proto.CompactTextString(m) }
func (*ApplyBfgObjectMapRequest) ProtoMessage() {}
func (*ApplyBfgObjectMapRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_cleanup_ef82541c5171c9f7, []int{0}
}
func (m *ApplyBfgObjectMapRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApplyBfgObjectMapRequest.Unmarshal(m, b)
}
func (m *ApplyBfgObjectMapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApplyBfgObjectMapRequest.Marshal(b, m, deterministic)
}
func (dst *ApplyBfgObjectMapRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApplyBfgObjectMapRequest.Merge(dst, src)
}
func (m *ApplyBfgObjectMapRequest) XXX_Size() int {
return xxx_messageInfo_ApplyBfgObjectMapRequest.Size(m)
}
func (m *ApplyBfgObjectMapRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ApplyBfgObjectMapRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ApplyBfgObjectMapRequest proto.InternalMessageInfo
func (m *ApplyBfgObjectMapRequest) GetRepository() *Repository {
if m != nil {
return m.Repository
}
return nil
}
func (m *ApplyBfgObjectMapRequest) GetObjectMap() []byte {
if m != nil {
return m.ObjectMap
}
return nil
}
type ApplyBfgObjectMapResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApplyBfgObjectMapResponse) Reset() { *m = ApplyBfgObjectMapResponse{} }
func (m *ApplyBfgObjectMapResponse) String() string { return proto.CompactTextString(m) }
func (*ApplyBfgObjectMapResponse) ProtoMessage() {}
func (*ApplyBfgObjectMapResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_cleanup_ef82541c5171c9f7, []int{1}
}
func (m *ApplyBfgObjectMapResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApplyBfgObjectMapResponse.Unmarshal(m, b)
}
func (m *ApplyBfgObjectMapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApplyBfgObjectMapResponse.Marshal(b, m, deterministic)
}
func (dst *ApplyBfgObjectMapResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApplyBfgObjectMapResponse.Merge(dst, src)
}
func (m *ApplyBfgObjectMapResponse) XXX_Size() int {
return xxx_messageInfo_ApplyBfgObjectMapResponse.Size(m)
}
func (m *ApplyBfgObjectMapResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ApplyBfgObjectMapResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ApplyBfgObjectMapResponse proto.InternalMessageInfo
func init() {
proto.RegisterType((*ApplyBfgObjectMapRequest)(nil), "gitaly.ApplyBfgObjectMapRequest")
proto.RegisterType((*ApplyBfgObjectMapResponse)(nil), "gitaly.ApplyBfgObjectMapResponse")
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// CleanupServiceClient is the client API for CleanupService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type CleanupServiceClient interface {
ApplyBfgObjectMap(ctx context.Context, opts ...grpc.CallOption) (CleanupService_ApplyBfgObjectMapClient, error)
}
type cleanupServiceClient struct {
cc *grpc.ClientConn
}
func NewCleanupServiceClient(cc *grpc.ClientConn) CleanupServiceClient {
return &cleanupServiceClient{cc}
}
func (c *cleanupServiceClient) ApplyBfgObjectMap(ctx context.Context, opts ...grpc.CallOption) (CleanupService_ApplyBfgObjectMapClient, error) {
stream, err := c.cc.NewStream(ctx, &_CleanupService_serviceDesc.Streams[0], "/gitaly.CleanupService/ApplyBfgObjectMap", opts...)
if err != nil {
return nil, err
}
x := &cleanupServiceApplyBfgObjectMapClient{stream}
return x, nil
}
type CleanupService_ApplyBfgObjectMapClient interface {
Send(*ApplyBfgObjectMapRequest) error
CloseAndRecv() (*ApplyBfgObjectMapResponse, error)
grpc.ClientStream
}
type cleanupServiceApplyBfgObjectMapClient struct {
grpc.ClientStream
}
func (x *cleanupServiceApplyBfgObjectMapClient) Send(m *ApplyBfgObjectMapRequest) error {
return x.ClientStream.SendMsg(m)
}
func (x *cleanupServiceApplyBfgObjectMapClient) CloseAndRecv() (*ApplyBfgObjectMapResponse, error) {
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
m := new(ApplyBfgObjectMapResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
// CleanupServiceServer is the server API for CleanupService service.
type CleanupServiceServer interface {
ApplyBfgObjectMap(CleanupService_ApplyBfgObjectMapServer) error
}
func RegisterCleanupServiceServer(s *grpc.Server, srv CleanupServiceServer) {
s.RegisterService(&_CleanupService_serviceDesc, srv)
}
func _CleanupService_ApplyBfgObjectMap_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(CleanupServiceServer).ApplyBfgObjectMap(&cleanupServiceApplyBfgObjectMapServer{stream})
}
type CleanupService_ApplyBfgObjectMapServer interface {
SendAndClose(*ApplyBfgObjectMapResponse) error
Recv() (*ApplyBfgObjectMapRequest, error)
grpc.ServerStream
}
type cleanupServiceApplyBfgObjectMapServer struct {
grpc.ServerStream
}
func (x *cleanupServiceApplyBfgObjectMapServer) SendAndClose(m *ApplyBfgObjectMapResponse) error {
return x.ServerStream.SendMsg(m)
}
func (x *cleanupServiceApplyBfgObjectMapServer) Recv() (*ApplyBfgObjectMapRequest, error) {
m := new(ApplyBfgObjectMapRequest)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
var _CleanupService_serviceDesc = grpc.ServiceDesc{
ServiceName: "gitaly.CleanupService",
HandlerType: (*CleanupServiceServer)(nil),
Methods: []grpc.MethodDesc{},
Streams: []grpc.StreamDesc{
{
StreamName: "ApplyBfgObjectMap",
Handler: _CleanupService_ApplyBfgObjectMap_Handler,
ClientStreams: true,
},
},
Metadata: "cleanup.proto",
}
func init() { proto.RegisterFile("cleanup.proto", fileDescriptor_cleanup_ef82541c5171c9f7) }
var fileDescriptor_cleanup_ef82541c5171c9f7 = []byte{
// 195 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4d, 0xce, 0x49, 0x4d,
0xcc, 0x2b, 0x2d, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x4b, 0xcf, 0x2c, 0x49, 0xcc,
0xa9, 0x94, 0xe2, 0x29, 0xce, 0x48, 0x2c, 0x4a, 0x4d, 0x81, 0x88, 0x2a, 0xe5, 0x72, 0x49, 0x38,
0x16, 0x14, 0xe4, 0x54, 0x3a, 0xa5, 0xa5, 0xfb, 0x27, 0x65, 0xa5, 0x26, 0x97, 0xf8, 0x26, 0x16,
0x04, 0xa5, 0x16, 0x96, 0xa6, 0x16, 0x97, 0x08, 0x19, 0x71, 0x71, 0x15, 0xa5, 0x16, 0xe4, 0x17,
0x67, 0x96, 0xe4, 0x17, 0x55, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0x09, 0xe9, 0x41, 0x8c,
0xd1, 0x0b, 0x82, 0xcb, 0x04, 0x21, 0xa9, 0x12, 0x92, 0xe5, 0xe2, 0xca, 0x07, 0x9b, 0x13, 0x9f,
0x9b, 0x58, 0x20, 0xc1, 0xa4, 0xc0, 0xa8, 0xc1, 0x13, 0xc4, 0x99, 0x0f, 0x33, 0x59, 0x49, 0x9a,
0x4b, 0x12, 0x8b, 0x75, 0xc5, 0x05, 0xf9, 0x79, 0xc5, 0xa9, 0x46, 0x79, 0x5c, 0x7c, 0xce, 0x10,
0x27, 0x07, 0xa7, 0x16, 0x95, 0x65, 0x26, 0xa7, 0x0a, 0xc5, 0x70, 0x09, 0x62, 0x28, 0x17, 0x52,
0x80, 0x39, 0x01, 0x97, 0xc3, 0xa5, 0x14, 0xf1, 0xa8, 0x80, 0xd8, 0xa5, 0xc4, 0xa0, 0xc1, 0x98,
0xc4, 0x06, 0x0e, 0x02, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x9b, 0x2a, 0x94, 0xb4, 0x29,
0x01, 0x00, 0x00,
}
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -17,16 +17,44 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type ListConflictFilesRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
OurCommitOid string `protobuf:"bytes,2,opt,name=our_commit_oid,json=ourCommitOid" json:"our_commit_oid,omitempty"`
TheirCommitOid string `protobuf:"bytes,3,opt,name=their_commit_oid,json=theirCommitOid" json:"their_commit_oid,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
OurCommitOid string `protobuf:"bytes,2,opt,name=our_commit_oid,json=ourCommitOid,proto3" json:"our_commit_oid,omitempty"`
TheirCommitOid string `protobuf:"bytes,3,opt,name=their_commit_oid,json=theirCommitOid,proto3" json:"their_commit_oid,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListConflictFilesRequest) Reset() { *m = ListConflictFilesRequest{} }
func (m *ListConflictFilesRequest) String() string { return proto.CompactTextString(m) }
func (*ListConflictFilesRequest) ProtoMessage() {}
func (*ListConflictFilesRequest) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
func (m *ListConflictFilesRequest) Reset() { *m = ListConflictFilesRequest{} }
func (m *ListConflictFilesRequest) String() string { return proto.CompactTextString(m) }
func (*ListConflictFilesRequest) ProtoMessage() {}
func (*ListConflictFilesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_conflicts_46d86b81eab9244c, []int{0}
}
func (m *ListConflictFilesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListConflictFilesRequest.Unmarshal(m, b)
}
func (m *ListConflictFilesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListConflictFilesRequest.Marshal(b, m, deterministic)
}
func (dst *ListConflictFilesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListConflictFilesRequest.Merge(dst, src)
}
func (m *ListConflictFilesRequest) XXX_Size() int {
return xxx_messageInfo_ListConflictFilesRequest.Size(m)
}
func (m *ListConflictFilesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListConflictFilesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListConflictFilesRequest proto.InternalMessageInfo
func (m *ListConflictFilesRequest) GetRepository() *Repository {
if m != nil {
......@@ -50,17 +78,39 @@ func (m *ListConflictFilesRequest) GetTheirCommitOid() string {
}
type ConflictFileHeader struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
CommitOid string `protobuf:"bytes,2,opt,name=commit_oid,json=commitOid" json:"commit_oid,omitempty"`
TheirPath []byte `protobuf:"bytes,3,opt,name=their_path,json=theirPath,proto3" json:"their_path,omitempty"`
OurPath []byte `protobuf:"bytes,4,opt,name=our_path,json=ourPath,proto3" json:"our_path,omitempty"`
OurMode int32 `protobuf:"varint,5,opt,name=our_mode,json=ourMode" json:"our_mode,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
CommitOid string `protobuf:"bytes,2,opt,name=commit_oid,json=commitOid,proto3" json:"commit_oid,omitempty"`
TheirPath []byte `protobuf:"bytes,3,opt,name=their_path,json=theirPath,proto3" json:"their_path,omitempty"`
OurPath []byte `protobuf:"bytes,4,opt,name=our_path,json=ourPath,proto3" json:"our_path,omitempty"`
OurMode int32 `protobuf:"varint,5,opt,name=our_mode,json=ourMode,proto3" json:"our_mode,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConflictFileHeader) Reset() { *m = ConflictFileHeader{} }
func (m *ConflictFileHeader) String() string { return proto.CompactTextString(m) }
func (*ConflictFileHeader) ProtoMessage() {}
func (*ConflictFileHeader) Descriptor() ([]byte, []int) {
return fileDescriptor_conflicts_46d86b81eab9244c, []int{1}
}
func (m *ConflictFileHeader) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConflictFileHeader.Unmarshal(m, b)
}
func (m *ConflictFileHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConflictFileHeader.Marshal(b, m, deterministic)
}
func (dst *ConflictFileHeader) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConflictFileHeader.Merge(dst, src)
}
func (m *ConflictFileHeader) XXX_Size() int {
return xxx_messageInfo_ConflictFileHeader.Size(m)
}
func (m *ConflictFileHeader) XXX_DiscardUnknown() {
xxx_messageInfo_ConflictFileHeader.DiscardUnknown(m)
}
func (m *ConflictFileHeader) Reset() { *m = ConflictFileHeader{} }
func (m *ConflictFileHeader) String() string { return proto.CompactTextString(m) }
func (*ConflictFileHeader) ProtoMessage() {}
func (*ConflictFileHeader) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{1} }
var xxx_messageInfo_ConflictFileHeader proto.InternalMessageInfo
func (m *ConflictFileHeader) GetRepository() *Repository {
if m != nil {
......@@ -101,24 +151,50 @@ type ConflictFile struct {
// Types that are valid to be assigned to ConflictFilePayload:
// *ConflictFile_Header
// *ConflictFile_Content
ConflictFilePayload isConflictFile_ConflictFilePayload `protobuf_oneof:"conflict_file_payload"`
ConflictFilePayload isConflictFile_ConflictFilePayload `protobuf_oneof:"conflict_file_payload"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConflictFile) Reset() { *m = ConflictFile{} }
func (m *ConflictFile) String() string { return proto.CompactTextString(m) }
func (*ConflictFile) ProtoMessage() {}
func (*ConflictFile) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{2} }
func (m *ConflictFile) Reset() { *m = ConflictFile{} }
func (m *ConflictFile) String() string { return proto.CompactTextString(m) }
func (*ConflictFile) ProtoMessage() {}
func (*ConflictFile) Descriptor() ([]byte, []int) {
return fileDescriptor_conflicts_46d86b81eab9244c, []int{2}
}
func (m *ConflictFile) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConflictFile.Unmarshal(m, b)
}
func (m *ConflictFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConflictFile.Marshal(b, m, deterministic)
}
func (dst *ConflictFile) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConflictFile.Merge(dst, src)
}
func (m *ConflictFile) XXX_Size() int {
return xxx_messageInfo_ConflictFile.Size(m)
}
func (m *ConflictFile) XXX_DiscardUnknown() {
xxx_messageInfo_ConflictFile.DiscardUnknown(m)
}
type isConflictFile_ConflictFilePayload interface{ isConflictFile_ConflictFilePayload() }
var xxx_messageInfo_ConflictFile proto.InternalMessageInfo
type isConflictFile_ConflictFilePayload interface {
isConflictFile_ConflictFilePayload()
}
type ConflictFile_Header struct {
Header *ConflictFileHeader `protobuf:"bytes,1,opt,name=header,oneof"`
Header *ConflictFileHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"`
}
type ConflictFile_Content struct {
Content []byte `protobuf:"bytes,2,opt,name=content,proto3,oneof"`
}
func (*ConflictFile_Header) isConflictFile_ConflictFilePayload() {}
func (*ConflictFile_Header) isConflictFile_ConflictFilePayload() {}
func (*ConflictFile_Content) isConflictFile_ConflictFilePayload() {}
func (m *ConflictFile) GetConflictFilePayload() isConflictFile_ConflictFilePayload {
......@@ -198,11 +274,11 @@ func _ConflictFile_OneofSizer(msg proto.Message) (n int) {
switch x := m.ConflictFilePayload.(type) {
case *ConflictFile_Header:
s := proto.Size(x.Header)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *ConflictFile_Content:
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.Content)))
n += len(x.Content)
case nil:
......@@ -213,13 +289,35 @@ func _ConflictFile_OneofSizer(msg proto.Message) (n int) {
}
type ListConflictFilesResponse struct {
Files []*ConflictFile `protobuf:"bytes,1,rep,name=files" json:"files,omitempty"`
Files []*ConflictFile `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListConflictFilesResponse) Reset() { *m = ListConflictFilesResponse{} }
func (m *ListConflictFilesResponse) String() string { return proto.CompactTextString(m) }
func (*ListConflictFilesResponse) ProtoMessage() {}
func (*ListConflictFilesResponse) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{3} }
func (m *ListConflictFilesResponse) Reset() { *m = ListConflictFilesResponse{} }
func (m *ListConflictFilesResponse) String() string { return proto.CompactTextString(m) }
func (*ListConflictFilesResponse) ProtoMessage() {}
func (*ListConflictFilesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_conflicts_46d86b81eab9244c, []int{3}
}
func (m *ListConflictFilesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListConflictFilesResponse.Unmarshal(m, b)
}
func (m *ListConflictFilesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListConflictFilesResponse.Marshal(b, m, deterministic)
}
func (dst *ListConflictFilesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListConflictFilesResponse.Merge(dst, src)
}
func (m *ListConflictFilesResponse) XXX_Size() int {
return xxx_messageInfo_ListConflictFilesResponse.Size(m)
}
func (m *ListConflictFilesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListConflictFilesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListConflictFilesResponse proto.InternalMessageInfo
func (m *ListConflictFilesResponse) GetFiles() []*ConflictFile {
if m != nil {
......@@ -229,20 +327,42 @@ func (m *ListConflictFilesResponse) GetFiles() []*ConflictFile {
}
type ResolveConflictsRequestHeader struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
OurCommitOid string `protobuf:"bytes,2,opt,name=our_commit_oid,json=ourCommitOid" json:"our_commit_oid,omitempty"`
TargetRepository *Repository `protobuf:"bytes,3,opt,name=target_repository,json=targetRepository" json:"target_repository,omitempty"`
TheirCommitOid string `protobuf:"bytes,4,opt,name=their_commit_oid,json=theirCommitOid" json:"their_commit_oid,omitempty"`
SourceBranch []byte `protobuf:"bytes,5,opt,name=source_branch,json=sourceBranch,proto3" json:"source_branch,omitempty"`
TargetBranch []byte `protobuf:"bytes,6,opt,name=target_branch,json=targetBranch,proto3" json:"target_branch,omitempty"`
CommitMessage []byte `protobuf:"bytes,7,opt,name=commit_message,json=commitMessage,proto3" json:"commit_message,omitempty"`
User *User `protobuf:"bytes,8,opt,name=user" json:"user,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
OurCommitOid string `protobuf:"bytes,2,opt,name=our_commit_oid,json=ourCommitOid,proto3" json:"our_commit_oid,omitempty"`
TargetRepository *Repository `protobuf:"bytes,3,opt,name=target_repository,json=targetRepository,proto3" json:"target_repository,omitempty"`
TheirCommitOid string `protobuf:"bytes,4,opt,name=their_commit_oid,json=theirCommitOid,proto3" json:"their_commit_oid,omitempty"`
SourceBranch []byte `protobuf:"bytes,5,opt,name=source_branch,json=sourceBranch,proto3" json:"source_branch,omitempty"`
TargetBranch []byte `protobuf:"bytes,6,opt,name=target_branch,json=targetBranch,proto3" json:"target_branch,omitempty"`
CommitMessage []byte `protobuf:"bytes,7,opt,name=commit_message,json=commitMessage,proto3" json:"commit_message,omitempty"`
User *User `protobuf:"bytes,8,opt,name=user,proto3" json:"user,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ResolveConflictsRequestHeader) Reset() { *m = ResolveConflictsRequestHeader{} }
func (m *ResolveConflictsRequestHeader) String() string { return proto.CompactTextString(m) }
func (*ResolveConflictsRequestHeader) ProtoMessage() {}
func (*ResolveConflictsRequestHeader) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{4} }
func (m *ResolveConflictsRequestHeader) Reset() { *m = ResolveConflictsRequestHeader{} }
func (m *ResolveConflictsRequestHeader) String() string { return proto.CompactTextString(m) }
func (*ResolveConflictsRequestHeader) ProtoMessage() {}
func (*ResolveConflictsRequestHeader) Descriptor() ([]byte, []int) {
return fileDescriptor_conflicts_46d86b81eab9244c, []int{4}
}
func (m *ResolveConflictsRequestHeader) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ResolveConflictsRequestHeader.Unmarshal(m, b)
}
func (m *ResolveConflictsRequestHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ResolveConflictsRequestHeader.Marshal(b, m, deterministic)
}
func (dst *ResolveConflictsRequestHeader) XXX_Merge(src proto.Message) {
xxx_messageInfo_ResolveConflictsRequestHeader.Merge(dst, src)
}
func (m *ResolveConflictsRequestHeader) XXX_Size() int {
return xxx_messageInfo_ResolveConflictsRequestHeader.Size(m)
}
func (m *ResolveConflictsRequestHeader) XXX_DiscardUnknown() {
xxx_messageInfo_ResolveConflictsRequestHeader.DiscardUnknown(m)
}
var xxx_messageInfo_ResolveConflictsRequestHeader proto.InternalMessageInfo
func (m *ResolveConflictsRequestHeader) GetRepository() *Repository {
if m != nil {
......@@ -305,23 +425,49 @@ type ResolveConflictsRequest struct {
// *ResolveConflictsRequest_Header
// *ResolveConflictsRequest_FilesJson
ResolveConflictsRequestPayload isResolveConflictsRequest_ResolveConflictsRequestPayload `protobuf_oneof:"resolve_conflicts_request_payload"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ResolveConflictsRequest) Reset() { *m = ResolveConflictsRequest{} }
func (m *ResolveConflictsRequest) String() string { return proto.CompactTextString(m) }
func (*ResolveConflictsRequest) ProtoMessage() {}
func (*ResolveConflictsRequest) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{5} }
func (m *ResolveConflictsRequest) Reset() { *m = ResolveConflictsRequest{} }
func (m *ResolveConflictsRequest) String() string { return proto.CompactTextString(m) }
func (*ResolveConflictsRequest) ProtoMessage() {}
func (*ResolveConflictsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_conflicts_46d86b81eab9244c, []int{5}
}
func (m *ResolveConflictsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ResolveConflictsRequest.Unmarshal(m, b)
}
func (m *ResolveConflictsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ResolveConflictsRequest.Marshal(b, m, deterministic)
}
func (dst *ResolveConflictsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ResolveConflictsRequest.Merge(dst, src)
}
func (m *ResolveConflictsRequest) XXX_Size() int {
return xxx_messageInfo_ResolveConflictsRequest.Size(m)
}
func (m *ResolveConflictsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ResolveConflictsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ResolveConflictsRequest proto.InternalMessageInfo
type isResolveConflictsRequest_ResolveConflictsRequestPayload interface{ isResolveConflictsRequest_ResolveConflictsRequestPayload() }
type isResolveConflictsRequest_ResolveConflictsRequestPayload interface {
isResolveConflictsRequest_ResolveConflictsRequestPayload()
}
type ResolveConflictsRequest_Header struct {
Header *ResolveConflictsRequestHeader `protobuf:"bytes,1,opt,name=header,oneof"`
Header *ResolveConflictsRequestHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"`
}
type ResolveConflictsRequest_FilesJson struct {
FilesJson []byte `protobuf:"bytes,2,opt,name=files_json,json=filesJson,proto3,oneof"`
}
func (*ResolveConflictsRequest_Header) isResolveConflictsRequest_ResolveConflictsRequestPayload() {}
func (*ResolveConflictsRequest_Header) isResolveConflictsRequest_ResolveConflictsRequestPayload() {}
func (*ResolveConflictsRequest_FilesJson) isResolveConflictsRequest_ResolveConflictsRequestPayload() {}
func (m *ResolveConflictsRequest) GetResolveConflictsRequestPayload() isResolveConflictsRequest_ResolveConflictsRequestPayload {
......@@ -401,11 +547,11 @@ func _ResolveConflictsRequest_OneofSizer(msg proto.Message) (n int) {
switch x := m.ResolveConflictsRequestPayload.(type) {
case *ResolveConflictsRequest_Header:
s := proto.Size(x.Header)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *ResolveConflictsRequest_FilesJson:
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.FilesJson)))
n += len(x.FilesJson)
case nil:
......@@ -416,13 +562,35 @@ func _ResolveConflictsRequest_OneofSizer(msg proto.Message) (n int) {
}
type ResolveConflictsResponse struct {
ResolutionError string `protobuf:"bytes,1,opt,name=resolution_error,json=resolutionError" json:"resolution_error,omitempty"`
ResolutionError string `protobuf:"bytes,1,opt,name=resolution_error,json=resolutionError,proto3" json:"resolution_error,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ResolveConflictsResponse) Reset() { *m = ResolveConflictsResponse{} }
func (m *ResolveConflictsResponse) String() string { return proto.CompactTextString(m) }
func (*ResolveConflictsResponse) ProtoMessage() {}
func (*ResolveConflictsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_conflicts_46d86b81eab9244c, []int{6}
}
func (m *ResolveConflictsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ResolveConflictsResponse.Unmarshal(m, b)
}
func (m *ResolveConflictsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ResolveConflictsResponse.Marshal(b, m, deterministic)
}
func (dst *ResolveConflictsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ResolveConflictsResponse.Merge(dst, src)
}
func (m *ResolveConflictsResponse) XXX_Size() int {
return xxx_messageInfo_ResolveConflictsResponse.Size(m)
}
func (m *ResolveConflictsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ResolveConflictsResponse.DiscardUnknown(m)
}
func (m *ResolveConflictsResponse) Reset() { *m = ResolveConflictsResponse{} }
func (m *ResolveConflictsResponse) String() string { return proto.CompactTextString(m) }
func (*ResolveConflictsResponse) ProtoMessage() {}
func (*ResolveConflictsResponse) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{6} }
var xxx_messageInfo_ResolveConflictsResponse proto.InternalMessageInfo
func (m *ResolveConflictsResponse) GetResolutionError() string {
if m != nil {
......@@ -449,8 +617,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for ConflictsService service
// ConflictsServiceClient is the client API for ConflictsService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ConflictsServiceClient interface {
ListConflictFiles(ctx context.Context, in *ListConflictFilesRequest, opts ...grpc.CallOption) (ConflictsService_ListConflictFilesClient, error)
ResolveConflicts(ctx context.Context, opts ...grpc.CallOption) (ConflictsService_ResolveConflictsClient, error)
......@@ -465,7 +634,7 @@ func NewConflictsServiceClient(cc *grpc.ClientConn) ConflictsServiceClient {
}
func (c *conflictsServiceClient) ListConflictFiles(ctx context.Context, in *ListConflictFilesRequest, opts ...grpc.CallOption) (ConflictsService_ListConflictFilesClient, error) {
stream, err := grpc.NewClientStream(ctx, &_ConflictsService_serviceDesc.Streams[0], c.cc, "/gitaly.ConflictsService/ListConflictFiles", opts...)
stream, err := c.cc.NewStream(ctx, &_ConflictsService_serviceDesc.Streams[0], "/gitaly.ConflictsService/ListConflictFiles", opts...)
if err != nil {
return nil, err
}
......@@ -497,7 +666,7 @@ func (x *conflictsServiceListConflictFilesClient) Recv() (*ListConflictFilesResp
}
func (c *conflictsServiceClient) ResolveConflicts(ctx context.Context, opts ...grpc.CallOption) (ConflictsService_ResolveConflictsClient, error) {
stream, err := grpc.NewClientStream(ctx, &_ConflictsService_serviceDesc.Streams[1], c.cc, "/gitaly.ConflictsService/ResolveConflicts", opts...)
stream, err := c.cc.NewStream(ctx, &_ConflictsService_serviceDesc.Streams[1], "/gitaly.ConflictsService/ResolveConflicts", opts...)
if err != nil {
return nil, err
}
......@@ -530,8 +699,7 @@ func (x *conflictsServiceResolveConflictsClient) CloseAndRecv() (*ResolveConflic
return m, nil
}
// Server API for ConflictsService service
// ConflictsServiceServer is the server API for ConflictsService service.
type ConflictsServiceServer interface {
ListConflictFiles(*ListConflictFilesRequest, ConflictsService_ListConflictFilesServer) error
ResolveConflicts(ConflictsService_ResolveConflictsServer) error
......@@ -607,9 +775,9 @@ var _ConflictsService_serviceDesc = grpc.ServiceDesc{
Metadata: "conflicts.proto",
}
func init() { proto.RegisterFile("conflicts.proto", fileDescriptor3) }
func init() { proto.RegisterFile("conflicts.proto", fileDescriptor_conflicts_46d86b81eab9244c) }
var fileDescriptor3 = []byte{
var fileDescriptor_conflicts_46d86b81eab9244c = []byte{
// 575 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0xd1, 0x6a, 0x13, 0x41,
0x14, 0x86, 0xbb, 0x6d, 0x93, 0x34, 0xa7, 0xdb, 0x34, 0x1d, 0x94, 0x6e, 0x03, 0xa1, 0xdb, 0xad,
......
......@@ -17,32 +17,60 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type CommitDiffRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId" json:"left_commit_id,omitempty"`
RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId" json:"right_commit_id,omitempty"`
IgnoreWhitespaceChange bool `protobuf:"varint,4,opt,name=ignore_whitespace_change,json=ignoreWhitespaceChange" json:"ignore_whitespace_change,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId,proto3" json:"left_commit_id,omitempty"`
RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId,proto3" json:"right_commit_id,omitempty"`
IgnoreWhitespaceChange bool `protobuf:"varint,4,opt,name=ignore_whitespace_change,json=ignoreWhitespaceChange,proto3" json:"ignore_whitespace_change,omitempty"`
Paths [][]byte `protobuf:"bytes,5,rep,name=paths,proto3" json:"paths,omitempty"`
CollapseDiffs bool `protobuf:"varint,6,opt,name=collapse_diffs,json=collapseDiffs" json:"collapse_diffs,omitempty"`
EnforceLimits bool `protobuf:"varint,7,opt,name=enforce_limits,json=enforceLimits" json:"enforce_limits,omitempty"`
CollapseDiffs bool `protobuf:"varint,6,opt,name=collapse_diffs,json=collapseDiffs,proto3" json:"collapse_diffs,omitempty"`
EnforceLimits bool `protobuf:"varint,7,opt,name=enforce_limits,json=enforceLimits,proto3" json:"enforce_limits,omitempty"`
// These limits are only enforced when enforce_limits == true.
MaxFiles int32 `protobuf:"varint,8,opt,name=max_files,json=maxFiles" json:"max_files,omitempty"`
MaxLines int32 `protobuf:"varint,9,opt,name=max_lines,json=maxLines" json:"max_lines,omitempty"`
MaxBytes int32 `protobuf:"varint,10,opt,name=max_bytes,json=maxBytes" json:"max_bytes,omitempty"`
MaxFiles int32 `protobuf:"varint,8,opt,name=max_files,json=maxFiles,proto3" json:"max_files,omitempty"`
MaxLines int32 `protobuf:"varint,9,opt,name=max_lines,json=maxLines,proto3" json:"max_lines,omitempty"`
MaxBytes int32 `protobuf:"varint,10,opt,name=max_bytes,json=maxBytes,proto3" json:"max_bytes,omitempty"`
// Limitation of a single diff patch,
// patches surpassing this limit are pruned by default.
// If this is 0 you will get back empty patches.
MaxPatchBytes int32 `protobuf:"varint,14,opt,name=max_patch_bytes,json=maxPatchBytes" json:"max_patch_bytes,omitempty"`
MaxPatchBytes int32 `protobuf:"varint,14,opt,name=max_patch_bytes,json=maxPatchBytes,proto3" json:"max_patch_bytes,omitempty"`
// These limits are only enforced if collapse_diffs == true.
SafeMaxFiles int32 `protobuf:"varint,11,opt,name=safe_max_files,json=safeMaxFiles" json:"safe_max_files,omitempty"`
SafeMaxLines int32 `protobuf:"varint,12,opt,name=safe_max_lines,json=safeMaxLines" json:"safe_max_lines,omitempty"`
SafeMaxBytes int32 `protobuf:"varint,13,opt,name=safe_max_bytes,json=safeMaxBytes" json:"safe_max_bytes,omitempty"`
SafeMaxFiles int32 `protobuf:"varint,11,opt,name=safe_max_files,json=safeMaxFiles,proto3" json:"safe_max_files,omitempty"`
SafeMaxLines int32 `protobuf:"varint,12,opt,name=safe_max_lines,json=safeMaxLines,proto3" json:"safe_max_lines,omitempty"`
SafeMaxBytes int32 `protobuf:"varint,13,opt,name=safe_max_bytes,json=safeMaxBytes,proto3" json:"safe_max_bytes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommitDiffRequest) Reset() { *m = CommitDiffRequest{} }
func (m *CommitDiffRequest) String() string { return proto.CompactTextString(m) }
func (*CommitDiffRequest) ProtoMessage() {}
func (*CommitDiffRequest) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0} }
func (m *CommitDiffRequest) Reset() { *m = CommitDiffRequest{} }
func (m *CommitDiffRequest) String() string { return proto.CompactTextString(m) }
func (*CommitDiffRequest) ProtoMessage() {}
func (*CommitDiffRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_diff_068a9eeeafb93491, []int{0}
}
func (m *CommitDiffRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommitDiffRequest.Unmarshal(m, b)
}
func (m *CommitDiffRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommitDiffRequest.Marshal(b, m, deterministic)
}
func (dst *CommitDiffRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommitDiffRequest.Merge(dst, src)
}
func (m *CommitDiffRequest) XXX_Size() int {
return xxx_messageInfo_CommitDiffRequest.Size(m)
}
func (m *CommitDiffRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CommitDiffRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CommitDiffRequest proto.InternalMessageInfo
func (m *CommitDiffRequest) GetRepository() *Repository {
if m != nil {
......@@ -147,28 +175,50 @@ type CommitDiffResponse struct {
FromPath []byte `protobuf:"bytes,1,opt,name=from_path,json=fromPath,proto3" json:"from_path,omitempty"`
ToPath []byte `protobuf:"bytes,2,opt,name=to_path,json=toPath,proto3" json:"to_path,omitempty"`
// Blob ID as returned via `git diff --full-index`
FromId string `protobuf:"bytes,3,opt,name=from_id,json=fromId" json:"from_id,omitempty"`
ToId string `protobuf:"bytes,4,opt,name=to_id,json=toId" json:"to_id,omitempty"`
OldMode int32 `protobuf:"varint,5,opt,name=old_mode,json=oldMode" json:"old_mode,omitempty"`
NewMode int32 `protobuf:"varint,6,opt,name=new_mode,json=newMode" json:"new_mode,omitempty"`
Binary bool `protobuf:"varint,7,opt,name=binary" json:"binary,omitempty"`
FromId string `protobuf:"bytes,3,opt,name=from_id,json=fromId,proto3" json:"from_id,omitempty"`
ToId string `protobuf:"bytes,4,opt,name=to_id,json=toId,proto3" json:"to_id,omitempty"`
OldMode int32 `protobuf:"varint,5,opt,name=old_mode,json=oldMode,proto3" json:"old_mode,omitempty"`
NewMode int32 `protobuf:"varint,6,opt,name=new_mode,json=newMode,proto3" json:"new_mode,omitempty"`
Binary bool `protobuf:"varint,7,opt,name=binary,proto3" json:"binary,omitempty"`
RawPatchData []byte `protobuf:"bytes,9,opt,name=raw_patch_data,json=rawPatchData,proto3" json:"raw_patch_data,omitempty"`
EndOfPatch bool `protobuf:"varint,10,opt,name=end_of_patch,json=endOfPatch" json:"end_of_patch,omitempty"`
EndOfPatch bool `protobuf:"varint,10,opt,name=end_of_patch,json=endOfPatch,proto3" json:"end_of_patch,omitempty"`
// Indicates the diff file at which we overflow according to the limitations sent,
// in which case only this attribute will be set.
OverflowMarker bool `protobuf:"varint,11,opt,name=overflow_marker,json=overflowMarker" json:"overflow_marker,omitempty"`
OverflowMarker bool `protobuf:"varint,11,opt,name=overflow_marker,json=overflowMarker,proto3" json:"overflow_marker,omitempty"`
// Indicates the patch surpassed a "safe" limit and was therefore pruned, but
// the client may still request the full patch on a separate request.
Collapsed bool `protobuf:"varint,12,opt,name=collapsed" json:"collapsed,omitempty"`
Collapsed bool `protobuf:"varint,12,opt,name=collapsed,proto3" json:"collapsed,omitempty"`
// Indicates the patch was pruned since it surpassed a hard limit, and can
// therefore not be expanded.
TooLarge bool `protobuf:"varint,13,opt,name=too_large,json=tooLarge" json:"too_large,omitempty"`
TooLarge bool `protobuf:"varint,13,opt,name=too_large,json=tooLarge,proto3" json:"too_large,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommitDiffResponse) Reset() { *m = CommitDiffResponse{} }
func (m *CommitDiffResponse) String() string { return proto.CompactTextString(m) }
func (*CommitDiffResponse) ProtoMessage() {}
func (*CommitDiffResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_diff_068a9eeeafb93491, []int{1}
}
func (m *CommitDiffResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommitDiffResponse.Unmarshal(m, b)
}
func (m *CommitDiffResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommitDiffResponse.Marshal(b, m, deterministic)
}
func (dst *CommitDiffResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommitDiffResponse.Merge(dst, src)
}
func (m *CommitDiffResponse) XXX_Size() int {
return xxx_messageInfo_CommitDiffResponse.Size(m)
}
func (m *CommitDiffResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CommitDiffResponse.DiscardUnknown(m)
}
func (m *CommitDiffResponse) Reset() { *m = CommitDiffResponse{} }
func (m *CommitDiffResponse) String() string { return proto.CompactTextString(m) }
func (*CommitDiffResponse) ProtoMessage() {}
func (*CommitDiffResponse) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{1} }
var xxx_messageInfo_CommitDiffResponse proto.InternalMessageInfo
func (m *CommitDiffResponse) GetFromPath() []byte {
if m != nil {
......@@ -255,16 +305,38 @@ func (m *CommitDiffResponse) GetTooLarge() bool {
}
type CommitDeltaRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId" json:"left_commit_id,omitempty"`
RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId" json:"right_commit_id,omitempty"`
Paths [][]byte `protobuf:"bytes,4,rep,name=paths,proto3" json:"paths,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId,proto3" json:"left_commit_id,omitempty"`
RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId,proto3" json:"right_commit_id,omitempty"`
Paths [][]byte `protobuf:"bytes,4,rep,name=paths,proto3" json:"paths,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommitDeltaRequest) Reset() { *m = CommitDeltaRequest{} }
func (m *CommitDeltaRequest) String() string { return proto.CompactTextString(m) }
func (*CommitDeltaRequest) ProtoMessage() {}
func (*CommitDeltaRequest) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{2} }
func (m *CommitDeltaRequest) Reset() { *m = CommitDeltaRequest{} }
func (m *CommitDeltaRequest) String() string { return proto.CompactTextString(m) }
func (*CommitDeltaRequest) ProtoMessage() {}
func (*CommitDeltaRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_diff_068a9eeeafb93491, []int{2}
}
func (m *CommitDeltaRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommitDeltaRequest.Unmarshal(m, b)
}
func (m *CommitDeltaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommitDeltaRequest.Marshal(b, m, deterministic)
}
func (dst *CommitDeltaRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommitDeltaRequest.Merge(dst, src)
}
func (m *CommitDeltaRequest) XXX_Size() int {
return xxx_messageInfo_CommitDeltaRequest.Size(m)
}
func (m *CommitDeltaRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CommitDeltaRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CommitDeltaRequest proto.InternalMessageInfo
func (m *CommitDeltaRequest) GetRepository() *Repository {
if m != nil {
......@@ -298,16 +370,38 @@ type CommitDelta struct {
FromPath []byte `protobuf:"bytes,1,opt,name=from_path,json=fromPath,proto3" json:"from_path,omitempty"`
ToPath []byte `protobuf:"bytes,2,opt,name=to_path,json=toPath,proto3" json:"to_path,omitempty"`
// Blob ID as returned via `git diff --full-index`
FromId string `protobuf:"bytes,3,opt,name=from_id,json=fromId" json:"from_id,omitempty"`
ToId string `protobuf:"bytes,4,opt,name=to_id,json=toId" json:"to_id,omitempty"`
OldMode int32 `protobuf:"varint,5,opt,name=old_mode,json=oldMode" json:"old_mode,omitempty"`
NewMode int32 `protobuf:"varint,6,opt,name=new_mode,json=newMode" json:"new_mode,omitempty"`
FromId string `protobuf:"bytes,3,opt,name=from_id,json=fromId,proto3" json:"from_id,omitempty"`
ToId string `protobuf:"bytes,4,opt,name=to_id,json=toId,proto3" json:"to_id,omitempty"`
OldMode int32 `protobuf:"varint,5,opt,name=old_mode,json=oldMode,proto3" json:"old_mode,omitempty"`
NewMode int32 `protobuf:"varint,6,opt,name=new_mode,json=newMode,proto3" json:"new_mode,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommitDelta) Reset() { *m = CommitDelta{} }
func (m *CommitDelta) String() string { return proto.CompactTextString(m) }
func (*CommitDelta) ProtoMessage() {}
func (*CommitDelta) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{3} }
func (m *CommitDelta) Reset() { *m = CommitDelta{} }
func (m *CommitDelta) String() string { return proto.CompactTextString(m) }
func (*CommitDelta) ProtoMessage() {}
func (*CommitDelta) Descriptor() ([]byte, []int) {
return fileDescriptor_diff_068a9eeeafb93491, []int{3}
}
func (m *CommitDelta) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommitDelta.Unmarshal(m, b)
}
func (m *CommitDelta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommitDelta.Marshal(b, m, deterministic)
}
func (dst *CommitDelta) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommitDelta.Merge(dst, src)
}
func (m *CommitDelta) XXX_Size() int {
return xxx_messageInfo_CommitDelta.Size(m)
}
func (m *CommitDelta) XXX_DiscardUnknown() {
xxx_messageInfo_CommitDelta.DiscardUnknown(m)
}
var xxx_messageInfo_CommitDelta proto.InternalMessageInfo
func (m *CommitDelta) GetFromPath() []byte {
if m != nil {
......@@ -352,13 +446,35 @@ func (m *CommitDelta) GetNewMode() int32 {
}
type CommitDeltaResponse struct {
Deltas []*CommitDelta `protobuf:"bytes,1,rep,name=deltas" json:"deltas,omitempty"`
Deltas []*CommitDelta `protobuf:"bytes,1,rep,name=deltas,proto3" json:"deltas,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommitDeltaResponse) Reset() { *m = CommitDeltaResponse{} }
func (m *CommitDeltaResponse) String() string { return proto.CompactTextString(m) }
func (*CommitDeltaResponse) ProtoMessage() {}
func (*CommitDeltaResponse) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{4} }
func (m *CommitDeltaResponse) Reset() { *m = CommitDeltaResponse{} }
func (m *CommitDeltaResponse) String() string { return proto.CompactTextString(m) }
func (*CommitDeltaResponse) ProtoMessage() {}
func (*CommitDeltaResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_diff_068a9eeeafb93491, []int{4}
}
func (m *CommitDeltaResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommitDeltaResponse.Unmarshal(m, b)
}
func (m *CommitDeltaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommitDeltaResponse.Marshal(b, m, deterministic)
}
func (dst *CommitDeltaResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommitDeltaResponse.Merge(dst, src)
}
func (m *CommitDeltaResponse) XXX_Size() int {
return xxx_messageInfo_CommitDeltaResponse.Size(m)
}
func (m *CommitDeltaResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CommitDeltaResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CommitDeltaResponse proto.InternalMessageInfo
func (m *CommitDeltaResponse) GetDeltas() []*CommitDelta {
if m != nil {
......@@ -368,14 +484,36 @@ func (m *CommitDeltaResponse) GetDeltas() []*CommitDelta {
}
type CommitPatchRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
Revision []byte `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommitPatchRequest) Reset() { *m = CommitPatchRequest{} }
func (m *CommitPatchRequest) String() string { return proto.CompactTextString(m) }
func (*CommitPatchRequest) ProtoMessage() {}
func (*CommitPatchRequest) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{5} }
func (m *CommitPatchRequest) Reset() { *m = CommitPatchRequest{} }
func (m *CommitPatchRequest) String() string { return proto.CompactTextString(m) }
func (*CommitPatchRequest) ProtoMessage() {}
func (*CommitPatchRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_diff_068a9eeeafb93491, []int{5}
}
func (m *CommitPatchRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommitPatchRequest.Unmarshal(m, b)
}
func (m *CommitPatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommitPatchRequest.Marshal(b, m, deterministic)
}
func (dst *CommitPatchRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommitPatchRequest.Merge(dst, src)
}
func (m *CommitPatchRequest) XXX_Size() int {
return xxx_messageInfo_CommitPatchRequest.Size(m)
}
func (m *CommitPatchRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CommitPatchRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CommitPatchRequest proto.InternalMessageInfo
func (m *CommitPatchRequest) GetRepository() *Repository {
if m != nil {
......@@ -392,13 +530,35 @@ func (m *CommitPatchRequest) GetRevision() []byte {
}
type CommitPatchResponse struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommitPatchResponse) Reset() { *m = CommitPatchResponse{} }
func (m *CommitPatchResponse) String() string { return proto.CompactTextString(m) }
func (*CommitPatchResponse) ProtoMessage() {}
func (*CommitPatchResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_diff_068a9eeeafb93491, []int{6}
}
func (m *CommitPatchResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommitPatchResponse.Unmarshal(m, b)
}
func (m *CommitPatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommitPatchResponse.Marshal(b, m, deterministic)
}
func (dst *CommitPatchResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommitPatchResponse.Merge(dst, src)
}
func (m *CommitPatchResponse) XXX_Size() int {
return xxx_messageInfo_CommitPatchResponse.Size(m)
}
func (m *CommitPatchResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CommitPatchResponse.DiscardUnknown(m)
}
func (m *CommitPatchResponse) Reset() { *m = CommitPatchResponse{} }
func (m *CommitPatchResponse) String() string { return proto.CompactTextString(m) }
func (*CommitPatchResponse) ProtoMessage() {}
func (*CommitPatchResponse) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{6} }
var xxx_messageInfo_CommitPatchResponse proto.InternalMessageInfo
func (m *CommitPatchResponse) GetData() []byte {
if m != nil {
......@@ -408,15 +568,37 @@ func (m *CommitPatchResponse) GetData() []byte {
}
type RawDiffRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId" json:"left_commit_id,omitempty"`
RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId" json:"right_commit_id,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId,proto3" json:"left_commit_id,omitempty"`
RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId,proto3" json:"right_commit_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RawDiffRequest) Reset() { *m = RawDiffRequest{} }
func (m *RawDiffRequest) String() string { return proto.CompactTextString(m) }
func (*RawDiffRequest) ProtoMessage() {}
func (*RawDiffRequest) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{7} }
func (m *RawDiffRequest) Reset() { *m = RawDiffRequest{} }
func (m *RawDiffRequest) String() string { return proto.CompactTextString(m) }
func (*RawDiffRequest) ProtoMessage() {}
func (*RawDiffRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_diff_068a9eeeafb93491, []int{7}
}
func (m *RawDiffRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RawDiffRequest.Unmarshal(m, b)
}
func (m *RawDiffRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RawDiffRequest.Marshal(b, m, deterministic)
}
func (dst *RawDiffRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_RawDiffRequest.Merge(dst, src)
}
func (m *RawDiffRequest) XXX_Size() int {
return xxx_messageInfo_RawDiffRequest.Size(m)
}
func (m *RawDiffRequest) XXX_DiscardUnknown() {
xxx_messageInfo_RawDiffRequest.DiscardUnknown(m)
}
var xxx_messageInfo_RawDiffRequest proto.InternalMessageInfo
func (m *RawDiffRequest) GetRepository() *Repository {
if m != nil {
......@@ -440,13 +622,35 @@ func (m *RawDiffRequest) GetRightCommitId() string {
}
type RawDiffResponse struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RawDiffResponse) Reset() { *m = RawDiffResponse{} }
func (m *RawDiffResponse) String() string { return proto.CompactTextString(m) }
func (*RawDiffResponse) ProtoMessage() {}
func (*RawDiffResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_diff_068a9eeeafb93491, []int{8}
}
func (m *RawDiffResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RawDiffResponse.Unmarshal(m, b)
}
func (m *RawDiffResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RawDiffResponse.Marshal(b, m, deterministic)
}
func (dst *RawDiffResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_RawDiffResponse.Merge(dst, src)
}
func (m *RawDiffResponse) XXX_Size() int {
return xxx_messageInfo_RawDiffResponse.Size(m)
}
func (m *RawDiffResponse) XXX_DiscardUnknown() {
xxx_messageInfo_RawDiffResponse.DiscardUnknown(m)
}
func (m *RawDiffResponse) Reset() { *m = RawDiffResponse{} }
func (m *RawDiffResponse) String() string { return proto.CompactTextString(m) }
func (*RawDiffResponse) ProtoMessage() {}
func (*RawDiffResponse) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{8} }
var xxx_messageInfo_RawDiffResponse proto.InternalMessageInfo
func (m *RawDiffResponse) GetData() []byte {
if m != nil {
......@@ -456,15 +660,37 @@ func (m *RawDiffResponse) GetData() []byte {
}
type RawPatchRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId" json:"left_commit_id,omitempty"`
RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId" json:"right_commit_id,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId,proto3" json:"left_commit_id,omitempty"`
RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId,proto3" json:"right_commit_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RawPatchRequest) Reset() { *m = RawPatchRequest{} }
func (m *RawPatchRequest) String() string { return proto.CompactTextString(m) }
func (*RawPatchRequest) ProtoMessage() {}
func (*RawPatchRequest) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{9} }
func (m *RawPatchRequest) Reset() { *m = RawPatchRequest{} }
func (m *RawPatchRequest) String() string { return proto.CompactTextString(m) }
func (*RawPatchRequest) ProtoMessage() {}
func (*RawPatchRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_diff_068a9eeeafb93491, []int{9}
}
func (m *RawPatchRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RawPatchRequest.Unmarshal(m, b)
}
func (m *RawPatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RawPatchRequest.Marshal(b, m, deterministic)
}
func (dst *RawPatchRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_RawPatchRequest.Merge(dst, src)
}
func (m *RawPatchRequest) XXX_Size() int {
return xxx_messageInfo_RawPatchRequest.Size(m)
}
func (m *RawPatchRequest) XXX_DiscardUnknown() {
xxx_messageInfo_RawPatchRequest.DiscardUnknown(m)
}
var xxx_messageInfo_RawPatchRequest proto.InternalMessageInfo
func (m *RawPatchRequest) GetRepository() *Repository {
if m != nil {
......@@ -488,13 +714,35 @@ func (m *RawPatchRequest) GetRightCommitId() string {
}
type RawPatchResponse struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RawPatchResponse) Reset() { *m = RawPatchResponse{} }
func (m *RawPatchResponse) String() string { return proto.CompactTextString(m) }
func (*RawPatchResponse) ProtoMessage() {}
func (*RawPatchResponse) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{10} }
func (m *RawPatchResponse) Reset() { *m = RawPatchResponse{} }
func (m *RawPatchResponse) String() string { return proto.CompactTextString(m) }
func (*RawPatchResponse) ProtoMessage() {}
func (*RawPatchResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_diff_068a9eeeafb93491, []int{10}
}
func (m *RawPatchResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RawPatchResponse.Unmarshal(m, b)
}
func (m *RawPatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RawPatchResponse.Marshal(b, m, deterministic)
}
func (dst *RawPatchResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_RawPatchResponse.Merge(dst, src)
}
func (m *RawPatchResponse) XXX_Size() int {
return xxx_messageInfo_RawPatchResponse.Size(m)
}
func (m *RawPatchResponse) XXX_DiscardUnknown() {
xxx_messageInfo_RawPatchResponse.DiscardUnknown(m)
}
var xxx_messageInfo_RawPatchResponse proto.InternalMessageInfo
func (m *RawPatchResponse) GetData() []byte {
if m != nil {
......@@ -504,15 +752,37 @@ func (m *RawPatchResponse) GetData() []byte {
}
type DiffStatsRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId" json:"left_commit_id,omitempty"`
RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId" json:"right_commit_id,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
LeftCommitId string `protobuf:"bytes,2,opt,name=left_commit_id,json=leftCommitId,proto3" json:"left_commit_id,omitempty"`
RightCommitId string `protobuf:"bytes,3,opt,name=right_commit_id,json=rightCommitId,proto3" json:"right_commit_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DiffStatsRequest) Reset() { *m = DiffStatsRequest{} }
func (m *DiffStatsRequest) String() string { return proto.CompactTextString(m) }
func (*DiffStatsRequest) ProtoMessage() {}
func (*DiffStatsRequest) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{11} }
func (m *DiffStatsRequest) Reset() { *m = DiffStatsRequest{} }
func (m *DiffStatsRequest) String() string { return proto.CompactTextString(m) }
func (*DiffStatsRequest) ProtoMessage() {}
func (*DiffStatsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_diff_068a9eeeafb93491, []int{11}
}
func (m *DiffStatsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DiffStatsRequest.Unmarshal(m, b)
}
func (m *DiffStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DiffStatsRequest.Marshal(b, m, deterministic)
}
func (dst *DiffStatsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DiffStatsRequest.Merge(dst, src)
}
func (m *DiffStatsRequest) XXX_Size() int {
return xxx_messageInfo_DiffStatsRequest.Size(m)
}
func (m *DiffStatsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DiffStatsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DiffStatsRequest proto.InternalMessageInfo
func (m *DiffStatsRequest) GetRepository() *Repository {
if m != nil {
......@@ -536,15 +806,37 @@ func (m *DiffStatsRequest) GetRightCommitId() string {
}
type DiffStats struct {
Path []byte `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
Additions int32 `protobuf:"varint,2,opt,name=additions" json:"additions,omitempty"`
Deletions int32 `protobuf:"varint,3,opt,name=deletions" json:"deletions,omitempty"`
Path []byte `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
Additions int32 `protobuf:"varint,2,opt,name=additions,proto3" json:"additions,omitempty"`
Deletions int32 `protobuf:"varint,3,opt,name=deletions,proto3" json:"deletions,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DiffStats) Reset() { *m = DiffStats{} }
func (m *DiffStats) String() string { return proto.CompactTextString(m) }
func (*DiffStats) ProtoMessage() {}
func (*DiffStats) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{12} }
func (m *DiffStats) Reset() { *m = DiffStats{} }
func (m *DiffStats) String() string { return proto.CompactTextString(m) }
func (*DiffStats) ProtoMessage() {}
func (*DiffStats) Descriptor() ([]byte, []int) {
return fileDescriptor_diff_068a9eeeafb93491, []int{12}
}
func (m *DiffStats) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DiffStats.Unmarshal(m, b)
}
func (m *DiffStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DiffStats.Marshal(b, m, deterministic)
}
func (dst *DiffStats) XXX_Merge(src proto.Message) {
xxx_messageInfo_DiffStats.Merge(dst, src)
}
func (m *DiffStats) XXX_Size() int {
return xxx_messageInfo_DiffStats.Size(m)
}
func (m *DiffStats) XXX_DiscardUnknown() {
xxx_messageInfo_DiffStats.DiscardUnknown(m)
}
var xxx_messageInfo_DiffStats proto.InternalMessageInfo
func (m *DiffStats) GetPath() []byte {
if m != nil {
......@@ -568,13 +860,35 @@ func (m *DiffStats) GetDeletions() int32 {
}
type DiffStatsResponse struct {
Stats []*DiffStats `protobuf:"bytes,1,rep,name=stats" json:"stats,omitempty"`
Stats []*DiffStats `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DiffStatsResponse) Reset() { *m = DiffStatsResponse{} }
func (m *DiffStatsResponse) String() string { return proto.CompactTextString(m) }
func (*DiffStatsResponse) ProtoMessage() {}
func (*DiffStatsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_diff_068a9eeeafb93491, []int{13}
}
func (m *DiffStatsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DiffStatsResponse.Unmarshal(m, b)
}
func (m *DiffStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DiffStatsResponse.Marshal(b, m, deterministic)
}
func (dst *DiffStatsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_DiffStatsResponse.Merge(dst, src)
}
func (m *DiffStatsResponse) XXX_Size() int {
return xxx_messageInfo_DiffStatsResponse.Size(m)
}
func (m *DiffStatsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_DiffStatsResponse.DiscardUnknown(m)
}
func (m *DiffStatsResponse) Reset() { *m = DiffStatsResponse{} }
func (m *DiffStatsResponse) String() string { return proto.CompactTextString(m) }
func (*DiffStatsResponse) ProtoMessage() {}
func (*DiffStatsResponse) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{13} }
var xxx_messageInfo_DiffStatsResponse proto.InternalMessageInfo
func (m *DiffStatsResponse) GetStats() []*DiffStats {
if m != nil {
......@@ -608,8 +922,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for DiffService service
// DiffServiceClient is the client API for DiffService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type DiffServiceClient interface {
// Returns stream of CommitDiffResponse with patches chunked over messages
CommitDiff(ctx context.Context, in *CommitDiffRequest, opts ...grpc.CallOption) (DiffService_CommitDiffClient, error)
......@@ -630,7 +945,7 @@ func NewDiffServiceClient(cc *grpc.ClientConn) DiffServiceClient {
}
func (c *diffServiceClient) CommitDiff(ctx context.Context, in *CommitDiffRequest, opts ...grpc.CallOption) (DiffService_CommitDiffClient, error) {
stream, err := grpc.NewClientStream(ctx, &_DiffService_serviceDesc.Streams[0], c.cc, "/gitaly.DiffService/CommitDiff", opts...)
stream, err := c.cc.NewStream(ctx, &_DiffService_serviceDesc.Streams[0], "/gitaly.DiffService/CommitDiff", opts...)
if err != nil {
return nil, err
}
......@@ -662,7 +977,7 @@ func (x *diffServiceCommitDiffClient) Recv() (*CommitDiffResponse, error) {
}
func (c *diffServiceClient) CommitDelta(ctx context.Context, in *CommitDeltaRequest, opts ...grpc.CallOption) (DiffService_CommitDeltaClient, error) {
stream, err := grpc.NewClientStream(ctx, &_DiffService_serviceDesc.Streams[1], c.cc, "/gitaly.DiffService/CommitDelta", opts...)
stream, err := c.cc.NewStream(ctx, &_DiffService_serviceDesc.Streams[1], "/gitaly.DiffService/CommitDelta", opts...)
if err != nil {
return nil, err
}
......@@ -694,7 +1009,7 @@ func (x *diffServiceCommitDeltaClient) Recv() (*CommitDeltaResponse, error) {
}
func (c *diffServiceClient) CommitPatch(ctx context.Context, in *CommitPatchRequest, opts ...grpc.CallOption) (DiffService_CommitPatchClient, error) {
stream, err := grpc.NewClientStream(ctx, &_DiffService_serviceDesc.Streams[2], c.cc, "/gitaly.DiffService/CommitPatch", opts...)
stream, err := c.cc.NewStream(ctx, &_DiffService_serviceDesc.Streams[2], "/gitaly.DiffService/CommitPatch", opts...)
if err != nil {
return nil, err
}
......@@ -726,7 +1041,7 @@ func (x *diffServiceCommitPatchClient) Recv() (*CommitPatchResponse, error) {
}
func (c *diffServiceClient) RawDiff(ctx context.Context, in *RawDiffRequest, opts ...grpc.CallOption) (DiffService_RawDiffClient, error) {
stream, err := grpc.NewClientStream(ctx, &_DiffService_serviceDesc.Streams[3], c.cc, "/gitaly.DiffService/RawDiff", opts...)
stream, err := c.cc.NewStream(ctx, &_DiffService_serviceDesc.Streams[3], "/gitaly.DiffService/RawDiff", opts...)
if err != nil {
return nil, err
}
......@@ -758,7 +1073,7 @@ func (x *diffServiceRawDiffClient) Recv() (*RawDiffResponse, error) {
}
func (c *diffServiceClient) RawPatch(ctx context.Context, in *RawPatchRequest, opts ...grpc.CallOption) (DiffService_RawPatchClient, error) {
stream, err := grpc.NewClientStream(ctx, &_DiffService_serviceDesc.Streams[4], c.cc, "/gitaly.DiffService/RawPatch", opts...)
stream, err := c.cc.NewStream(ctx, &_DiffService_serviceDesc.Streams[4], "/gitaly.DiffService/RawPatch", opts...)
if err != nil {
return nil, err
}
......@@ -790,7 +1105,7 @@ func (x *diffServiceRawPatchClient) Recv() (*RawPatchResponse, error) {
}
func (c *diffServiceClient) DiffStats(ctx context.Context, in *DiffStatsRequest, opts ...grpc.CallOption) (DiffService_DiffStatsClient, error) {
stream, err := grpc.NewClientStream(ctx, &_DiffService_serviceDesc.Streams[5], c.cc, "/gitaly.DiffService/DiffStats", opts...)
stream, err := c.cc.NewStream(ctx, &_DiffService_serviceDesc.Streams[5], "/gitaly.DiffService/DiffStats", opts...)
if err != nil {
return nil, err
}
......@@ -821,8 +1136,7 @@ func (x *diffServiceDiffStatsClient) Recv() (*DiffStatsResponse, error) {
return m, nil
}
// Server API for DiffService service
// DiffServiceServer is the server API for DiffService service.
type DiffServiceServer interface {
// Returns stream of CommitDiffResponse with patches chunked over messages
CommitDiff(*CommitDiffRequest, DiffService_CommitDiffServer) error
......@@ -1003,9 +1317,9 @@ var _DiffService_serviceDesc = grpc.ServiceDesc{
Metadata: "diff.proto",
}
func init() { proto.RegisterFile("diff.proto", fileDescriptor4) }
func init() { proto.RegisterFile("diff.proto", fileDescriptor_diff_068a9eeeafb93491) }
var fileDescriptor4 = []byte{
var fileDescriptor_diff_068a9eeeafb93491 = []byte{
// 864 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcb, 0x6e, 0x23, 0x45,
0x14, 0xa5, 0xe3, 0x47, 0xda, 0xd7, 0x1d, 0x27, 0xa9, 0xa0, 0x4c, 0xc7, 0xc3, 0xc2, 0x6a, 0xcd,
......
......@@ -17,15 +17,43 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type AddNamespaceRequest struct {
StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName" json:"storage_name,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AddNamespaceRequest) Reset() { *m = AddNamespaceRequest{} }
func (m *AddNamespaceRequest) String() string { return proto.CompactTextString(m) }
func (*AddNamespaceRequest) ProtoMessage() {}
func (*AddNamespaceRequest) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{0} }
func (m *AddNamespaceRequest) Reset() { *m = AddNamespaceRequest{} }
func (m *AddNamespaceRequest) String() string { return proto.CompactTextString(m) }
func (*AddNamespaceRequest) ProtoMessage() {}
func (*AddNamespaceRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_namespace_01eaf6181e9c17a0, []int{0}
}
func (m *AddNamespaceRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddNamespaceRequest.Unmarshal(m, b)
}
func (m *AddNamespaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AddNamespaceRequest.Marshal(b, m, deterministic)
}
func (dst *AddNamespaceRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_AddNamespaceRequest.Merge(dst, src)
}
func (m *AddNamespaceRequest) XXX_Size() int {
return xxx_messageInfo_AddNamespaceRequest.Size(m)
}
func (m *AddNamespaceRequest) XXX_DiscardUnknown() {
xxx_messageInfo_AddNamespaceRequest.DiscardUnknown(m)
}
var xxx_messageInfo_AddNamespaceRequest proto.InternalMessageInfo
func (m *AddNamespaceRequest) GetStorageName() string {
if m != nil {
......@@ -42,14 +70,36 @@ func (m *AddNamespaceRequest) GetName() string {
}
type RemoveNamespaceRequest struct {
StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName" json:"storage_name,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RemoveNamespaceRequest) Reset() { *m = RemoveNamespaceRequest{} }
func (m *RemoveNamespaceRequest) String() string { return proto.CompactTextString(m) }
func (*RemoveNamespaceRequest) ProtoMessage() {}
func (*RemoveNamespaceRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_namespace_01eaf6181e9c17a0, []int{1}
}
func (m *RemoveNamespaceRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RemoveNamespaceRequest.Unmarshal(m, b)
}
func (m *RemoveNamespaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RemoveNamespaceRequest.Marshal(b, m, deterministic)
}
func (dst *RemoveNamespaceRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_RemoveNamespaceRequest.Merge(dst, src)
}
func (m *RemoveNamespaceRequest) XXX_Size() int {
return xxx_messageInfo_RemoveNamespaceRequest.Size(m)
}
func (m *RemoveNamespaceRequest) XXX_DiscardUnknown() {
xxx_messageInfo_RemoveNamespaceRequest.DiscardUnknown(m)
}
func (m *RemoveNamespaceRequest) Reset() { *m = RemoveNamespaceRequest{} }
func (m *RemoveNamespaceRequest) String() string { return proto.CompactTextString(m) }
func (*RemoveNamespaceRequest) ProtoMessage() {}
func (*RemoveNamespaceRequest) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{1} }
var xxx_messageInfo_RemoveNamespaceRequest proto.InternalMessageInfo
func (m *RemoveNamespaceRequest) GetStorageName() string {
if m != nil {
......@@ -66,15 +116,37 @@ func (m *RemoveNamespaceRequest) GetName() string {
}
type RenameNamespaceRequest struct {
StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName" json:"storage_name,omitempty"`
From string `protobuf:"bytes,2,opt,name=from" json:"from,omitempty"`
To string `protobuf:"bytes,3,opt,name=to" json:"to,omitempty"`
StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"`
From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RenameNamespaceRequest) Reset() { *m = RenameNamespaceRequest{} }
func (m *RenameNamespaceRequest) String() string { return proto.CompactTextString(m) }
func (*RenameNamespaceRequest) ProtoMessage() {}
func (*RenameNamespaceRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_namespace_01eaf6181e9c17a0, []int{2}
}
func (m *RenameNamespaceRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RenameNamespaceRequest.Unmarshal(m, b)
}
func (m *RenameNamespaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RenameNamespaceRequest.Marshal(b, m, deterministic)
}
func (dst *RenameNamespaceRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_RenameNamespaceRequest.Merge(dst, src)
}
func (m *RenameNamespaceRequest) XXX_Size() int {
return xxx_messageInfo_RenameNamespaceRequest.Size(m)
}
func (m *RenameNamespaceRequest) XXX_DiscardUnknown() {
xxx_messageInfo_RenameNamespaceRequest.DiscardUnknown(m)
}
func (m *RenameNamespaceRequest) Reset() { *m = RenameNamespaceRequest{} }
func (m *RenameNamespaceRequest) String() string { return proto.CompactTextString(m) }
func (*RenameNamespaceRequest) ProtoMessage() {}
func (*RenameNamespaceRequest) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{2} }
var xxx_messageInfo_RenameNamespaceRequest proto.InternalMessageInfo
func (m *RenameNamespaceRequest) GetStorageName() string {
if m != nil {
......@@ -98,14 +170,36 @@ func (m *RenameNamespaceRequest) GetTo() string {
}
type NamespaceExistsRequest struct {
StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName" json:"storage_name,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NamespaceExistsRequest) Reset() { *m = NamespaceExistsRequest{} }
func (m *NamespaceExistsRequest) String() string { return proto.CompactTextString(m) }
func (*NamespaceExistsRequest) ProtoMessage() {}
func (*NamespaceExistsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_namespace_01eaf6181e9c17a0, []int{3}
}
func (m *NamespaceExistsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NamespaceExistsRequest.Unmarshal(m, b)
}
func (m *NamespaceExistsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NamespaceExistsRequest.Marshal(b, m, deterministic)
}
func (dst *NamespaceExistsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_NamespaceExistsRequest.Merge(dst, src)
}
func (m *NamespaceExistsRequest) XXX_Size() int {
return xxx_messageInfo_NamespaceExistsRequest.Size(m)
}
func (m *NamespaceExistsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_NamespaceExistsRequest.DiscardUnknown(m)
}
func (m *NamespaceExistsRequest) Reset() { *m = NamespaceExistsRequest{} }
func (m *NamespaceExistsRequest) String() string { return proto.CompactTextString(m) }
func (*NamespaceExistsRequest) ProtoMessage() {}
func (*NamespaceExistsRequest) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{3} }
var xxx_messageInfo_NamespaceExistsRequest proto.InternalMessageInfo
func (m *NamespaceExistsRequest) GetStorageName() string {
if m != nil {
......@@ -122,13 +216,35 @@ func (m *NamespaceExistsRequest) GetName() string {
}
type NamespaceExistsResponse struct {
Exists bool `protobuf:"varint,1,opt,name=exists" json:"exists,omitempty"`
Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NamespaceExistsResponse) Reset() { *m = NamespaceExistsResponse{} }
func (m *NamespaceExistsResponse) String() string { return proto.CompactTextString(m) }
func (*NamespaceExistsResponse) ProtoMessage() {}
func (*NamespaceExistsResponse) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{4} }
func (m *NamespaceExistsResponse) Reset() { *m = NamespaceExistsResponse{} }
func (m *NamespaceExistsResponse) String() string { return proto.CompactTextString(m) }
func (*NamespaceExistsResponse) ProtoMessage() {}
func (*NamespaceExistsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_namespace_01eaf6181e9c17a0, []int{4}
}
func (m *NamespaceExistsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NamespaceExistsResponse.Unmarshal(m, b)
}
func (m *NamespaceExistsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NamespaceExistsResponse.Marshal(b, m, deterministic)
}
func (dst *NamespaceExistsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_NamespaceExistsResponse.Merge(dst, src)
}
func (m *NamespaceExistsResponse) XXX_Size() int {
return xxx_messageInfo_NamespaceExistsResponse.Size(m)
}
func (m *NamespaceExistsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_NamespaceExistsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_NamespaceExistsResponse proto.InternalMessageInfo
func (m *NamespaceExistsResponse) GetExists() bool {
if m != nil {
......@@ -138,28 +254,94 @@ func (m *NamespaceExistsResponse) GetExists() bool {
}
type AddNamespaceResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AddNamespaceResponse) Reset() { *m = AddNamespaceResponse{} }
func (m *AddNamespaceResponse) String() string { return proto.CompactTextString(m) }
func (*AddNamespaceResponse) ProtoMessage() {}
func (*AddNamespaceResponse) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{5} }
func (m *AddNamespaceResponse) Reset() { *m = AddNamespaceResponse{} }
func (m *AddNamespaceResponse) String() string { return proto.CompactTextString(m) }
func (*AddNamespaceResponse) ProtoMessage() {}
func (*AddNamespaceResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_namespace_01eaf6181e9c17a0, []int{5}
}
func (m *AddNamespaceResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddNamespaceResponse.Unmarshal(m, b)
}
func (m *AddNamespaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AddNamespaceResponse.Marshal(b, m, deterministic)
}
func (dst *AddNamespaceResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_AddNamespaceResponse.Merge(dst, src)
}
func (m *AddNamespaceResponse) XXX_Size() int {
return xxx_messageInfo_AddNamespaceResponse.Size(m)
}
func (m *AddNamespaceResponse) XXX_DiscardUnknown() {
xxx_messageInfo_AddNamespaceResponse.DiscardUnknown(m)
}
var xxx_messageInfo_AddNamespaceResponse proto.InternalMessageInfo
type RemoveNamespaceResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RemoveNamespaceResponse) Reset() { *m = RemoveNamespaceResponse{} }
func (m *RemoveNamespaceResponse) String() string { return proto.CompactTextString(m) }
func (*RemoveNamespaceResponse) ProtoMessage() {}
func (*RemoveNamespaceResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_namespace_01eaf6181e9c17a0, []int{6}
}
func (m *RemoveNamespaceResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RemoveNamespaceResponse.Unmarshal(m, b)
}
func (m *RemoveNamespaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RemoveNamespaceResponse.Marshal(b, m, deterministic)
}
func (dst *RemoveNamespaceResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_RemoveNamespaceResponse.Merge(dst, src)
}
func (m *RemoveNamespaceResponse) XXX_Size() int {
return xxx_messageInfo_RemoveNamespaceResponse.Size(m)
}
func (m *RemoveNamespaceResponse) XXX_DiscardUnknown() {
xxx_messageInfo_RemoveNamespaceResponse.DiscardUnknown(m)
}
func (m *RemoveNamespaceResponse) Reset() { *m = RemoveNamespaceResponse{} }
func (m *RemoveNamespaceResponse) String() string { return proto.CompactTextString(m) }
func (*RemoveNamespaceResponse) ProtoMessage() {}
func (*RemoveNamespaceResponse) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{6} }
var xxx_messageInfo_RemoveNamespaceResponse proto.InternalMessageInfo
type RenameNamespaceResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RenameNamespaceResponse) Reset() { *m = RenameNamespaceResponse{} }
func (m *RenameNamespaceResponse) String() string { return proto.CompactTextString(m) }
func (*RenameNamespaceResponse) ProtoMessage() {}
func (*RenameNamespaceResponse) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{7} }
func (m *RenameNamespaceResponse) Reset() { *m = RenameNamespaceResponse{} }
func (m *RenameNamespaceResponse) String() string { return proto.CompactTextString(m) }
func (*RenameNamespaceResponse) ProtoMessage() {}
func (*RenameNamespaceResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_namespace_01eaf6181e9c17a0, []int{7}
}
func (m *RenameNamespaceResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RenameNamespaceResponse.Unmarshal(m, b)
}
func (m *RenameNamespaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RenameNamespaceResponse.Marshal(b, m, deterministic)
}
func (dst *RenameNamespaceResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_RenameNamespaceResponse.Merge(dst, src)
}
func (m *RenameNamespaceResponse) XXX_Size() int {
return xxx_messageInfo_RenameNamespaceResponse.Size(m)
}
func (m *RenameNamespaceResponse) XXX_DiscardUnknown() {
xxx_messageInfo_RenameNamespaceResponse.DiscardUnknown(m)
}
var xxx_messageInfo_RenameNamespaceResponse proto.InternalMessageInfo
func init() {
proto.RegisterType((*AddNamespaceRequest)(nil), "gitaly.AddNamespaceRequest")
......@@ -180,8 +362,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for NamespaceService service
// NamespaceServiceClient is the client API for NamespaceService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type NamespaceServiceClient interface {
AddNamespace(ctx context.Context, in *AddNamespaceRequest, opts ...grpc.CallOption) (*AddNamespaceResponse, error)
RemoveNamespace(ctx context.Context, in *RemoveNamespaceRequest, opts ...grpc.CallOption) (*RemoveNamespaceResponse, error)
......@@ -199,7 +382,7 @@ func NewNamespaceServiceClient(cc *grpc.ClientConn) NamespaceServiceClient {
func (c *namespaceServiceClient) AddNamespace(ctx context.Context, in *AddNamespaceRequest, opts ...grpc.CallOption) (*AddNamespaceResponse, error) {
out := new(AddNamespaceResponse)
err := grpc.Invoke(ctx, "/gitaly.NamespaceService/AddNamespace", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/gitaly.NamespaceService/AddNamespace", in, out, opts...)
if err != nil {
return nil, err
}
......@@ -208,7 +391,7 @@ func (c *namespaceServiceClient) AddNamespace(ctx context.Context, in *AddNamesp
func (c *namespaceServiceClient) RemoveNamespace(ctx context.Context, in *RemoveNamespaceRequest, opts ...grpc.CallOption) (*RemoveNamespaceResponse, error) {
out := new(RemoveNamespaceResponse)
err := grpc.Invoke(ctx, "/gitaly.NamespaceService/RemoveNamespace", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/gitaly.NamespaceService/RemoveNamespace", in, out, opts...)
if err != nil {
return nil, err
}
......@@ -217,7 +400,7 @@ func (c *namespaceServiceClient) RemoveNamespace(ctx context.Context, in *Remove
func (c *namespaceServiceClient) RenameNamespace(ctx context.Context, in *RenameNamespaceRequest, opts ...grpc.CallOption) (*RenameNamespaceResponse, error) {
out := new(RenameNamespaceResponse)
err := grpc.Invoke(ctx, "/gitaly.NamespaceService/RenameNamespace", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/gitaly.NamespaceService/RenameNamespace", in, out, opts...)
if err != nil {
return nil, err
}
......@@ -226,15 +409,14 @@ func (c *namespaceServiceClient) RenameNamespace(ctx context.Context, in *Rename
func (c *namespaceServiceClient) NamespaceExists(ctx context.Context, in *NamespaceExistsRequest, opts ...grpc.CallOption) (*NamespaceExistsResponse, error) {
out := new(NamespaceExistsResponse)
err := grpc.Invoke(ctx, "/gitaly.NamespaceService/NamespaceExists", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/gitaly.NamespaceService/NamespaceExists", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for NamespaceService service
// NamespaceServiceServer is the server API for NamespaceService service.
type NamespaceServiceServer interface {
AddNamespace(context.Context, *AddNamespaceRequest) (*AddNamespaceResponse, error)
RemoveNamespace(context.Context, *RemoveNamespaceRequest) (*RemoveNamespaceResponse, error)
......@@ -343,9 +525,9 @@ var _NamespaceService_serviceDesc = grpc.ServiceDesc{
Metadata: "namespace.proto",
}
func init() { proto.RegisterFile("namespace.proto", fileDescriptor5) }
func init() { proto.RegisterFile("namespace.proto", fileDescriptor_namespace_01eaf6181e9c17a0) }
var fileDescriptor5 = []byte{
var fileDescriptor_namespace_01eaf6181e9c17a0 = []byte{
// 291 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xcf, 0x4b, 0xcc, 0x4d,
0x2d, 0x2e, 0x48, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x4b, 0xcf, 0x2c,
......
......@@ -17,14 +17,42 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type PostReceiveRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PostReceiveRequest) Reset() { *m = PostReceiveRequest{} }
func (m *PostReceiveRequest) String() string { return proto.CompactTextString(m) }
func (*PostReceiveRequest) ProtoMessage() {}
func (*PostReceiveRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_notifications_671e57d33093424c, []int{0}
}
func (m *PostReceiveRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PostReceiveRequest.Unmarshal(m, b)
}
func (m *PostReceiveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PostReceiveRequest.Marshal(b, m, deterministic)
}
func (dst *PostReceiveRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PostReceiveRequest.Merge(dst, src)
}
func (m *PostReceiveRequest) XXX_Size() int {
return xxx_messageInfo_PostReceiveRequest.Size(m)
}
func (m *PostReceiveRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PostReceiveRequest.DiscardUnknown(m)
}
func (m *PostReceiveRequest) Reset() { *m = PostReceiveRequest{} }
func (m *PostReceiveRequest) String() string { return proto.CompactTextString(m) }
func (*PostReceiveRequest) ProtoMessage() {}
func (*PostReceiveRequest) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{0} }
var xxx_messageInfo_PostReceiveRequest proto.InternalMessageInfo
func (m *PostReceiveRequest) GetRepository() *Repository {
if m != nil {
......@@ -34,12 +62,34 @@ func (m *PostReceiveRequest) GetRepository() *Repository {
}
type PostReceiveResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PostReceiveResponse) Reset() { *m = PostReceiveResponse{} }
func (m *PostReceiveResponse) String() string { return proto.CompactTextString(m) }
func (*PostReceiveResponse) ProtoMessage() {}
func (*PostReceiveResponse) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{1} }
func (m *PostReceiveResponse) Reset() { *m = PostReceiveResponse{} }
func (m *PostReceiveResponse) String() string { return proto.CompactTextString(m) }
func (*PostReceiveResponse) ProtoMessage() {}
func (*PostReceiveResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_notifications_671e57d33093424c, []int{1}
}
func (m *PostReceiveResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PostReceiveResponse.Unmarshal(m, b)
}
func (m *PostReceiveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PostReceiveResponse.Marshal(b, m, deterministic)
}
func (dst *PostReceiveResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_PostReceiveResponse.Merge(dst, src)
}
func (m *PostReceiveResponse) XXX_Size() int {
return xxx_messageInfo_PostReceiveResponse.Size(m)
}
func (m *PostReceiveResponse) XXX_DiscardUnknown() {
xxx_messageInfo_PostReceiveResponse.DiscardUnknown(m)
}
var xxx_messageInfo_PostReceiveResponse proto.InternalMessageInfo
func init() {
proto.RegisterType((*PostReceiveRequest)(nil), "gitaly.PostReceiveRequest")
......@@ -54,8 +104,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for NotificationService service
// NotificationServiceClient is the client API for NotificationService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type NotificationServiceClient interface {
PostReceive(ctx context.Context, in *PostReceiveRequest, opts ...grpc.CallOption) (*PostReceiveResponse, error)
}
......@@ -70,15 +121,14 @@ func NewNotificationServiceClient(cc *grpc.ClientConn) NotificationServiceClient
func (c *notificationServiceClient) PostReceive(ctx context.Context, in *PostReceiveRequest, opts ...grpc.CallOption) (*PostReceiveResponse, error) {
out := new(PostReceiveResponse)
err := grpc.Invoke(ctx, "/gitaly.NotificationService/PostReceive", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/gitaly.NotificationService/PostReceive", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for NotificationService service
// NotificationServiceServer is the server API for NotificationService service.
type NotificationServiceServer interface {
PostReceive(context.Context, *PostReceiveRequest) (*PostReceiveResponse, error)
}
......@@ -118,9 +168,9 @@ var _NotificationService_serviceDesc = grpc.ServiceDesc{
Metadata: "notifications.proto",
}
func init() { proto.RegisterFile("notifications.proto", fileDescriptor6) }
func init() { proto.RegisterFile("notifications.proto", fileDescriptor_notifications_671e57d33093424c) }
var fileDescriptor6 = []byte{
var fileDescriptor_notifications_671e57d33093424c = []byte{
// 170 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xce, 0xcb, 0x2f, 0xc9,
0x4c, 0xcb, 0x4c, 0x4e, 0x2c, 0xc9, 0xcc, 0xcf, 0x2b, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17,
......
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: objectpool.proto
package gitalypb
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type ObjectPool struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ObjectPool) Reset() { *m = ObjectPool{} }
func (m *ObjectPool) String() string { return proto.CompactTextString(m) }
func (*ObjectPool) ProtoMessage() {}
func (*ObjectPool) Descriptor() ([]byte, []int) {
return fileDescriptor_objectpool_68ee011b582d5b68, []int{0}
}
func (m *ObjectPool) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ObjectPool.Unmarshal(m, b)
}
func (m *ObjectPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ObjectPool.Marshal(b, m, deterministic)
}
func (dst *ObjectPool) XXX_Merge(src proto.Message) {
xxx_messageInfo_ObjectPool.Merge(dst, src)
}
func (m *ObjectPool) XXX_Size() int {
return xxx_messageInfo_ObjectPool.Size(m)
}
func (m *ObjectPool) XXX_DiscardUnknown() {
xxx_messageInfo_ObjectPool.DiscardUnknown(m)
}
var xxx_messageInfo_ObjectPool proto.InternalMessageInfo
func (m *ObjectPool) GetRepository() *Repository {
if m != nil {
return m.Repository
}
return nil
}
// Creates an object pool from the repository. The client is responsible for
// joining this pool later with this repository.
type CreateObjectPoolRequest struct {
ObjectPool *ObjectPool `protobuf:"bytes,1,opt,name=object_pool,json=objectPool,proto3" json:"object_pool,omitempty"`
Origin *Repository `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateObjectPoolRequest) Reset() { *m = CreateObjectPoolRequest{} }
func (m *CreateObjectPoolRequest) String() string { return proto.CompactTextString(m) }
func (*CreateObjectPoolRequest) ProtoMessage() {}
func (*CreateObjectPoolRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_objectpool_68ee011b582d5b68, []int{1}
}
func (m *CreateObjectPoolRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateObjectPoolRequest.Unmarshal(m, b)
}
func (m *CreateObjectPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateObjectPoolRequest.Marshal(b, m, deterministic)
}
func (dst *CreateObjectPoolRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateObjectPoolRequest.Merge(dst, src)
}
func (m *CreateObjectPoolRequest) XXX_Size() int {
return xxx_messageInfo_CreateObjectPoolRequest.Size(m)
}
func (m *CreateObjectPoolRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateObjectPoolRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateObjectPoolRequest proto.InternalMessageInfo
func (m *CreateObjectPoolRequest) GetObjectPool() *ObjectPool {
if m != nil {
return m.ObjectPool
}
return nil
}
func (m *CreateObjectPoolRequest) GetOrigin() *Repository {
if m != nil {
return m.Origin
}
return nil
}
type CreateObjectPoolResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateObjectPoolResponse) Reset() { *m = CreateObjectPoolResponse{} }
func (m *CreateObjectPoolResponse) String() string { return proto.CompactTextString(m) }
func (*CreateObjectPoolResponse) ProtoMessage() {}
func (*CreateObjectPoolResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_objectpool_68ee011b582d5b68, []int{2}
}
func (m *CreateObjectPoolResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateObjectPoolResponse.Unmarshal(m, b)
}
func (m *CreateObjectPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateObjectPoolResponse.Marshal(b, m, deterministic)
}
func (dst *CreateObjectPoolResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateObjectPoolResponse.Merge(dst, src)
}
func (m *CreateObjectPoolResponse) XXX_Size() int {
return xxx_messageInfo_CreateObjectPoolResponse.Size(m)
}
func (m *CreateObjectPoolResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CreateObjectPoolResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CreateObjectPoolResponse proto.InternalMessageInfo
// Removes the directory from disk, caller is responsible for leaving the object
// pool before calling this RPC
type DeleteObjectPoolRequest struct {
ObjectPool *ObjectPool `protobuf:"bytes,1,opt,name=object_pool,json=objectPool,proto3" json:"object_pool,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteObjectPoolRequest) Reset() { *m = DeleteObjectPoolRequest{} }
func (m *DeleteObjectPoolRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteObjectPoolRequest) ProtoMessage() {}
func (*DeleteObjectPoolRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_objectpool_68ee011b582d5b68, []int{3}
}
func (m *DeleteObjectPoolRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteObjectPoolRequest.Unmarshal(m, b)
}
func (m *DeleteObjectPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteObjectPoolRequest.Marshal(b, m, deterministic)
}
func (dst *DeleteObjectPoolRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteObjectPoolRequest.Merge(dst, src)
}
func (m *DeleteObjectPoolRequest) XXX_Size() int {
return xxx_messageInfo_DeleteObjectPoolRequest.Size(m)
}
func (m *DeleteObjectPoolRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteObjectPoolRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteObjectPoolRequest proto.InternalMessageInfo
func (m *DeleteObjectPoolRequest) GetObjectPool() *ObjectPool {
if m != nil {
return m.ObjectPool
}
return nil
}
type DeleteObjectPoolResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteObjectPoolResponse) Reset() { *m = DeleteObjectPoolResponse{} }
func (m *DeleteObjectPoolResponse) String() string { return proto.CompactTextString(m) }
func (*DeleteObjectPoolResponse) ProtoMessage() {}
func (*DeleteObjectPoolResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_objectpool_68ee011b582d5b68, []int{4}
}
func (m *DeleteObjectPoolResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteObjectPoolResponse.Unmarshal(m, b)
}
func (m *DeleteObjectPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteObjectPoolResponse.Marshal(b, m, deterministic)
}
func (dst *DeleteObjectPoolResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteObjectPoolResponse.Merge(dst, src)
}
func (m *DeleteObjectPoolResponse) XXX_Size() int {
return xxx_messageInfo_DeleteObjectPoolResponse.Size(m)
}
func (m *DeleteObjectPoolResponse) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteObjectPoolResponse.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteObjectPoolResponse proto.InternalMessageInfo
type LinkRepositoryToObjectPoolRequest struct {
ObjectPool *ObjectPool `protobuf:"bytes,1,opt,name=object_pool,json=objectPool,proto3" json:"object_pool,omitempty"`
Repository *Repository `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LinkRepositoryToObjectPoolRequest) Reset() { *m = LinkRepositoryToObjectPoolRequest{} }
func (m *LinkRepositoryToObjectPoolRequest) String() string { return proto.CompactTextString(m) }
func (*LinkRepositoryToObjectPoolRequest) ProtoMessage() {}
func (*LinkRepositoryToObjectPoolRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_objectpool_68ee011b582d5b68, []int{5}
}
func (m *LinkRepositoryToObjectPoolRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LinkRepositoryToObjectPoolRequest.Unmarshal(m, b)
}
func (m *LinkRepositoryToObjectPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LinkRepositoryToObjectPoolRequest.Marshal(b, m, deterministic)
}
func (dst *LinkRepositoryToObjectPoolRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_LinkRepositoryToObjectPoolRequest.Merge(dst, src)
}
func (m *LinkRepositoryToObjectPoolRequest) XXX_Size() int {
return xxx_messageInfo_LinkRepositoryToObjectPoolRequest.Size(m)
}
func (m *LinkRepositoryToObjectPoolRequest) XXX_DiscardUnknown() {
xxx_messageInfo_LinkRepositoryToObjectPoolRequest.DiscardUnknown(m)
}
var xxx_messageInfo_LinkRepositoryToObjectPoolRequest proto.InternalMessageInfo
func (m *LinkRepositoryToObjectPoolRequest) GetObjectPool() *ObjectPool {
if m != nil {
return m.ObjectPool
}
return nil
}
func (m *LinkRepositoryToObjectPoolRequest) GetRepository() *Repository {
if m != nil {
return m.Repository
}
return nil
}
type LinkRepositoryToObjectPoolResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LinkRepositoryToObjectPoolResponse) Reset() { *m = LinkRepositoryToObjectPoolResponse{} }
func (m *LinkRepositoryToObjectPoolResponse) String() string { return proto.CompactTextString(m) }
func (*LinkRepositoryToObjectPoolResponse) ProtoMessage() {}
func (*LinkRepositoryToObjectPoolResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_objectpool_68ee011b582d5b68, []int{6}
}
func (m *LinkRepositoryToObjectPoolResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LinkRepositoryToObjectPoolResponse.Unmarshal(m, b)
}
func (m *LinkRepositoryToObjectPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LinkRepositoryToObjectPoolResponse.Marshal(b, m, deterministic)
}
func (dst *LinkRepositoryToObjectPoolResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_LinkRepositoryToObjectPoolResponse.Merge(dst, src)
}
func (m *LinkRepositoryToObjectPoolResponse) XXX_Size() int {
return xxx_messageInfo_LinkRepositoryToObjectPoolResponse.Size(m)
}
func (m *LinkRepositoryToObjectPoolResponse) XXX_DiscardUnknown() {
xxx_messageInfo_LinkRepositoryToObjectPoolResponse.DiscardUnknown(m)
}
var xxx_messageInfo_LinkRepositoryToObjectPoolResponse proto.InternalMessageInfo
// This RPC doesn't require the ObjectPool as it will remove the alternates file
// from the pool participant. The caller is responsible no data loss occurs.
type UnlinkRepositoryFromObjectPoolRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
ObjectPool *ObjectPool `protobuf:"bytes,2,opt,name=object_pool,json=objectPool,proto3" json:"object_pool,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UnlinkRepositoryFromObjectPoolRequest) Reset() { *m = UnlinkRepositoryFromObjectPoolRequest{} }
func (m *UnlinkRepositoryFromObjectPoolRequest) String() string { return proto.CompactTextString(m) }
func (*UnlinkRepositoryFromObjectPoolRequest) ProtoMessage() {}
func (*UnlinkRepositoryFromObjectPoolRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_objectpool_68ee011b582d5b68, []int{7}
}
func (m *UnlinkRepositoryFromObjectPoolRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UnlinkRepositoryFromObjectPoolRequest.Unmarshal(m, b)
}
func (m *UnlinkRepositoryFromObjectPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UnlinkRepositoryFromObjectPoolRequest.Marshal(b, m, deterministic)
}
func (dst *UnlinkRepositoryFromObjectPoolRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UnlinkRepositoryFromObjectPoolRequest.Merge(dst, src)
}
func (m *UnlinkRepositoryFromObjectPoolRequest) XXX_Size() int {
return xxx_messageInfo_UnlinkRepositoryFromObjectPoolRequest.Size(m)
}
func (m *UnlinkRepositoryFromObjectPoolRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UnlinkRepositoryFromObjectPoolRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UnlinkRepositoryFromObjectPoolRequest proto.InternalMessageInfo
func (m *UnlinkRepositoryFromObjectPoolRequest) GetRepository() *Repository {
if m != nil {
return m.Repository
}
return nil
}
func (m *UnlinkRepositoryFromObjectPoolRequest) GetObjectPool() *ObjectPool {
if m != nil {
return m.ObjectPool
}
return nil
}
type UnlinkRepositoryFromObjectPoolResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UnlinkRepositoryFromObjectPoolResponse) Reset() {
*m = UnlinkRepositoryFromObjectPoolResponse{}
}
func (m *UnlinkRepositoryFromObjectPoolResponse) String() string { return proto.CompactTextString(m) }
func (*UnlinkRepositoryFromObjectPoolResponse) ProtoMessage() {}
func (*UnlinkRepositoryFromObjectPoolResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_objectpool_68ee011b582d5b68, []int{8}
}
func (m *UnlinkRepositoryFromObjectPoolResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UnlinkRepositoryFromObjectPoolResponse.Unmarshal(m, b)
}
func (m *UnlinkRepositoryFromObjectPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UnlinkRepositoryFromObjectPoolResponse.Marshal(b, m, deterministic)
}
func (dst *UnlinkRepositoryFromObjectPoolResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_UnlinkRepositoryFromObjectPoolResponse.Merge(dst, src)
}
func (m *UnlinkRepositoryFromObjectPoolResponse) XXX_Size() int {
return xxx_messageInfo_UnlinkRepositoryFromObjectPoolResponse.Size(m)
}
func (m *UnlinkRepositoryFromObjectPoolResponse) XXX_DiscardUnknown() {
xxx_messageInfo_UnlinkRepositoryFromObjectPoolResponse.DiscardUnknown(m)
}
var xxx_messageInfo_UnlinkRepositoryFromObjectPoolResponse proto.InternalMessageInfo
type ReduplicateRepositoryRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReduplicateRepositoryRequest) Reset() { *m = ReduplicateRepositoryRequest{} }
func (m *ReduplicateRepositoryRequest) String() string { return proto.CompactTextString(m) }
func (*ReduplicateRepositoryRequest) ProtoMessage() {}
func (*ReduplicateRepositoryRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_objectpool_68ee011b582d5b68, []int{9}
}
func (m *ReduplicateRepositoryRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReduplicateRepositoryRequest.Unmarshal(m, b)
}
func (m *ReduplicateRepositoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReduplicateRepositoryRequest.Marshal(b, m, deterministic)
}
func (dst *ReduplicateRepositoryRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReduplicateRepositoryRequest.Merge(dst, src)
}
func (m *ReduplicateRepositoryRequest) XXX_Size() int {
return xxx_messageInfo_ReduplicateRepositoryRequest.Size(m)
}
func (m *ReduplicateRepositoryRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ReduplicateRepositoryRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ReduplicateRepositoryRequest proto.InternalMessageInfo
func (m *ReduplicateRepositoryRequest) GetRepository() *Repository {
if m != nil {
return m.Repository
}
return nil
}
type ReduplicateRepositoryResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReduplicateRepositoryResponse) Reset() { *m = ReduplicateRepositoryResponse{} }
func (m *ReduplicateRepositoryResponse) String() string { return proto.CompactTextString(m) }
func (*ReduplicateRepositoryResponse) ProtoMessage() {}
func (*ReduplicateRepositoryResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_objectpool_68ee011b582d5b68, []int{10}
}
func (m *ReduplicateRepositoryResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReduplicateRepositoryResponse.Unmarshal(m, b)
}
func (m *ReduplicateRepositoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReduplicateRepositoryResponse.Marshal(b, m, deterministic)
}
func (dst *ReduplicateRepositoryResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReduplicateRepositoryResponse.Merge(dst, src)
}
func (m *ReduplicateRepositoryResponse) XXX_Size() int {
return xxx_messageInfo_ReduplicateRepositoryResponse.Size(m)
}
func (m *ReduplicateRepositoryResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ReduplicateRepositoryResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ReduplicateRepositoryResponse proto.InternalMessageInfo
func init() {
proto.RegisterType((*ObjectPool)(nil), "gitaly.ObjectPool")
proto.RegisterType((*CreateObjectPoolRequest)(nil), "gitaly.CreateObjectPoolRequest")
proto.RegisterType((*CreateObjectPoolResponse)(nil), "gitaly.CreateObjectPoolResponse")
proto.RegisterType((*DeleteObjectPoolRequest)(nil), "gitaly.DeleteObjectPoolRequest")
proto.RegisterType((*DeleteObjectPoolResponse)(nil), "gitaly.DeleteObjectPoolResponse")
proto.RegisterType((*LinkRepositoryToObjectPoolRequest)(nil), "gitaly.LinkRepositoryToObjectPoolRequest")
proto.RegisterType((*LinkRepositoryToObjectPoolResponse)(nil), "gitaly.LinkRepositoryToObjectPoolResponse")
proto.RegisterType((*UnlinkRepositoryFromObjectPoolRequest)(nil), "gitaly.UnlinkRepositoryFromObjectPoolRequest")
proto.RegisterType((*UnlinkRepositoryFromObjectPoolResponse)(nil), "gitaly.UnlinkRepositoryFromObjectPoolResponse")
proto.RegisterType((*ReduplicateRepositoryRequest)(nil), "gitaly.ReduplicateRepositoryRequest")
proto.RegisterType((*ReduplicateRepositoryResponse)(nil), "gitaly.ReduplicateRepositoryResponse")
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// ObjectPoolServiceClient is the client API for ObjectPoolService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ObjectPoolServiceClient interface {
CreateObjectPool(ctx context.Context, in *CreateObjectPoolRequest, opts ...grpc.CallOption) (*CreateObjectPoolResponse, error)
DeleteObjectPool(ctx context.Context, in *DeleteObjectPoolRequest, opts ...grpc.CallOption) (*DeleteObjectPoolResponse, error)
// Repositories are assumed to be stored on the same disk
LinkRepositoryToObjectPool(ctx context.Context, in *LinkRepositoryToObjectPoolRequest, opts ...grpc.CallOption) (*LinkRepositoryToObjectPoolResponse, error)
UnlinkRepositoryFromObjectPool(ctx context.Context, in *UnlinkRepositoryFromObjectPoolRequest, opts ...grpc.CallOption) (*UnlinkRepositoryFromObjectPoolResponse, error)
ReduplicateRepository(ctx context.Context, in *ReduplicateRepositoryRequest, opts ...grpc.CallOption) (*ReduplicateRepositoryResponse, error)
}
type objectPoolServiceClient struct {
cc *grpc.ClientConn
}
func NewObjectPoolServiceClient(cc *grpc.ClientConn) ObjectPoolServiceClient {
return &objectPoolServiceClient{cc}
}
func (c *objectPoolServiceClient) CreateObjectPool(ctx context.Context, in *CreateObjectPoolRequest, opts ...grpc.CallOption) (*CreateObjectPoolResponse, error) {
out := new(CreateObjectPoolResponse)
err := c.cc.Invoke(ctx, "/gitaly.ObjectPoolService/CreateObjectPool", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *objectPoolServiceClient) DeleteObjectPool(ctx context.Context, in *DeleteObjectPoolRequest, opts ...grpc.CallOption) (*DeleteObjectPoolResponse, error) {
out := new(DeleteObjectPoolResponse)
err := c.cc.Invoke(ctx, "/gitaly.ObjectPoolService/DeleteObjectPool", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *objectPoolServiceClient) LinkRepositoryToObjectPool(ctx context.Context, in *LinkRepositoryToObjectPoolRequest, opts ...grpc.CallOption) (*LinkRepositoryToObjectPoolResponse, error) {
out := new(LinkRepositoryToObjectPoolResponse)
err := c.cc.Invoke(ctx, "/gitaly.ObjectPoolService/LinkRepositoryToObjectPool", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *objectPoolServiceClient) UnlinkRepositoryFromObjectPool(ctx context.Context, in *UnlinkRepositoryFromObjectPoolRequest, opts ...grpc.CallOption) (*UnlinkRepositoryFromObjectPoolResponse, error) {
out := new(UnlinkRepositoryFromObjectPoolResponse)
err := c.cc.Invoke(ctx, "/gitaly.ObjectPoolService/UnlinkRepositoryFromObjectPool", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *objectPoolServiceClient) ReduplicateRepository(ctx context.Context, in *ReduplicateRepositoryRequest, opts ...grpc.CallOption) (*ReduplicateRepositoryResponse, error) {
out := new(ReduplicateRepositoryResponse)
err := c.cc.Invoke(ctx, "/gitaly.ObjectPoolService/ReduplicateRepository", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ObjectPoolServiceServer is the server API for ObjectPoolService service.
type ObjectPoolServiceServer interface {
CreateObjectPool(context.Context, *CreateObjectPoolRequest) (*CreateObjectPoolResponse, error)
DeleteObjectPool(context.Context, *DeleteObjectPoolRequest) (*DeleteObjectPoolResponse, error)
// Repositories are assumed to be stored on the same disk
LinkRepositoryToObjectPool(context.Context, *LinkRepositoryToObjectPoolRequest) (*LinkRepositoryToObjectPoolResponse, error)
UnlinkRepositoryFromObjectPool(context.Context, *UnlinkRepositoryFromObjectPoolRequest) (*UnlinkRepositoryFromObjectPoolResponse, error)
ReduplicateRepository(context.Context, *ReduplicateRepositoryRequest) (*ReduplicateRepositoryResponse, error)
}
func RegisterObjectPoolServiceServer(s *grpc.Server, srv ObjectPoolServiceServer) {
s.RegisterService(&_ObjectPoolService_serviceDesc, srv)
}
func _ObjectPoolService_CreateObjectPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateObjectPoolRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ObjectPoolServiceServer).CreateObjectPool(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/gitaly.ObjectPoolService/CreateObjectPool",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ObjectPoolServiceServer).CreateObjectPool(ctx, req.(*CreateObjectPoolRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ObjectPoolService_DeleteObjectPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteObjectPoolRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ObjectPoolServiceServer).DeleteObjectPool(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/gitaly.ObjectPoolService/DeleteObjectPool",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ObjectPoolServiceServer).DeleteObjectPool(ctx, req.(*DeleteObjectPoolRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ObjectPoolService_LinkRepositoryToObjectPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(LinkRepositoryToObjectPoolRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ObjectPoolServiceServer).LinkRepositoryToObjectPool(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/gitaly.ObjectPoolService/LinkRepositoryToObjectPool",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ObjectPoolServiceServer).LinkRepositoryToObjectPool(ctx, req.(*LinkRepositoryToObjectPoolRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ObjectPoolService_UnlinkRepositoryFromObjectPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UnlinkRepositoryFromObjectPoolRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ObjectPoolServiceServer).UnlinkRepositoryFromObjectPool(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/gitaly.ObjectPoolService/UnlinkRepositoryFromObjectPool",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ObjectPoolServiceServer).UnlinkRepositoryFromObjectPool(ctx, req.(*UnlinkRepositoryFromObjectPoolRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ObjectPoolService_ReduplicateRepository_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ReduplicateRepositoryRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ObjectPoolServiceServer).ReduplicateRepository(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/gitaly.ObjectPoolService/ReduplicateRepository",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ObjectPoolServiceServer).ReduplicateRepository(ctx, req.(*ReduplicateRepositoryRequest))
}
return interceptor(ctx, in, info, handler)
}
var _ObjectPoolService_serviceDesc = grpc.ServiceDesc{
ServiceName: "gitaly.ObjectPoolService",
HandlerType: (*ObjectPoolServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateObjectPool",
Handler: _ObjectPoolService_CreateObjectPool_Handler,
},
{
MethodName: "DeleteObjectPool",
Handler: _ObjectPoolService_DeleteObjectPool_Handler,
},
{
MethodName: "LinkRepositoryToObjectPool",
Handler: _ObjectPoolService_LinkRepositoryToObjectPool_Handler,
},
{
MethodName: "UnlinkRepositoryFromObjectPool",
Handler: _ObjectPoolService_UnlinkRepositoryFromObjectPool_Handler,
},
{
MethodName: "ReduplicateRepository",
Handler: _ObjectPoolService_ReduplicateRepository_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "objectpool.proto",
}
func init() { proto.RegisterFile("objectpool.proto", fileDescriptor_objectpool_68ee011b582d5b68) }
var fileDescriptor_objectpool_68ee011b582d5b68 = []byte{
// 377 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0x41, 0x4f, 0xc2, 0x40,
0x10, 0x85, 0x29, 0x31, 0x1c, 0x06, 0x0f, 0xb8, 0x89, 0x81, 0x34, 0x2a, 0xd8, 0x80, 0x41, 0x12,
0x7b, 0x80, 0x3f, 0x60, 0xa2, 0xf1, 0x64, 0xd4, 0x54, 0x8d, 0x47, 0x53, 0x60, 0xc4, 0xd5, 0xda,
0xa9, 0xdb, 0xc5, 0x04, 0x6f, 0xde, 0x3d, 0xf8, 0x33, 0xfc, 0x99, 0x06, 0xda, 0xb2, 0x50, 0x5c,
0x68, 0x08, 0xd7, 0xf6, 0xf5, 0xbd, 0x6f, 0x67, 0x5e, 0x17, 0x4a, 0xd4, 0x7d, 0xc1, 0x9e, 0x0c,
0x88, 0x3c, 0x3b, 0x10, 0x24, 0x89, 0x15, 0x06, 0x5c, 0xba, 0xde, 0xc8, 0xdc, 0x0e, 0x9f, 0x5d,
0x81, 0xfd, 0xe8, 0xa9, 0x75, 0x0a, 0x70, 0x3d, 0x51, 0xde, 0x10, 0x79, 0xac, 0x0d, 0x20, 0x30,
0xa0, 0x90, 0x4b, 0x12, 0xa3, 0x8a, 0x51, 0x33, 0x9a, 0xc5, 0x36, 0xb3, 0xa3, 0x0f, 0x6d, 0x67,
0xfa, 0xc6, 0x99, 0x51, 0x59, 0x9f, 0x50, 0x3e, 0x13, 0xe8, 0x4a, 0x54, 0x3e, 0x0e, 0xbe, 0x0f,
0x31, 0x94, 0xac, 0x03, 0xc5, 0x08, 0xe3, 0x71, 0xcc, 0x91, 0xf6, 0x9b, 0xd1, 0x03, 0x29, 0x86,
0x16, 0x14, 0x48, 0xf0, 0x01, 0xf7, 0x2b, 0x79, 0x6d, 0x7e, 0xac, 0xb0, 0x4c, 0xa8, 0x2c, 0x66,
0x87, 0x01, 0xf9, 0x21, 0x5a, 0x57, 0x50, 0x3e, 0x47, 0x0f, 0x37, 0xc5, 0x35, 0xce, 0x5a, 0xf4,
0x8b, 0xb3, 0xbe, 0x0d, 0x38, 0xbc, 0xe4, 0xfe, 0xab, 0x42, 0xbc, 0xa3, 0x0d, 0x8d, 0x63, 0x7e,
0x25, 0xf9, 0x4c, 0x2b, 0xa9, 0x83, 0xb5, 0x8c, 0x26, 0x86, 0xfe, 0x31, 0xa0, 0x71, 0xef, 0x7b,
0x73, 0xc2, 0x0b, 0x41, 0x6f, 0x8b, 0xe0, 0x6b, 0xd4, 0x22, 0x7d, 0xd8, 0x7c, 0xa6, 0x19, 0x37,
0xe1, 0x68, 0x15, 0x51, 0x0c, 0xef, 0xc0, 0x9e, 0x83, 0xfd, 0x61, 0xe0, 0xf1, 0x9e, 0x2b, 0x71,
0x86, 0x61, 0x7d, 0x64, 0xab, 0x0a, 0xfb, 0x1a, 0xcf, 0x28, 0xb4, 0xfd, 0xbb, 0x05, 0x3b, 0x8a,
0xe5, 0x16, 0xc5, 0x07, 0xef, 0x21, 0x7b, 0x80, 0x52, 0xba, 0x84, 0xac, 0x9a, 0x44, 0x69, 0x7e,
0x0d, 0xb3, 0xa6, 0x17, 0xc4, 0x27, 0xcc, 0x8d, 0x8d, 0xd3, 0x8d, 0x53, 0xc6, 0x9a, 0x6e, 0x2b,
0x63, 0x6d, 0x59, 0x73, 0x6c, 0x08, 0xa6, 0xbe, 0x1f, 0xec, 0x38, 0x71, 0x58, 0xd9, 0x68, 0xb3,
0x95, 0x45, 0x3a, 0x8d, 0xfd, 0x32, 0xe0, 0x60, 0xf9, 0x7a, 0xd9, 0x49, 0x62, 0x98, 0xa9, 0x98,
0xa6, 0x9d, 0x55, 0x3e, 0x65, 0x78, 0x82, 0xdd, 0x7f, 0x77, 0xcc, 0xea, 0xaa, 0x1c, 0xfa, 0x5a,
0x99, 0x8d, 0x15, 0xaa, 0x24, 0xa7, 0x5b, 0x98, 0x5c, 0xaf, 0x9d, 0xbf, 0x00, 0x00, 0x00, 0xff,
0xff, 0x9b, 0x40, 0xdd, 0xa1, 0x88, 0x05, 0x00, 0x00,
}
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -6,7 +6,7 @@ package gitalypb
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf "github.com/golang/protobuf/ptypes/timestamp"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import (
context "golang.org/x/net/context"
......@@ -18,6 +18,12 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type FindLocalBranchesRequest_SortBy int32
const (
......@@ -41,7 +47,7 @@ func (x FindLocalBranchesRequest_SortBy) String() string {
return proto.EnumName(FindLocalBranchesRequest_SortBy_name, int32(x))
}
func (FindLocalBranchesRequest_SortBy) EnumDescriptor() ([]byte, []int) {
return fileDescriptor9, []int{10, 0}
return fileDescriptor_ref_15e26c5c2600d751, []int{10, 0}
}
type CreateBranchResponse_Status int32
......@@ -70,21 +76,43 @@ func (x CreateBranchResponse_Status) String() string {
return proto.EnumName(CreateBranchResponse_Status_name, int32(x))
}
func (CreateBranchResponse_Status) EnumDescriptor() ([]byte, []int) {
return fileDescriptor9, []int{21, 0}
return fileDescriptor_ref_15e26c5c2600d751, []int{21, 0}
}
type ListNewBlobsRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"`
// Limit the number of revs to be returned fro mgit-rev-list
// If the limit is set to zero, all items will be returned
Limit uint32 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"`
Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListNewBlobsRequest) Reset() { *m = ListNewBlobsRequest{} }
func (m *ListNewBlobsRequest) String() string { return proto.CompactTextString(m) }
func (*ListNewBlobsRequest) ProtoMessage() {}
func (*ListNewBlobsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{0}
}
func (m *ListNewBlobsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListNewBlobsRequest.Unmarshal(m, b)
}
func (m *ListNewBlobsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListNewBlobsRequest.Marshal(b, m, deterministic)
}
func (dst *ListNewBlobsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListNewBlobsRequest.Merge(dst, src)
}
func (m *ListNewBlobsRequest) XXX_Size() int {
return xxx_messageInfo_ListNewBlobsRequest.Size(m)
}
func (m *ListNewBlobsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListNewBlobsRequest.DiscardUnknown(m)
}
func (m *ListNewBlobsRequest) Reset() { *m = ListNewBlobsRequest{} }
func (m *ListNewBlobsRequest) String() string { return proto.CompactTextString(m) }
func (*ListNewBlobsRequest) ProtoMessage() {}
func (*ListNewBlobsRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{0} }
var xxx_messageInfo_ListNewBlobsRequest proto.InternalMessageInfo
func (m *ListNewBlobsRequest) GetRepository() *Repository {
if m != nil {
......@@ -108,13 +136,35 @@ func (m *ListNewBlobsRequest) GetLimit() uint32 {
}
type ListNewBlobsResponse struct {
NewBlobObjects []*NewBlobObject `protobuf:"bytes,1,rep,name=new_blob_objects,json=newBlobObjects" json:"new_blob_objects,omitempty"`
NewBlobObjects []*NewBlobObject `protobuf:"bytes,1,rep,name=new_blob_objects,json=newBlobObjects,proto3" json:"new_blob_objects,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListNewBlobsResponse) Reset() { *m = ListNewBlobsResponse{} }
func (m *ListNewBlobsResponse) String() string { return proto.CompactTextString(m) }
func (*ListNewBlobsResponse) ProtoMessage() {}
func (*ListNewBlobsResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{1} }
func (m *ListNewBlobsResponse) Reset() { *m = ListNewBlobsResponse{} }
func (m *ListNewBlobsResponse) String() string { return proto.CompactTextString(m) }
func (*ListNewBlobsResponse) ProtoMessage() {}
func (*ListNewBlobsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{1}
}
func (m *ListNewBlobsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListNewBlobsResponse.Unmarshal(m, b)
}
func (m *ListNewBlobsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListNewBlobsResponse.Marshal(b, m, deterministic)
}
func (dst *ListNewBlobsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListNewBlobsResponse.Merge(dst, src)
}
func (m *ListNewBlobsResponse) XXX_Size() int {
return xxx_messageInfo_ListNewBlobsResponse.Size(m)
}
func (m *ListNewBlobsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListNewBlobsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListNewBlobsResponse proto.InternalMessageInfo
func (m *ListNewBlobsResponse) GetNewBlobObjects() []*NewBlobObject {
if m != nil {
......@@ -124,13 +174,35 @@ func (m *ListNewBlobsResponse) GetNewBlobObjects() []*NewBlobObject {
}
type FindDefaultBranchNameRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FindDefaultBranchNameRequest) Reset() { *m = FindDefaultBranchNameRequest{} }
func (m *FindDefaultBranchNameRequest) String() string { return proto.CompactTextString(m) }
func (*FindDefaultBranchNameRequest) ProtoMessage() {}
func (*FindDefaultBranchNameRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{2}
}
func (m *FindDefaultBranchNameRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FindDefaultBranchNameRequest.Unmarshal(m, b)
}
func (m *FindDefaultBranchNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FindDefaultBranchNameRequest.Marshal(b, m, deterministic)
}
func (dst *FindDefaultBranchNameRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_FindDefaultBranchNameRequest.Merge(dst, src)
}
func (m *FindDefaultBranchNameRequest) XXX_Size() int {
return xxx_messageInfo_FindDefaultBranchNameRequest.Size(m)
}
func (m *FindDefaultBranchNameRequest) XXX_DiscardUnknown() {
xxx_messageInfo_FindDefaultBranchNameRequest.DiscardUnknown(m)
}
func (m *FindDefaultBranchNameRequest) Reset() { *m = FindDefaultBranchNameRequest{} }
func (m *FindDefaultBranchNameRequest) String() string { return proto.CompactTextString(m) }
func (*FindDefaultBranchNameRequest) ProtoMessage() {}
func (*FindDefaultBranchNameRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{2} }
var xxx_messageInfo_FindDefaultBranchNameRequest proto.InternalMessageInfo
func (m *FindDefaultBranchNameRequest) GetRepository() *Repository {
if m != nil {
......@@ -140,13 +212,35 @@ func (m *FindDefaultBranchNameRequest) GetRepository() *Repository {
}
type FindDefaultBranchNameResponse struct {
Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FindDefaultBranchNameResponse) Reset() { *m = FindDefaultBranchNameResponse{} }
func (m *FindDefaultBranchNameResponse) String() string { return proto.CompactTextString(m) }
func (*FindDefaultBranchNameResponse) ProtoMessage() {}
func (*FindDefaultBranchNameResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{3} }
func (m *FindDefaultBranchNameResponse) Reset() { *m = FindDefaultBranchNameResponse{} }
func (m *FindDefaultBranchNameResponse) String() string { return proto.CompactTextString(m) }
func (*FindDefaultBranchNameResponse) ProtoMessage() {}
func (*FindDefaultBranchNameResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{3}
}
func (m *FindDefaultBranchNameResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FindDefaultBranchNameResponse.Unmarshal(m, b)
}
func (m *FindDefaultBranchNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FindDefaultBranchNameResponse.Marshal(b, m, deterministic)
}
func (dst *FindDefaultBranchNameResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_FindDefaultBranchNameResponse.Merge(dst, src)
}
func (m *FindDefaultBranchNameResponse) XXX_Size() int {
return xxx_messageInfo_FindDefaultBranchNameResponse.Size(m)
}
func (m *FindDefaultBranchNameResponse) XXX_DiscardUnknown() {
xxx_messageInfo_FindDefaultBranchNameResponse.DiscardUnknown(m)
}
var xxx_messageInfo_FindDefaultBranchNameResponse proto.InternalMessageInfo
func (m *FindDefaultBranchNameResponse) GetName() []byte {
if m != nil {
......@@ -156,13 +250,35 @@ func (m *FindDefaultBranchNameResponse) GetName() []byte {
}
type FindAllBranchNamesRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FindAllBranchNamesRequest) Reset() { *m = FindAllBranchNamesRequest{} }
func (m *FindAllBranchNamesRequest) String() string { return proto.CompactTextString(m) }
func (*FindAllBranchNamesRequest) ProtoMessage() {}
func (*FindAllBranchNamesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{4}
}
func (m *FindAllBranchNamesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FindAllBranchNamesRequest.Unmarshal(m, b)
}
func (m *FindAllBranchNamesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FindAllBranchNamesRequest.Marshal(b, m, deterministic)
}
func (dst *FindAllBranchNamesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_FindAllBranchNamesRequest.Merge(dst, src)
}
func (m *FindAllBranchNamesRequest) XXX_Size() int {
return xxx_messageInfo_FindAllBranchNamesRequest.Size(m)
}
func (m *FindAllBranchNamesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_FindAllBranchNamesRequest.DiscardUnknown(m)
}
func (m *FindAllBranchNamesRequest) Reset() { *m = FindAllBranchNamesRequest{} }
func (m *FindAllBranchNamesRequest) String() string { return proto.CompactTextString(m) }
func (*FindAllBranchNamesRequest) ProtoMessage() {}
func (*FindAllBranchNamesRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{4} }
var xxx_messageInfo_FindAllBranchNamesRequest proto.InternalMessageInfo
func (m *FindAllBranchNamesRequest) GetRepository() *Repository {
if m != nil {
......@@ -172,13 +288,35 @@ func (m *FindAllBranchNamesRequest) GetRepository() *Repository {
}
type FindAllBranchNamesResponse struct {
Names [][]byte `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
Names [][]byte `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FindAllBranchNamesResponse) Reset() { *m = FindAllBranchNamesResponse{} }
func (m *FindAllBranchNamesResponse) String() string { return proto.CompactTextString(m) }
func (*FindAllBranchNamesResponse) ProtoMessage() {}
func (*FindAllBranchNamesResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{5} }
func (m *FindAllBranchNamesResponse) Reset() { *m = FindAllBranchNamesResponse{} }
func (m *FindAllBranchNamesResponse) String() string { return proto.CompactTextString(m) }
func (*FindAllBranchNamesResponse) ProtoMessage() {}
func (*FindAllBranchNamesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{5}
}
func (m *FindAllBranchNamesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FindAllBranchNamesResponse.Unmarshal(m, b)
}
func (m *FindAllBranchNamesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FindAllBranchNamesResponse.Marshal(b, m, deterministic)
}
func (dst *FindAllBranchNamesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_FindAllBranchNamesResponse.Merge(dst, src)
}
func (m *FindAllBranchNamesResponse) XXX_Size() int {
return xxx_messageInfo_FindAllBranchNamesResponse.Size(m)
}
func (m *FindAllBranchNamesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_FindAllBranchNamesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_FindAllBranchNamesResponse proto.InternalMessageInfo
func (m *FindAllBranchNamesResponse) GetNames() [][]byte {
if m != nil {
......@@ -188,13 +326,35 @@ func (m *FindAllBranchNamesResponse) GetNames() [][]byte {
}
type FindAllTagNamesRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FindAllTagNamesRequest) Reset() { *m = FindAllTagNamesRequest{} }
func (m *FindAllTagNamesRequest) String() string { return proto.CompactTextString(m) }
func (*FindAllTagNamesRequest) ProtoMessage() {}
func (*FindAllTagNamesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{6}
}
func (m *FindAllTagNamesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FindAllTagNamesRequest.Unmarshal(m, b)
}
func (m *FindAllTagNamesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FindAllTagNamesRequest.Marshal(b, m, deterministic)
}
func (dst *FindAllTagNamesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_FindAllTagNamesRequest.Merge(dst, src)
}
func (m *FindAllTagNamesRequest) XXX_Size() int {
return xxx_messageInfo_FindAllTagNamesRequest.Size(m)
}
func (m *FindAllTagNamesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_FindAllTagNamesRequest.DiscardUnknown(m)
}
func (m *FindAllTagNamesRequest) Reset() { *m = FindAllTagNamesRequest{} }
func (m *FindAllTagNamesRequest) String() string { return proto.CompactTextString(m) }
func (*FindAllTagNamesRequest) ProtoMessage() {}
func (*FindAllTagNamesRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{6} }
var xxx_messageInfo_FindAllTagNamesRequest proto.InternalMessageInfo
func (m *FindAllTagNamesRequest) GetRepository() *Repository {
if m != nil {
......@@ -204,13 +364,35 @@ func (m *FindAllTagNamesRequest) GetRepository() *Repository {
}
type FindAllTagNamesResponse struct {
Names [][]byte `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
Names [][]byte `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FindAllTagNamesResponse) Reset() { *m = FindAllTagNamesResponse{} }
func (m *FindAllTagNamesResponse) String() string { return proto.CompactTextString(m) }
func (*FindAllTagNamesResponse) ProtoMessage() {}
func (*FindAllTagNamesResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{7} }
func (m *FindAllTagNamesResponse) Reset() { *m = FindAllTagNamesResponse{} }
func (m *FindAllTagNamesResponse) String() string { return proto.CompactTextString(m) }
func (*FindAllTagNamesResponse) ProtoMessage() {}
func (*FindAllTagNamesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{7}
}
func (m *FindAllTagNamesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FindAllTagNamesResponse.Unmarshal(m, b)
}
func (m *FindAllTagNamesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FindAllTagNamesResponse.Marshal(b, m, deterministic)
}
func (dst *FindAllTagNamesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_FindAllTagNamesResponse.Merge(dst, src)
}
func (m *FindAllTagNamesResponse) XXX_Size() int {
return xxx_messageInfo_FindAllTagNamesResponse.Size(m)
}
func (m *FindAllTagNamesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_FindAllTagNamesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_FindAllTagNamesResponse proto.InternalMessageInfo
func (m *FindAllTagNamesResponse) GetNames() [][]byte {
if m != nil {
......@@ -220,17 +402,39 @@ func (m *FindAllTagNamesResponse) GetNames() [][]byte {
}
type FindRefNameRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
// Require that the resulting ref contains this commit as an ancestor
CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"`
CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"`
// Example prefix: "refs/heads/". Type bytes because that is the type of ref names.
Prefix []byte `protobuf:"bytes,3,opt,name=prefix,proto3" json:"prefix,omitempty"`
Prefix []byte `protobuf:"bytes,3,opt,name=prefix,proto3" json:"prefix,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FindRefNameRequest) Reset() { *m = FindRefNameRequest{} }
func (m *FindRefNameRequest) String() string { return proto.CompactTextString(m) }
func (*FindRefNameRequest) ProtoMessage() {}
func (*FindRefNameRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{8} }
func (m *FindRefNameRequest) Reset() { *m = FindRefNameRequest{} }
func (m *FindRefNameRequest) String() string { return proto.CompactTextString(m) }
func (*FindRefNameRequest) ProtoMessage() {}
func (*FindRefNameRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{8}
}
func (m *FindRefNameRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FindRefNameRequest.Unmarshal(m, b)
}
func (m *FindRefNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FindRefNameRequest.Marshal(b, m, deterministic)
}
func (dst *FindRefNameRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_FindRefNameRequest.Merge(dst, src)
}
func (m *FindRefNameRequest) XXX_Size() int {
return xxx_messageInfo_FindRefNameRequest.Size(m)
}
func (m *FindRefNameRequest) XXX_DiscardUnknown() {
xxx_messageInfo_FindRefNameRequest.DiscardUnknown(m)
}
var xxx_messageInfo_FindRefNameRequest proto.InternalMessageInfo
func (m *FindRefNameRequest) GetRepository() *Repository {
if m != nil {
......@@ -255,13 +459,35 @@ func (m *FindRefNameRequest) GetPrefix() []byte {
type FindRefNameResponse struct {
// Example name: "refs/heads/master". Cannot assume UTF8, so the type is bytes.
Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FindRefNameResponse) Reset() { *m = FindRefNameResponse{} }
func (m *FindRefNameResponse) String() string { return proto.CompactTextString(m) }
func (*FindRefNameResponse) ProtoMessage() {}
func (*FindRefNameResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{9}
}
func (m *FindRefNameResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FindRefNameResponse.Unmarshal(m, b)
}
func (m *FindRefNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FindRefNameResponse.Marshal(b, m, deterministic)
}
func (dst *FindRefNameResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_FindRefNameResponse.Merge(dst, src)
}
func (m *FindRefNameResponse) XXX_Size() int {
return xxx_messageInfo_FindRefNameResponse.Size(m)
}
func (m *FindRefNameResponse) XXX_DiscardUnknown() {
xxx_messageInfo_FindRefNameResponse.DiscardUnknown(m)
}
func (m *FindRefNameResponse) Reset() { *m = FindRefNameResponse{} }
func (m *FindRefNameResponse) String() string { return proto.CompactTextString(m) }
func (*FindRefNameResponse) ProtoMessage() {}
func (*FindRefNameResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{9} }
var xxx_messageInfo_FindRefNameResponse proto.InternalMessageInfo
func (m *FindRefNameResponse) GetName() []byte {
if m != nil {
......@@ -271,14 +497,36 @@ func (m *FindRefNameResponse) GetName() []byte {
}
type FindLocalBranchesRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
SortBy FindLocalBranchesRequest_SortBy `protobuf:"varint,2,opt,name=sort_by,json=sortBy,enum=gitaly.FindLocalBranchesRequest_SortBy" json:"sort_by,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
SortBy FindLocalBranchesRequest_SortBy `protobuf:"varint,2,opt,name=sort_by,json=sortBy,proto3,enum=gitaly.FindLocalBranchesRequest_SortBy" json:"sort_by,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FindLocalBranchesRequest) Reset() { *m = FindLocalBranchesRequest{} }
func (m *FindLocalBranchesRequest) String() string { return proto.CompactTextString(m) }
func (*FindLocalBranchesRequest) ProtoMessage() {}
func (*FindLocalBranchesRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{10} }
func (m *FindLocalBranchesRequest) Reset() { *m = FindLocalBranchesRequest{} }
func (m *FindLocalBranchesRequest) String() string { return proto.CompactTextString(m) }
func (*FindLocalBranchesRequest) ProtoMessage() {}
func (*FindLocalBranchesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{10}
}
func (m *FindLocalBranchesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FindLocalBranchesRequest.Unmarshal(m, b)
}
func (m *FindLocalBranchesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FindLocalBranchesRequest.Marshal(b, m, deterministic)
}
func (dst *FindLocalBranchesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_FindLocalBranchesRequest.Merge(dst, src)
}
func (m *FindLocalBranchesRequest) XXX_Size() int {
return xxx_messageInfo_FindLocalBranchesRequest.Size(m)
}
func (m *FindLocalBranchesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_FindLocalBranchesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_FindLocalBranchesRequest proto.InternalMessageInfo
func (m *FindLocalBranchesRequest) GetRepository() *Repository {
if m != nil {
......@@ -295,13 +543,35 @@ func (m *FindLocalBranchesRequest) GetSortBy() FindLocalBranchesRequest_SortBy {
}
type FindLocalBranchesResponse struct {
Branches []*FindLocalBranchResponse `protobuf:"bytes,1,rep,name=branches" json:"branches,omitempty"`
Branches []*FindLocalBranchResponse `protobuf:"bytes,1,rep,name=branches,proto3" json:"branches,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FindLocalBranchesResponse) Reset() { *m = FindLocalBranchesResponse{} }
func (m *FindLocalBranchesResponse) String() string { return proto.CompactTextString(m) }
func (*FindLocalBranchesResponse) ProtoMessage() {}
func (*FindLocalBranchesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{11}
}
func (m *FindLocalBranchesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FindLocalBranchesResponse.Unmarshal(m, b)
}
func (m *FindLocalBranchesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FindLocalBranchesResponse.Marshal(b, m, deterministic)
}
func (dst *FindLocalBranchesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_FindLocalBranchesResponse.Merge(dst, src)
}
func (m *FindLocalBranchesResponse) XXX_Size() int {
return xxx_messageInfo_FindLocalBranchesResponse.Size(m)
}
func (m *FindLocalBranchesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_FindLocalBranchesResponse.DiscardUnknown(m)
}
func (m *FindLocalBranchesResponse) Reset() { *m = FindLocalBranchesResponse{} }
func (m *FindLocalBranchesResponse) String() string { return proto.CompactTextString(m) }
func (*FindLocalBranchesResponse) ProtoMessage() {}
func (*FindLocalBranchesResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{11} }
var xxx_messageInfo_FindLocalBranchesResponse proto.InternalMessageInfo
func (m *FindLocalBranchesResponse) GetBranches() []*FindLocalBranchResponse {
if m != nil {
......@@ -311,17 +581,39 @@ func (m *FindLocalBranchesResponse) GetBranches() []*FindLocalBranchResponse {
}
type FindLocalBranchResponse struct {
Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"`
CommitSubject []byte `protobuf:"bytes,3,opt,name=commit_subject,json=commitSubject,proto3" json:"commit_subject,omitempty"`
CommitAuthor *FindLocalBranchCommitAuthor `protobuf:"bytes,4,opt,name=commit_author,json=commitAuthor" json:"commit_author,omitempty"`
CommitCommitter *FindLocalBranchCommitAuthor `protobuf:"bytes,5,opt,name=commit_committer,json=commitCommitter" json:"commit_committer,omitempty"`
Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"`
CommitSubject []byte `protobuf:"bytes,3,opt,name=commit_subject,json=commitSubject,proto3" json:"commit_subject,omitempty"`
CommitAuthor *FindLocalBranchCommitAuthor `protobuf:"bytes,4,opt,name=commit_author,json=commitAuthor,proto3" json:"commit_author,omitempty"`
CommitCommitter *FindLocalBranchCommitAuthor `protobuf:"bytes,5,opt,name=commit_committer,json=commitCommitter,proto3" json:"commit_committer,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FindLocalBranchResponse) Reset() { *m = FindLocalBranchResponse{} }
func (m *FindLocalBranchResponse) String() string { return proto.CompactTextString(m) }
func (*FindLocalBranchResponse) ProtoMessage() {}
func (*FindLocalBranchResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{12} }
func (m *FindLocalBranchResponse) Reset() { *m = FindLocalBranchResponse{} }
func (m *FindLocalBranchResponse) String() string { return proto.CompactTextString(m) }
func (*FindLocalBranchResponse) ProtoMessage() {}
func (*FindLocalBranchResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{12}
}
func (m *FindLocalBranchResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FindLocalBranchResponse.Unmarshal(m, b)
}
func (m *FindLocalBranchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FindLocalBranchResponse.Marshal(b, m, deterministic)
}
func (dst *FindLocalBranchResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_FindLocalBranchResponse.Merge(dst, src)
}
func (m *FindLocalBranchResponse) XXX_Size() int {
return xxx_messageInfo_FindLocalBranchResponse.Size(m)
}
func (m *FindLocalBranchResponse) XXX_DiscardUnknown() {
xxx_messageInfo_FindLocalBranchResponse.DiscardUnknown(m)
}
var xxx_messageInfo_FindLocalBranchResponse proto.InternalMessageInfo
func (m *FindLocalBranchResponse) GetName() []byte {
if m != nil {
......@@ -359,15 +651,37 @@ func (m *FindLocalBranchResponse) GetCommitCommitter() *FindLocalBranchCommitAut
}
type FindLocalBranchCommitAuthor struct {
Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Email []byte `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
Date *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=date" json:"date,omitempty"`
Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Email []byte `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
Date *timestamp.Timestamp `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FindLocalBranchCommitAuthor) Reset() { *m = FindLocalBranchCommitAuthor{} }
func (m *FindLocalBranchCommitAuthor) String() string { return proto.CompactTextString(m) }
func (*FindLocalBranchCommitAuthor) ProtoMessage() {}
func (*FindLocalBranchCommitAuthor) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{13} }
func (m *FindLocalBranchCommitAuthor) Reset() { *m = FindLocalBranchCommitAuthor{} }
func (m *FindLocalBranchCommitAuthor) String() string { return proto.CompactTextString(m) }
func (*FindLocalBranchCommitAuthor) ProtoMessage() {}
func (*FindLocalBranchCommitAuthor) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{13}
}
func (m *FindLocalBranchCommitAuthor) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FindLocalBranchCommitAuthor.Unmarshal(m, b)
}
func (m *FindLocalBranchCommitAuthor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FindLocalBranchCommitAuthor.Marshal(b, m, deterministic)
}
func (dst *FindLocalBranchCommitAuthor) XXX_Merge(src proto.Message) {
xxx_messageInfo_FindLocalBranchCommitAuthor.Merge(dst, src)
}
func (m *FindLocalBranchCommitAuthor) XXX_Size() int {
return xxx_messageInfo_FindLocalBranchCommitAuthor.Size(m)
}
func (m *FindLocalBranchCommitAuthor) XXX_DiscardUnknown() {
xxx_messageInfo_FindLocalBranchCommitAuthor.DiscardUnknown(m)
}
var xxx_messageInfo_FindLocalBranchCommitAuthor proto.InternalMessageInfo
func (m *FindLocalBranchCommitAuthor) GetName() []byte {
if m != nil {
......@@ -383,7 +697,7 @@ func (m *FindLocalBranchCommitAuthor) GetEmail() []byte {
return nil
}
func (m *FindLocalBranchCommitAuthor) GetDate() *google_protobuf.Timestamp {
func (m *FindLocalBranchCommitAuthor) GetDate() *timestamp.Timestamp {
if m != nil {
return m.Date
}
......@@ -391,18 +705,40 @@ func (m *FindLocalBranchCommitAuthor) GetDate() *google_protobuf.Timestamp {
}
type FindAllBranchesRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
// Only return branches that are merged into root ref
MergedOnly bool `protobuf:"varint,2,opt,name=merged_only,json=mergedOnly" json:"merged_only,omitempty"`
MergedOnly bool `protobuf:"varint,2,opt,name=merged_only,json=mergedOnly,proto3" json:"merged_only,omitempty"`
// If merged_only is true, this is a list of branches from which we
// return those merged into the root ref
MergedBranches [][]byte `protobuf:"bytes,3,rep,name=merged_branches,json=mergedBranches,proto3" json:"merged_branches,omitempty"`
MergedBranches [][]byte `protobuf:"bytes,3,rep,name=merged_branches,json=mergedBranches,proto3" json:"merged_branches,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FindAllBranchesRequest) Reset() { *m = FindAllBranchesRequest{} }
func (m *FindAllBranchesRequest) String() string { return proto.CompactTextString(m) }
func (*FindAllBranchesRequest) ProtoMessage() {}
func (*FindAllBranchesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{14}
}
func (m *FindAllBranchesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FindAllBranchesRequest.Unmarshal(m, b)
}
func (m *FindAllBranchesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FindAllBranchesRequest.Marshal(b, m, deterministic)
}
func (dst *FindAllBranchesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_FindAllBranchesRequest.Merge(dst, src)
}
func (m *FindAllBranchesRequest) XXX_Size() int {
return xxx_messageInfo_FindAllBranchesRequest.Size(m)
}
func (m *FindAllBranchesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_FindAllBranchesRequest.DiscardUnknown(m)
}
func (m *FindAllBranchesRequest) Reset() { *m = FindAllBranchesRequest{} }
func (m *FindAllBranchesRequest) String() string { return proto.CompactTextString(m) }
func (*FindAllBranchesRequest) ProtoMessage() {}
func (*FindAllBranchesRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{14} }
var xxx_messageInfo_FindAllBranchesRequest proto.InternalMessageInfo
func (m *FindAllBranchesRequest) GetRepository() *Repository {
if m != nil {
......@@ -426,13 +762,35 @@ func (m *FindAllBranchesRequest) GetMergedBranches() [][]byte {
}
type FindAllBranchesResponse struct {
Branches []*FindAllBranchesResponse_Branch `protobuf:"bytes,1,rep,name=branches" json:"branches,omitempty"`
Branches []*FindAllBranchesResponse_Branch `protobuf:"bytes,1,rep,name=branches,proto3" json:"branches,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FindAllBranchesResponse) Reset() { *m = FindAllBranchesResponse{} }
func (m *FindAllBranchesResponse) String() string { return proto.CompactTextString(m) }
func (*FindAllBranchesResponse) ProtoMessage() {}
func (*FindAllBranchesResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{15} }
func (m *FindAllBranchesResponse) Reset() { *m = FindAllBranchesResponse{} }
func (m *FindAllBranchesResponse) String() string { return proto.CompactTextString(m) }
func (*FindAllBranchesResponse) ProtoMessage() {}
func (*FindAllBranchesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{15}
}
func (m *FindAllBranchesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FindAllBranchesResponse.Unmarshal(m, b)
}
func (m *FindAllBranchesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FindAllBranchesResponse.Marshal(b, m, deterministic)
}
func (dst *FindAllBranchesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_FindAllBranchesResponse.Merge(dst, src)
}
func (m *FindAllBranchesResponse) XXX_Size() int {
return xxx_messageInfo_FindAllBranchesResponse.Size(m)
}
func (m *FindAllBranchesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_FindAllBranchesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_FindAllBranchesResponse proto.InternalMessageInfo
func (m *FindAllBranchesResponse) GetBranches() []*FindAllBranchesResponse_Branch {
if m != nil {
......@@ -442,17 +800,37 @@ func (m *FindAllBranchesResponse) GetBranches() []*FindAllBranchesResponse_Branc
}
type FindAllBranchesResponse_Branch struct {
Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Target *GitCommit `protobuf:"bytes,2,opt,name=target" json:"target,omitempty"`
Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Target *GitCommit `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FindAllBranchesResponse_Branch) Reset() { *m = FindAllBranchesResponse_Branch{} }
func (m *FindAllBranchesResponse_Branch) String() string { return proto.CompactTextString(m) }
func (*FindAllBranchesResponse_Branch) ProtoMessage() {}
func (*FindAllBranchesResponse_Branch) Descriptor() ([]byte, []int) {
return fileDescriptor9, []int{15, 0}
return fileDescriptor_ref_15e26c5c2600d751, []int{15, 0}
}
func (m *FindAllBranchesResponse_Branch) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FindAllBranchesResponse_Branch.Unmarshal(m, b)
}
func (m *FindAllBranchesResponse_Branch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FindAllBranchesResponse_Branch.Marshal(b, m, deterministic)
}
func (dst *FindAllBranchesResponse_Branch) XXX_Merge(src proto.Message) {
xxx_messageInfo_FindAllBranchesResponse_Branch.Merge(dst, src)
}
func (m *FindAllBranchesResponse_Branch) XXX_Size() int {
return xxx_messageInfo_FindAllBranchesResponse_Branch.Size(m)
}
func (m *FindAllBranchesResponse_Branch) XXX_DiscardUnknown() {
xxx_messageInfo_FindAllBranchesResponse_Branch.DiscardUnknown(m)
}
var xxx_messageInfo_FindAllBranchesResponse_Branch proto.InternalMessageInfo
func (m *FindAllBranchesResponse_Branch) GetName() []byte {
if m != nil {
return m.Name
......@@ -468,13 +846,35 @@ func (m *FindAllBranchesResponse_Branch) GetTarget() *GitCommit {
}
type FindAllTagsRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FindAllTagsRequest) Reset() { *m = FindAllTagsRequest{} }
func (m *FindAllTagsRequest) String() string { return proto.CompactTextString(m) }
func (*FindAllTagsRequest) ProtoMessage() {}
func (*FindAllTagsRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{16} }
func (m *FindAllTagsRequest) Reset() { *m = FindAllTagsRequest{} }
func (m *FindAllTagsRequest) String() string { return proto.CompactTextString(m) }
func (*FindAllTagsRequest) ProtoMessage() {}
func (*FindAllTagsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{16}
}
func (m *FindAllTagsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FindAllTagsRequest.Unmarshal(m, b)
}
func (m *FindAllTagsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FindAllTagsRequest.Marshal(b, m, deterministic)
}
func (dst *FindAllTagsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_FindAllTagsRequest.Merge(dst, src)
}
func (m *FindAllTagsRequest) XXX_Size() int {
return xxx_messageInfo_FindAllTagsRequest.Size(m)
}
func (m *FindAllTagsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_FindAllTagsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_FindAllTagsRequest proto.InternalMessageInfo
func (m *FindAllTagsRequest) GetRepository() *Repository {
if m != nil {
......@@ -484,13 +884,35 @@ func (m *FindAllTagsRequest) GetRepository() *Repository {
}
type FindAllTagsResponse struct {
Tags []*Tag `protobuf:"bytes,1,rep,name=tags" json:"tags,omitempty"`
Tags []*Tag `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FindAllTagsResponse) Reset() { *m = FindAllTagsResponse{} }
func (m *FindAllTagsResponse) String() string { return proto.CompactTextString(m) }
func (*FindAllTagsResponse) ProtoMessage() {}
func (*FindAllTagsResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{17} }
func (m *FindAllTagsResponse) Reset() { *m = FindAllTagsResponse{} }
func (m *FindAllTagsResponse) String() string { return proto.CompactTextString(m) }
func (*FindAllTagsResponse) ProtoMessage() {}
func (*FindAllTagsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{17}
}
func (m *FindAllTagsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FindAllTagsResponse.Unmarshal(m, b)
}
func (m *FindAllTagsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FindAllTagsResponse.Marshal(b, m, deterministic)
}
func (dst *FindAllTagsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_FindAllTagsResponse.Merge(dst, src)
}
func (m *FindAllTagsResponse) XXX_Size() int {
return xxx_messageInfo_FindAllTagsResponse.Size(m)
}
func (m *FindAllTagsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_FindAllTagsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_FindAllTagsResponse proto.InternalMessageInfo
func (m *FindAllTagsResponse) GetTags() []*Tag {
if m != nil {
......@@ -500,15 +922,37 @@ func (m *FindAllTagsResponse) GetTags() []*Tag {
}
type RefExistsRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
// Any ref, e.g. 'refs/heads/master' or 'refs/tags/v1.0.1'. Must start with 'refs/'.
Ref []byte `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
Ref []byte `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RefExistsRequest) Reset() { *m = RefExistsRequest{} }
func (m *RefExistsRequest) String() string { return proto.CompactTextString(m) }
func (*RefExistsRequest) ProtoMessage() {}
func (*RefExistsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{18}
}
func (m *RefExistsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RefExistsRequest.Unmarshal(m, b)
}
func (m *RefExistsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RefExistsRequest.Marshal(b, m, deterministic)
}
func (dst *RefExistsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_RefExistsRequest.Merge(dst, src)
}
func (m *RefExistsRequest) XXX_Size() int {
return xxx_messageInfo_RefExistsRequest.Size(m)
}
func (m *RefExistsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_RefExistsRequest.DiscardUnknown(m)
}
func (m *RefExistsRequest) Reset() { *m = RefExistsRequest{} }
func (m *RefExistsRequest) String() string { return proto.CompactTextString(m) }
func (*RefExistsRequest) ProtoMessage() {}
func (*RefExistsRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{18} }
var xxx_messageInfo_RefExistsRequest proto.InternalMessageInfo
func (m *RefExistsRequest) GetRepository() *Repository {
if m != nil {
......@@ -525,13 +969,35 @@ func (m *RefExistsRequest) GetRef() []byte {
}
type RefExistsResponse struct {
Value bool `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RefExistsResponse) Reset() { *m = RefExistsResponse{} }
func (m *RefExistsResponse) String() string { return proto.CompactTextString(m) }
func (*RefExistsResponse) ProtoMessage() {}
func (*RefExistsResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{19} }
func (m *RefExistsResponse) Reset() { *m = RefExistsResponse{} }
func (m *RefExistsResponse) String() string { return proto.CompactTextString(m) }
func (*RefExistsResponse) ProtoMessage() {}
func (*RefExistsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{19}
}
func (m *RefExistsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RefExistsResponse.Unmarshal(m, b)
}
func (m *RefExistsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RefExistsResponse.Marshal(b, m, deterministic)
}
func (dst *RefExistsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_RefExistsResponse.Merge(dst, src)
}
func (m *RefExistsResponse) XXX_Size() int {
return xxx_messageInfo_RefExistsResponse.Size(m)
}
func (m *RefExistsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_RefExistsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_RefExistsResponse proto.InternalMessageInfo
func (m *RefExistsResponse) GetValue() bool {
if m != nil {
......@@ -541,15 +1007,37 @@ func (m *RefExistsResponse) GetValue() bool {
}
type CreateBranchRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
StartPoint []byte `protobuf:"bytes,3,opt,name=start_point,json=startPoint,proto3" json:"start_point,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
StartPoint []byte `protobuf:"bytes,3,opt,name=start_point,json=startPoint,proto3" json:"start_point,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateBranchRequest) Reset() { *m = CreateBranchRequest{} }
func (m *CreateBranchRequest) String() string { return proto.CompactTextString(m) }
func (*CreateBranchRequest) ProtoMessage() {}
func (*CreateBranchRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{20}
}
func (m *CreateBranchRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateBranchRequest.Unmarshal(m, b)
}
func (m *CreateBranchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateBranchRequest.Marshal(b, m, deterministic)
}
func (dst *CreateBranchRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateBranchRequest.Merge(dst, src)
}
func (m *CreateBranchRequest) XXX_Size() int {
return xxx_messageInfo_CreateBranchRequest.Size(m)
}
func (m *CreateBranchRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateBranchRequest.DiscardUnknown(m)
}
func (m *CreateBranchRequest) Reset() { *m = CreateBranchRequest{} }
func (m *CreateBranchRequest) String() string { return proto.CompactTextString(m) }
func (*CreateBranchRequest) ProtoMessage() {}
func (*CreateBranchRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{20} }
var xxx_messageInfo_CreateBranchRequest proto.InternalMessageInfo
func (m *CreateBranchRequest) GetRepository() *Repository {
if m != nil {
......@@ -573,14 +1061,36 @@ func (m *CreateBranchRequest) GetStartPoint() []byte {
}
type CreateBranchResponse struct {
Status CreateBranchResponse_Status `protobuf:"varint,1,opt,name=status,enum=gitaly.CreateBranchResponse_Status" json:"status,omitempty"`
Branch *Branch `protobuf:"bytes,2,opt,name=branch" json:"branch,omitempty"`
Status CreateBranchResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=gitaly.CreateBranchResponse_Status" json:"status,omitempty"`
Branch *Branch `protobuf:"bytes,2,opt,name=branch,proto3" json:"branch,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateBranchResponse) Reset() { *m = CreateBranchResponse{} }
func (m *CreateBranchResponse) String() string { return proto.CompactTextString(m) }
func (*CreateBranchResponse) ProtoMessage() {}
func (*CreateBranchResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{21}
}
func (m *CreateBranchResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateBranchResponse.Unmarshal(m, b)
}
func (m *CreateBranchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateBranchResponse.Marshal(b, m, deterministic)
}
func (dst *CreateBranchResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateBranchResponse.Merge(dst, src)
}
func (m *CreateBranchResponse) XXX_Size() int {
return xxx_messageInfo_CreateBranchResponse.Size(m)
}
func (m *CreateBranchResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CreateBranchResponse.DiscardUnknown(m)
}
func (m *CreateBranchResponse) Reset() { *m = CreateBranchResponse{} }
func (m *CreateBranchResponse) String() string { return proto.CompactTextString(m) }
func (*CreateBranchResponse) ProtoMessage() {}
func (*CreateBranchResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{21} }
var xxx_messageInfo_CreateBranchResponse proto.InternalMessageInfo
func (m *CreateBranchResponse) GetStatus() CreateBranchResponse_Status {
if m != nil {
......@@ -597,14 +1107,36 @@ func (m *CreateBranchResponse) GetBranch() *Branch {
}
type DeleteBranchRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteBranchRequest) Reset() { *m = DeleteBranchRequest{} }
func (m *DeleteBranchRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteBranchRequest) ProtoMessage() {}
func (*DeleteBranchRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{22} }
func (m *DeleteBranchRequest) Reset() { *m = DeleteBranchRequest{} }
func (m *DeleteBranchRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteBranchRequest) ProtoMessage() {}
func (*DeleteBranchRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{22}
}
func (m *DeleteBranchRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteBranchRequest.Unmarshal(m, b)
}
func (m *DeleteBranchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteBranchRequest.Marshal(b, m, deterministic)
}
func (dst *DeleteBranchRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteBranchRequest.Merge(dst, src)
}
func (m *DeleteBranchRequest) XXX_Size() int {
return xxx_messageInfo_DeleteBranchRequest.Size(m)
}
func (m *DeleteBranchRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteBranchRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteBranchRequest proto.InternalMessageInfo
func (m *DeleteBranchRequest) GetRepository() *Repository {
if m != nil {
......@@ -622,23 +1154,67 @@ func (m *DeleteBranchRequest) GetName() []byte {
// Not clear if we need to do status signaling; we can add fields later.
type DeleteBranchResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteBranchResponse) Reset() { *m = DeleteBranchResponse{} }
func (m *DeleteBranchResponse) String() string { return proto.CompactTextString(m) }
func (*DeleteBranchResponse) ProtoMessage() {}
func (*DeleteBranchResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{23}
}
func (m *DeleteBranchResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteBranchResponse.Unmarshal(m, b)
}
func (m *DeleteBranchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteBranchResponse.Marshal(b, m, deterministic)
}
func (dst *DeleteBranchResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteBranchResponse.Merge(dst, src)
}
func (m *DeleteBranchResponse) XXX_Size() int {
return xxx_messageInfo_DeleteBranchResponse.Size(m)
}
func (m *DeleteBranchResponse) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteBranchResponse.DiscardUnknown(m)
}
func (m *DeleteBranchResponse) Reset() { *m = DeleteBranchResponse{} }
func (m *DeleteBranchResponse) String() string { return proto.CompactTextString(m) }
func (*DeleteBranchResponse) ProtoMessage() {}
func (*DeleteBranchResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{23} }
var xxx_messageInfo_DeleteBranchResponse proto.InternalMessageInfo
type FindBranchRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
// Name can be 'master' but also 'refs/heads/master'
Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FindBranchRequest) Reset() { *m = FindBranchRequest{} }
func (m *FindBranchRequest) String() string { return proto.CompactTextString(m) }
func (*FindBranchRequest) ProtoMessage() {}
func (*FindBranchRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{24} }
func (m *FindBranchRequest) Reset() { *m = FindBranchRequest{} }
func (m *FindBranchRequest) String() string { return proto.CompactTextString(m) }
func (*FindBranchRequest) ProtoMessage() {}
func (*FindBranchRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{24}
}
func (m *FindBranchRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FindBranchRequest.Unmarshal(m, b)
}
func (m *FindBranchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FindBranchRequest.Marshal(b, m, deterministic)
}
func (dst *FindBranchRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_FindBranchRequest.Merge(dst, src)
}
func (m *FindBranchRequest) XXX_Size() int {
return xxx_messageInfo_FindBranchRequest.Size(m)
}
func (m *FindBranchRequest) XXX_DiscardUnknown() {
xxx_messageInfo_FindBranchRequest.DiscardUnknown(m)
}
var xxx_messageInfo_FindBranchRequest proto.InternalMessageInfo
func (m *FindBranchRequest) GetRepository() *Repository {
if m != nil {
......@@ -655,13 +1231,35 @@ func (m *FindBranchRequest) GetName() []byte {
}
type FindBranchResponse struct {
Branch *Branch `protobuf:"bytes,1,opt,name=branch" json:"branch,omitempty"`
Branch *Branch `protobuf:"bytes,1,opt,name=branch,proto3" json:"branch,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FindBranchResponse) Reset() { *m = FindBranchResponse{} }
func (m *FindBranchResponse) String() string { return proto.CompactTextString(m) }
func (*FindBranchResponse) ProtoMessage() {}
func (*FindBranchResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{25}
}
func (m *FindBranchResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FindBranchResponse.Unmarshal(m, b)
}
func (m *FindBranchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FindBranchResponse.Marshal(b, m, deterministic)
}
func (dst *FindBranchResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_FindBranchResponse.Merge(dst, src)
}
func (m *FindBranchResponse) XXX_Size() int {
return xxx_messageInfo_FindBranchResponse.Size(m)
}
func (m *FindBranchResponse) XXX_DiscardUnknown() {
xxx_messageInfo_FindBranchResponse.DiscardUnknown(m)
}
func (m *FindBranchResponse) Reset() { *m = FindBranchResponse{} }
func (m *FindBranchResponse) String() string { return proto.CompactTextString(m) }
func (*FindBranchResponse) ProtoMessage() {}
func (*FindBranchResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{25} }
var xxx_messageInfo_FindBranchResponse proto.InternalMessageInfo
func (m *FindBranchResponse) GetBranch() *Branch {
if m != nil {
......@@ -671,16 +1269,38 @@ func (m *FindBranchResponse) GetBranch() *Branch {
}
type DeleteRefsRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
// The following two fields are mutually exclusive
ExceptWithPrefix [][]byte `protobuf:"bytes,2,rep,name=except_with_prefix,json=exceptWithPrefix,proto3" json:"except_with_prefix,omitempty"`
Refs [][]byte `protobuf:"bytes,3,rep,name=refs,proto3" json:"refs,omitempty"`
ExceptWithPrefix [][]byte `protobuf:"bytes,2,rep,name=except_with_prefix,json=exceptWithPrefix,proto3" json:"except_with_prefix,omitempty"`
Refs [][]byte `protobuf:"bytes,3,rep,name=refs,proto3" json:"refs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteRefsRequest) Reset() { *m = DeleteRefsRequest{} }
func (m *DeleteRefsRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteRefsRequest) ProtoMessage() {}
func (*DeleteRefsRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{26} }
func (m *DeleteRefsRequest) Reset() { *m = DeleteRefsRequest{} }
func (m *DeleteRefsRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteRefsRequest) ProtoMessage() {}
func (*DeleteRefsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{26}
}
func (m *DeleteRefsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteRefsRequest.Unmarshal(m, b)
}
func (m *DeleteRefsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteRefsRequest.Marshal(b, m, deterministic)
}
func (dst *DeleteRefsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteRefsRequest.Merge(dst, src)
}
func (m *DeleteRefsRequest) XXX_Size() int {
return xxx_messageInfo_DeleteRefsRequest.Size(m)
}
func (m *DeleteRefsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteRefsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteRefsRequest proto.InternalMessageInfo
func (m *DeleteRefsRequest) GetRepository() *Repository {
if m != nil {
......@@ -704,13 +1324,35 @@ func (m *DeleteRefsRequest) GetRefs() [][]byte {
}
type DeleteRefsResponse struct {
GitError string `protobuf:"bytes,1,opt,name=git_error,json=gitError" json:"git_error,omitempty"`
GitError string `protobuf:"bytes,1,opt,name=git_error,json=gitError,proto3" json:"git_error,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteRefsResponse) Reset() { *m = DeleteRefsResponse{} }
func (m *DeleteRefsResponse) String() string { return proto.CompactTextString(m) }
func (*DeleteRefsResponse) ProtoMessage() {}
func (*DeleteRefsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{27}
}
func (m *DeleteRefsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteRefsResponse.Unmarshal(m, b)
}
func (m *DeleteRefsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteRefsResponse.Marshal(b, m, deterministic)
}
func (dst *DeleteRefsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteRefsResponse.Merge(dst, src)
}
func (m *DeleteRefsResponse) XXX_Size() int {
return xxx_messageInfo_DeleteRefsResponse.Size(m)
}
func (m *DeleteRefsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteRefsResponse.DiscardUnknown(m)
}
func (m *DeleteRefsResponse) Reset() { *m = DeleteRefsResponse{} }
func (m *DeleteRefsResponse) String() string { return proto.CompactTextString(m) }
func (*DeleteRefsResponse) ProtoMessage() {}
func (*DeleteRefsResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{27} }
var xxx_messageInfo_DeleteRefsResponse proto.InternalMessageInfo
func (m *DeleteRefsResponse) GetGitError() string {
if m != nil {
......@@ -720,11 +1362,14 @@ func (m *DeleteRefsResponse) GetGitError() string {
}
type ListBranchNamesContainingCommitRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"`
// Limit the number of tag names to be returned
// If the limit is set to zero, all items will be returned
Limit uint32 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"`
Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListBranchNamesContainingCommitRequest) Reset() {
......@@ -733,9 +1378,26 @@ func (m *ListBranchNamesContainingCommitRequest) Reset() {
func (m *ListBranchNamesContainingCommitRequest) String() string { return proto.CompactTextString(m) }
func (*ListBranchNamesContainingCommitRequest) ProtoMessage() {}
func (*ListBranchNamesContainingCommitRequest) Descriptor() ([]byte, []int) {
return fileDescriptor9, []int{28}
return fileDescriptor_ref_15e26c5c2600d751, []int{28}
}
func (m *ListBranchNamesContainingCommitRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListBranchNamesContainingCommitRequest.Unmarshal(m, b)
}
func (m *ListBranchNamesContainingCommitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListBranchNamesContainingCommitRequest.Marshal(b, m, deterministic)
}
func (dst *ListBranchNamesContainingCommitRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListBranchNamesContainingCommitRequest.Merge(dst, src)
}
func (m *ListBranchNamesContainingCommitRequest) XXX_Size() int {
return xxx_messageInfo_ListBranchNamesContainingCommitRequest.Size(m)
}
func (m *ListBranchNamesContainingCommitRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListBranchNamesContainingCommitRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListBranchNamesContainingCommitRequest proto.InternalMessageInfo
func (m *ListBranchNamesContainingCommitRequest) GetRepository() *Repository {
if m != nil {
return m.Repository
......@@ -758,7 +1420,10 @@ func (m *ListBranchNamesContainingCommitRequest) GetLimit() uint32 {
}
type ListBranchNamesContainingCommitResponse struct {
BranchNames [][]byte `protobuf:"bytes,2,rep,name=branch_names,json=branchNames,proto3" json:"branch_names,omitempty"`
BranchNames [][]byte `protobuf:"bytes,2,rep,name=branch_names,json=branchNames,proto3" json:"branch_names,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListBranchNamesContainingCommitResponse) Reset() {
......@@ -767,9 +1432,26 @@ func (m *ListBranchNamesContainingCommitResponse) Reset() {
func (m *ListBranchNamesContainingCommitResponse) String() string { return proto.CompactTextString(m) }
func (*ListBranchNamesContainingCommitResponse) ProtoMessage() {}
func (*ListBranchNamesContainingCommitResponse) Descriptor() ([]byte, []int) {
return fileDescriptor9, []int{29}
return fileDescriptor_ref_15e26c5c2600d751, []int{29}
}
func (m *ListBranchNamesContainingCommitResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListBranchNamesContainingCommitResponse.Unmarshal(m, b)
}
func (m *ListBranchNamesContainingCommitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListBranchNamesContainingCommitResponse.Marshal(b, m, deterministic)
}
func (dst *ListBranchNamesContainingCommitResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListBranchNamesContainingCommitResponse.Merge(dst, src)
}
func (m *ListBranchNamesContainingCommitResponse) XXX_Size() int {
return xxx_messageInfo_ListBranchNamesContainingCommitResponse.Size(m)
}
func (m *ListBranchNamesContainingCommitResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListBranchNamesContainingCommitResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListBranchNamesContainingCommitResponse proto.InternalMessageInfo
func (m *ListBranchNamesContainingCommitResponse) GetBranchNames() [][]byte {
if m != nil {
return m.BranchNames
......@@ -778,20 +1460,40 @@ func (m *ListBranchNamesContainingCommitResponse) GetBranchNames() [][]byte {
}
type ListTagNamesContainingCommitRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"`
// Limit the number of tag names to be returned
// If the limit is set to zero, all items will be returned
Limit uint32 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"`
Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListTagNamesContainingCommitRequest) Reset() { *m = ListTagNamesContainingCommitRequest{} }
func (m *ListTagNamesContainingCommitRequest) String() string { return proto.CompactTextString(m) }
func (*ListTagNamesContainingCommitRequest) ProtoMessage() {}
func (*ListTagNamesContainingCommitRequest) Descriptor() ([]byte, []int) {
return fileDescriptor9, []int{30}
return fileDescriptor_ref_15e26c5c2600d751, []int{30}
}
func (m *ListTagNamesContainingCommitRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListTagNamesContainingCommitRequest.Unmarshal(m, b)
}
func (m *ListTagNamesContainingCommitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListTagNamesContainingCommitRequest.Marshal(b, m, deterministic)
}
func (dst *ListTagNamesContainingCommitRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListTagNamesContainingCommitRequest.Merge(dst, src)
}
func (m *ListTagNamesContainingCommitRequest) XXX_Size() int {
return xxx_messageInfo_ListTagNamesContainingCommitRequest.Size(m)
}
func (m *ListTagNamesContainingCommitRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListTagNamesContainingCommitRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListTagNamesContainingCommitRequest proto.InternalMessageInfo
func (m *ListTagNamesContainingCommitRequest) GetRepository() *Repository {
if m != nil {
return m.Repository
......@@ -814,15 +1516,35 @@ func (m *ListTagNamesContainingCommitRequest) GetLimit() uint32 {
}
type ListTagNamesContainingCommitResponse struct {
TagNames [][]byte `protobuf:"bytes,2,rep,name=tag_names,json=tagNames,proto3" json:"tag_names,omitempty"`
TagNames [][]byte `protobuf:"bytes,2,rep,name=tag_names,json=tagNames,proto3" json:"tag_names,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListTagNamesContainingCommitResponse) Reset() { *m = ListTagNamesContainingCommitResponse{} }
func (m *ListTagNamesContainingCommitResponse) String() string { return proto.CompactTextString(m) }
func (*ListTagNamesContainingCommitResponse) ProtoMessage() {}
func (*ListTagNamesContainingCommitResponse) Descriptor() ([]byte, []int) {
return fileDescriptor9, []int{31}
return fileDescriptor_ref_15e26c5c2600d751, []int{31}
}
func (m *ListTagNamesContainingCommitResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListTagNamesContainingCommitResponse.Unmarshal(m, b)
}
func (m *ListTagNamesContainingCommitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListTagNamesContainingCommitResponse.Marshal(b, m, deterministic)
}
func (dst *ListTagNamesContainingCommitResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListTagNamesContainingCommitResponse.Merge(dst, src)
}
func (m *ListTagNamesContainingCommitResponse) XXX_Size() int {
return xxx_messageInfo_ListTagNamesContainingCommitResponse.Size(m)
}
func (m *ListTagNamesContainingCommitResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListTagNamesContainingCommitResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListTagNamesContainingCommitResponse proto.InternalMessageInfo
func (m *ListTagNamesContainingCommitResponse) GetTagNames() [][]byte {
if m != nil {
......@@ -832,14 +1554,36 @@ func (m *ListTagNamesContainingCommitResponse) GetTagNames() [][]byte {
}
type GetTagMessagesRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
TagIds []string `protobuf:"bytes,3,rep,name=tag_ids,json=tagIds" json:"tag_ids,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
TagIds []string `protobuf:"bytes,3,rep,name=tag_ids,json=tagIds,proto3" json:"tag_ids,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetTagMessagesRequest) Reset() { *m = GetTagMessagesRequest{} }
func (m *GetTagMessagesRequest) String() string { return proto.CompactTextString(m) }
func (*GetTagMessagesRequest) ProtoMessage() {}
func (*GetTagMessagesRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{32} }
func (m *GetTagMessagesRequest) Reset() { *m = GetTagMessagesRequest{} }
func (m *GetTagMessagesRequest) String() string { return proto.CompactTextString(m) }
func (*GetTagMessagesRequest) ProtoMessage() {}
func (*GetTagMessagesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{32}
}
func (m *GetTagMessagesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetTagMessagesRequest.Unmarshal(m, b)
}
func (m *GetTagMessagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetTagMessagesRequest.Marshal(b, m, deterministic)
}
func (dst *GetTagMessagesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetTagMessagesRequest.Merge(dst, src)
}
func (m *GetTagMessagesRequest) XXX_Size() int {
return xxx_messageInfo_GetTagMessagesRequest.Size(m)
}
func (m *GetTagMessagesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetTagMessagesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetTagMessagesRequest proto.InternalMessageInfo
func (m *GetTagMessagesRequest) GetRepository() *Repository {
if m != nil {
......@@ -858,13 +1602,35 @@ func (m *GetTagMessagesRequest) GetTagIds() []string {
type GetTagMessagesResponse struct {
Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// Only present for a new tag message
TagId string `protobuf:"bytes,3,opt,name=tag_id,json=tagId" json:"tag_id,omitempty"`
TagId string `protobuf:"bytes,3,opt,name=tag_id,json=tagId,proto3" json:"tag_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetTagMessagesResponse) Reset() { *m = GetTagMessagesResponse{} }
func (m *GetTagMessagesResponse) String() string { return proto.CompactTextString(m) }
func (*GetTagMessagesResponse) ProtoMessage() {}
func (*GetTagMessagesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{33}
}
func (m *GetTagMessagesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetTagMessagesResponse.Unmarshal(m, b)
}
func (m *GetTagMessagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetTagMessagesResponse.Marshal(b, m, deterministic)
}
func (dst *GetTagMessagesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetTagMessagesResponse.Merge(dst, src)
}
func (m *GetTagMessagesResponse) XXX_Size() int {
return xxx_messageInfo_GetTagMessagesResponse.Size(m)
}
func (m *GetTagMessagesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetTagMessagesResponse.DiscardUnknown(m)
}
func (m *GetTagMessagesResponse) Reset() { *m = GetTagMessagesResponse{} }
func (m *GetTagMessagesResponse) String() string { return proto.CompactTextString(m) }
func (*GetTagMessagesResponse) ProtoMessage() {}
func (*GetTagMessagesResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{33} }
var xxx_messageInfo_GetTagMessagesResponse proto.InternalMessageInfo
func (m *GetTagMessagesResponse) GetMessage() []byte {
if m != nil {
......@@ -881,14 +1647,36 @@ func (m *GetTagMessagesResponse) GetTagId() string {
}
type ListNewCommitsRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId" json:"commit_id,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
CommitId string `protobuf:"bytes,2,opt,name=commit_id,json=commitId,proto3" json:"commit_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListNewCommitsRequest) Reset() { *m = ListNewCommitsRequest{} }
func (m *ListNewCommitsRequest) String() string { return proto.CompactTextString(m) }
func (*ListNewCommitsRequest) ProtoMessage() {}
func (*ListNewCommitsRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{34} }
func (m *ListNewCommitsRequest) Reset() { *m = ListNewCommitsRequest{} }
func (m *ListNewCommitsRequest) String() string { return proto.CompactTextString(m) }
func (*ListNewCommitsRequest) ProtoMessage() {}
func (*ListNewCommitsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{34}
}
func (m *ListNewCommitsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListNewCommitsRequest.Unmarshal(m, b)
}
func (m *ListNewCommitsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListNewCommitsRequest.Marshal(b, m, deterministic)
}
func (dst *ListNewCommitsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListNewCommitsRequest.Merge(dst, src)
}
func (m *ListNewCommitsRequest) XXX_Size() int {
return xxx_messageInfo_ListNewCommitsRequest.Size(m)
}
func (m *ListNewCommitsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListNewCommitsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListNewCommitsRequest proto.InternalMessageInfo
func (m *ListNewCommitsRequest) GetRepository() *Repository {
if m != nil {
......@@ -905,13 +1693,35 @@ func (m *ListNewCommitsRequest) GetCommitId() string {
}
type ListNewCommitsResponse struct {
Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits" json:"commits,omitempty"`
Commits []*GitCommit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListNewCommitsResponse) Reset() { *m = ListNewCommitsResponse{} }
func (m *ListNewCommitsResponse) String() string { return proto.CompactTextString(m) }
func (*ListNewCommitsResponse) ProtoMessage() {}
func (*ListNewCommitsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{35}
}
func (m *ListNewCommitsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListNewCommitsResponse.Unmarshal(m, b)
}
func (m *ListNewCommitsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListNewCommitsResponse.Marshal(b, m, deterministic)
}
func (dst *ListNewCommitsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListNewCommitsResponse.Merge(dst, src)
}
func (m *ListNewCommitsResponse) XXX_Size() int {
return xxx_messageInfo_ListNewCommitsResponse.Size(m)
}
func (m *ListNewCommitsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListNewCommitsResponse.DiscardUnknown(m)
}
func (m *ListNewCommitsResponse) Reset() { *m = ListNewCommitsResponse{} }
func (m *ListNewCommitsResponse) String() string { return proto.CompactTextString(m) }
func (*ListNewCommitsResponse) ProtoMessage() {}
func (*ListNewCommitsResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{35} }
var xxx_messageInfo_ListNewCommitsResponse proto.InternalMessageInfo
func (m *ListNewCommitsResponse) GetCommits() []*GitCommit {
if m != nil {
......@@ -921,14 +1731,36 @@ func (m *ListNewCommitsResponse) GetCommits() []*GitCommit {
}
type FindAllRemoteBranchesRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
RemoteName string `protobuf:"bytes,2,opt,name=remote_name,json=remoteName" json:"remote_name,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
RemoteName string `protobuf:"bytes,2,opt,name=remote_name,json=remoteName,proto3" json:"remote_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FindAllRemoteBranchesRequest) Reset() { *m = FindAllRemoteBranchesRequest{} }
func (m *FindAllRemoteBranchesRequest) String() string { return proto.CompactTextString(m) }
func (*FindAllRemoteBranchesRequest) ProtoMessage() {}
func (*FindAllRemoteBranchesRequest) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{36} }
func (m *FindAllRemoteBranchesRequest) Reset() { *m = FindAllRemoteBranchesRequest{} }
func (m *FindAllRemoteBranchesRequest) String() string { return proto.CompactTextString(m) }
func (*FindAllRemoteBranchesRequest) ProtoMessage() {}
func (*FindAllRemoteBranchesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{36}
}
func (m *FindAllRemoteBranchesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FindAllRemoteBranchesRequest.Unmarshal(m, b)
}
func (m *FindAllRemoteBranchesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FindAllRemoteBranchesRequest.Marshal(b, m, deterministic)
}
func (dst *FindAllRemoteBranchesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_FindAllRemoteBranchesRequest.Merge(dst, src)
}
func (m *FindAllRemoteBranchesRequest) XXX_Size() int {
return xxx_messageInfo_FindAllRemoteBranchesRequest.Size(m)
}
func (m *FindAllRemoteBranchesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_FindAllRemoteBranchesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_FindAllRemoteBranchesRequest proto.InternalMessageInfo
func (m *FindAllRemoteBranchesRequest) GetRepository() *Repository {
if m != nil {
......@@ -945,13 +1777,35 @@ func (m *FindAllRemoteBranchesRequest) GetRemoteName() string {
}
type FindAllRemoteBranchesResponse struct {
Branches []*Branch `protobuf:"bytes,1,rep,name=branches" json:"branches,omitempty"`
Branches []*Branch `protobuf:"bytes,1,rep,name=branches,proto3" json:"branches,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FindAllRemoteBranchesResponse) Reset() { *m = FindAllRemoteBranchesResponse{} }
func (m *FindAllRemoteBranchesResponse) String() string { return proto.CompactTextString(m) }
func (*FindAllRemoteBranchesResponse) ProtoMessage() {}
func (*FindAllRemoteBranchesResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{37} }
func (m *FindAllRemoteBranchesResponse) Reset() { *m = FindAllRemoteBranchesResponse{} }
func (m *FindAllRemoteBranchesResponse) String() string { return proto.CompactTextString(m) }
func (*FindAllRemoteBranchesResponse) ProtoMessage() {}
func (*FindAllRemoteBranchesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ref_15e26c5c2600d751, []int{37}
}
func (m *FindAllRemoteBranchesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FindAllRemoteBranchesResponse.Unmarshal(m, b)
}
func (m *FindAllRemoteBranchesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FindAllRemoteBranchesResponse.Marshal(b, m, deterministic)
}
func (dst *FindAllRemoteBranchesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_FindAllRemoteBranchesResponse.Merge(dst, src)
}
func (m *FindAllRemoteBranchesResponse) XXX_Size() int {
return xxx_messageInfo_FindAllRemoteBranchesResponse.Size(m)
}
func (m *FindAllRemoteBranchesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_FindAllRemoteBranchesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_FindAllRemoteBranchesResponse proto.InternalMessageInfo
func (m *FindAllRemoteBranchesResponse) GetBranches() []*Branch {
if m != nil {
......@@ -1012,8 +1866,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for RefService service
// RefServiceClient is the client API for RefService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type RefServiceClient interface {
FindDefaultBranchName(ctx context.Context, in *FindDefaultBranchNameRequest, opts ...grpc.CallOption) (*FindDefaultBranchNameResponse, error)
FindAllBranchNames(ctx context.Context, in *FindAllBranchNamesRequest, opts ...grpc.CallOption) (RefService_FindAllBranchNamesClient, error)
......@@ -1048,7 +1903,7 @@ func NewRefServiceClient(cc *grpc.ClientConn) RefServiceClient {
func (c *refServiceClient) FindDefaultBranchName(ctx context.Context, in *FindDefaultBranchNameRequest, opts ...grpc.CallOption) (*FindDefaultBranchNameResponse, error) {
out := new(FindDefaultBranchNameResponse)
err := grpc.Invoke(ctx, "/gitaly.RefService/FindDefaultBranchName", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/gitaly.RefService/FindDefaultBranchName", in, out, opts...)
if err != nil {
return nil, err
}
......@@ -1056,7 +1911,7 @@ func (c *refServiceClient) FindDefaultBranchName(ctx context.Context, in *FindDe
}
func (c *refServiceClient) FindAllBranchNames(ctx context.Context, in *FindAllBranchNamesRequest, opts ...grpc.CallOption) (RefService_FindAllBranchNamesClient, error) {
stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[0], c.cc, "/gitaly.RefService/FindAllBranchNames", opts...)
stream, err := c.cc.NewStream(ctx, &_RefService_serviceDesc.Streams[0], "/gitaly.RefService/FindAllBranchNames", opts...)
if err != nil {
return nil, err
}
......@@ -1088,7 +1943,7 @@ func (x *refServiceFindAllBranchNamesClient) Recv() (*FindAllBranchNamesResponse
}
func (c *refServiceClient) FindAllTagNames(ctx context.Context, in *FindAllTagNamesRequest, opts ...grpc.CallOption) (RefService_FindAllTagNamesClient, error) {
stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[1], c.cc, "/gitaly.RefService/FindAllTagNames", opts...)
stream, err := c.cc.NewStream(ctx, &_RefService_serviceDesc.Streams[1], "/gitaly.RefService/FindAllTagNames", opts...)
if err != nil {
return nil, err
}
......@@ -1121,7 +1976,7 @@ func (x *refServiceFindAllTagNamesClient) Recv() (*FindAllTagNamesResponse, erro
func (c *refServiceClient) FindRefName(ctx context.Context, in *FindRefNameRequest, opts ...grpc.CallOption) (*FindRefNameResponse, error) {
out := new(FindRefNameResponse)
err := grpc.Invoke(ctx, "/gitaly.RefService/FindRefName", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/gitaly.RefService/FindRefName", in, out, opts...)
if err != nil {
return nil, err
}
......@@ -1129,7 +1984,7 @@ func (c *refServiceClient) FindRefName(ctx context.Context, in *FindRefNameReque
}
func (c *refServiceClient) FindLocalBranches(ctx context.Context, in *FindLocalBranchesRequest, opts ...grpc.CallOption) (RefService_FindLocalBranchesClient, error) {
stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[2], c.cc, "/gitaly.RefService/FindLocalBranches", opts...)
stream, err := c.cc.NewStream(ctx, &_RefService_serviceDesc.Streams[2], "/gitaly.RefService/FindLocalBranches", opts...)
if err != nil {
return nil, err
}
......@@ -1161,7 +2016,7 @@ func (x *refServiceFindLocalBranchesClient) Recv() (*FindLocalBranchesResponse,
}
func (c *refServiceClient) FindAllBranches(ctx context.Context, in *FindAllBranchesRequest, opts ...grpc.CallOption) (RefService_FindAllBranchesClient, error) {
stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[3], c.cc, "/gitaly.RefService/FindAllBranches", opts...)
stream, err := c.cc.NewStream(ctx, &_RefService_serviceDesc.Streams[3], "/gitaly.RefService/FindAllBranches", opts...)
if err != nil {
return nil, err
}
......@@ -1193,7 +2048,7 @@ func (x *refServiceFindAllBranchesClient) Recv() (*FindAllBranchesResponse, erro
}
func (c *refServiceClient) FindAllTags(ctx context.Context, in *FindAllTagsRequest, opts ...grpc.CallOption) (RefService_FindAllTagsClient, error) {
stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[4], c.cc, "/gitaly.RefService/FindAllTags", opts...)
stream, err := c.cc.NewStream(ctx, &_RefService_serviceDesc.Streams[4], "/gitaly.RefService/FindAllTags", opts...)
if err != nil {
return nil, err
}
......@@ -1225,7 +2080,7 @@ func (x *refServiceFindAllTagsClient) Recv() (*FindAllTagsResponse, error) {
}
func (c *refServiceClient) FindAllRemoteBranches(ctx context.Context, in *FindAllRemoteBranchesRequest, opts ...grpc.CallOption) (RefService_FindAllRemoteBranchesClient, error) {
stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[5], c.cc, "/gitaly.RefService/FindAllRemoteBranches", opts...)
stream, err := c.cc.NewStream(ctx, &_RefService_serviceDesc.Streams[5], "/gitaly.RefService/FindAllRemoteBranches", opts...)
if err != nil {
return nil, err
}
......@@ -1258,7 +2113,7 @@ func (x *refServiceFindAllRemoteBranchesClient) Recv() (*FindAllRemoteBranchesRe
func (c *refServiceClient) RefExists(ctx context.Context, in *RefExistsRequest, opts ...grpc.CallOption) (*RefExistsResponse, error) {
out := new(RefExistsResponse)
err := grpc.Invoke(ctx, "/gitaly.RefService/RefExists", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/gitaly.RefService/RefExists", in, out, opts...)
if err != nil {
return nil, err
}
......@@ -1267,7 +2122,7 @@ func (c *refServiceClient) RefExists(ctx context.Context, in *RefExistsRequest,
func (c *refServiceClient) CreateBranch(ctx context.Context, in *CreateBranchRequest, opts ...grpc.CallOption) (*CreateBranchResponse, error) {
out := new(CreateBranchResponse)
err := grpc.Invoke(ctx, "/gitaly.RefService/CreateBranch", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/gitaly.RefService/CreateBranch", in, out, opts...)
if err != nil {
return nil, err
}
......@@ -1276,7 +2131,7 @@ func (c *refServiceClient) CreateBranch(ctx context.Context, in *CreateBranchReq
func (c *refServiceClient) DeleteBranch(ctx context.Context, in *DeleteBranchRequest, opts ...grpc.CallOption) (*DeleteBranchResponse, error) {
out := new(DeleteBranchResponse)
err := grpc.Invoke(ctx, "/gitaly.RefService/DeleteBranch", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/gitaly.RefService/DeleteBranch", in, out, opts...)
if err != nil {
return nil, err
}
......@@ -1285,7 +2140,7 @@ func (c *refServiceClient) DeleteBranch(ctx context.Context, in *DeleteBranchReq
func (c *refServiceClient) FindBranch(ctx context.Context, in *FindBranchRequest, opts ...grpc.CallOption) (*FindBranchResponse, error) {
out := new(FindBranchResponse)
err := grpc.Invoke(ctx, "/gitaly.RefService/FindBranch", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/gitaly.RefService/FindBranch", in, out, opts...)
if err != nil {
return nil, err
}
......@@ -1294,7 +2149,7 @@ func (c *refServiceClient) FindBranch(ctx context.Context, in *FindBranchRequest
func (c *refServiceClient) DeleteRefs(ctx context.Context, in *DeleteRefsRequest, opts ...grpc.CallOption) (*DeleteRefsResponse, error) {
out := new(DeleteRefsResponse)
err := grpc.Invoke(ctx, "/gitaly.RefService/DeleteRefs", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/gitaly.RefService/DeleteRefs", in, out, opts...)
if err != nil {
return nil, err
}
......@@ -1302,7 +2157,7 @@ func (c *refServiceClient) DeleteRefs(ctx context.Context, in *DeleteRefsRequest
}
func (c *refServiceClient) ListBranchNamesContainingCommit(ctx context.Context, in *ListBranchNamesContainingCommitRequest, opts ...grpc.CallOption) (RefService_ListBranchNamesContainingCommitClient, error) {
stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[6], c.cc, "/gitaly.RefService/ListBranchNamesContainingCommit", opts...)
stream, err := c.cc.NewStream(ctx, &_RefService_serviceDesc.Streams[6], "/gitaly.RefService/ListBranchNamesContainingCommit", opts...)
if err != nil {
return nil, err
}
......@@ -1334,7 +2189,7 @@ func (x *refServiceListBranchNamesContainingCommitClient) Recv() (*ListBranchNam
}
func (c *refServiceClient) ListTagNamesContainingCommit(ctx context.Context, in *ListTagNamesContainingCommitRequest, opts ...grpc.CallOption) (RefService_ListTagNamesContainingCommitClient, error) {
stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[7], c.cc, "/gitaly.RefService/ListTagNamesContainingCommit", opts...)
stream, err := c.cc.NewStream(ctx, &_RefService_serviceDesc.Streams[7], "/gitaly.RefService/ListTagNamesContainingCommit", opts...)
if err != nil {
return nil, err
}
......@@ -1366,7 +2221,7 @@ func (x *refServiceListTagNamesContainingCommitClient) Recv() (*ListTagNamesCont
}
func (c *refServiceClient) GetTagMessages(ctx context.Context, in *GetTagMessagesRequest, opts ...grpc.CallOption) (RefService_GetTagMessagesClient, error) {
stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[8], c.cc, "/gitaly.RefService/GetTagMessages", opts...)
stream, err := c.cc.NewStream(ctx, &_RefService_serviceDesc.Streams[8], "/gitaly.RefService/GetTagMessages", opts...)
if err != nil {
return nil, err
}
......@@ -1398,7 +2253,7 @@ func (x *refServiceGetTagMessagesClient) Recv() (*GetTagMessagesResponse, error)
}
func (c *refServiceClient) ListNewCommits(ctx context.Context, in *ListNewCommitsRequest, opts ...grpc.CallOption) (RefService_ListNewCommitsClient, error) {
stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[9], c.cc, "/gitaly.RefService/ListNewCommits", opts...)
stream, err := c.cc.NewStream(ctx, &_RefService_serviceDesc.Streams[9], "/gitaly.RefService/ListNewCommits", opts...)
if err != nil {
return nil, err
}
......@@ -1430,7 +2285,7 @@ func (x *refServiceListNewCommitsClient) Recv() (*ListNewCommitsResponse, error)
}
func (c *refServiceClient) ListNewBlobs(ctx context.Context, in *ListNewBlobsRequest, opts ...grpc.CallOption) (RefService_ListNewBlobsClient, error) {
stream, err := grpc.NewClientStream(ctx, &_RefService_serviceDesc.Streams[10], c.cc, "/gitaly.RefService/ListNewBlobs", opts...)
stream, err := c.cc.NewStream(ctx, &_RefService_serviceDesc.Streams[10], "/gitaly.RefService/ListNewBlobs", opts...)
if err != nil {
return nil, err
}
......@@ -1461,8 +2316,7 @@ func (x *refServiceListNewBlobsClient) Recv() (*ListNewBlobsResponse, error) {
return m, nil
}
// Server API for RefService service
// RefServiceServer is the server API for RefService service.
type RefServiceServer interface {
FindDefaultBranchName(context.Context, *FindDefaultBranchNameRequest) (*FindDefaultBranchNameResponse, error)
FindAllBranchNames(*FindAllBranchNamesRequest, RefService_FindAllBranchNamesServer) error
......@@ -1941,9 +2795,9 @@ var _RefService_serviceDesc = grpc.ServiceDesc{
Metadata: "ref.proto",
}
func init() { proto.RegisterFile("ref.proto", fileDescriptor9) }
func init() { proto.RegisterFile("ref.proto", fileDescriptor_ref_15e26c5c2600d751) }
var fileDescriptor9 = []byte{
var fileDescriptor_ref_15e26c5c2600d751 = []byte{
// 1539 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0x5b, 0x6f, 0xdb, 0xc6,
0x12, 0x36, 0x65, 0x5b, 0x96, 0x46, 0x8a, 0x4c, 0xaf, 0x2f, 0x51, 0xe8, 0x24, 0x76, 0x36, 0x37,
......
......@@ -17,18 +17,46 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type AddRemoteRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
Url string `protobuf:"bytes,3,opt,name=url" json:"url,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
// If any, the remote is configured as a mirror with those mappings
MirrorRefmaps []string `protobuf:"bytes,5,rep,name=mirror_refmaps,json=mirrorRefmaps" json:"mirror_refmaps,omitempty"`
MirrorRefmaps []string `protobuf:"bytes,5,rep,name=mirror_refmaps,json=mirrorRefmaps,proto3" json:"mirror_refmaps,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AddRemoteRequest) Reset() { *m = AddRemoteRequest{} }
func (m *AddRemoteRequest) String() string { return proto.CompactTextString(m) }
func (*AddRemoteRequest) ProtoMessage() {}
func (*AddRemoteRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_remote_51ab93dc1564c9c6, []int{0}
}
func (m *AddRemoteRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddRemoteRequest.Unmarshal(m, b)
}
func (m *AddRemoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AddRemoteRequest.Marshal(b, m, deterministic)
}
func (dst *AddRemoteRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_AddRemoteRequest.Merge(dst, src)
}
func (m *AddRemoteRequest) XXX_Size() int {
return xxx_messageInfo_AddRemoteRequest.Size(m)
}
func (m *AddRemoteRequest) XXX_DiscardUnknown() {
xxx_messageInfo_AddRemoteRequest.DiscardUnknown(m)
}
func (m *AddRemoteRequest) Reset() { *m = AddRemoteRequest{} }
func (m *AddRemoteRequest) String() string { return proto.CompactTextString(m) }
func (*AddRemoteRequest) ProtoMessage() {}
func (*AddRemoteRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{0} }
var xxx_messageInfo_AddRemoteRequest proto.InternalMessageInfo
func (m *AddRemoteRequest) GetRepository() *Repository {
if m != nil {
......@@ -59,22 +87,66 @@ func (m *AddRemoteRequest) GetMirrorRefmaps() []string {
}
type AddRemoteResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AddRemoteResponse) Reset() { *m = AddRemoteResponse{} }
func (m *AddRemoteResponse) String() string { return proto.CompactTextString(m) }
func (*AddRemoteResponse) ProtoMessage() {}
func (*AddRemoteResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_remote_51ab93dc1564c9c6, []int{1}
}
func (m *AddRemoteResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddRemoteResponse.Unmarshal(m, b)
}
func (m *AddRemoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AddRemoteResponse.Marshal(b, m, deterministic)
}
func (dst *AddRemoteResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_AddRemoteResponse.Merge(dst, src)
}
func (m *AddRemoteResponse) XXX_Size() int {
return xxx_messageInfo_AddRemoteResponse.Size(m)
}
func (m *AddRemoteResponse) XXX_DiscardUnknown() {
xxx_messageInfo_AddRemoteResponse.DiscardUnknown(m)
}
func (m *AddRemoteResponse) Reset() { *m = AddRemoteResponse{} }
func (m *AddRemoteResponse) String() string { return proto.CompactTextString(m) }
func (*AddRemoteResponse) ProtoMessage() {}
func (*AddRemoteResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{1} }
var xxx_messageInfo_AddRemoteResponse proto.InternalMessageInfo
type RemoveRemoteRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RemoveRemoteRequest) Reset() { *m = RemoveRemoteRequest{} }
func (m *RemoveRemoteRequest) String() string { return proto.CompactTextString(m) }
func (*RemoveRemoteRequest) ProtoMessage() {}
func (*RemoveRemoteRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_remote_51ab93dc1564c9c6, []int{2}
}
func (m *RemoveRemoteRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RemoveRemoteRequest.Unmarshal(m, b)
}
func (m *RemoveRemoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RemoveRemoteRequest.Marshal(b, m, deterministic)
}
func (dst *RemoveRemoteRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_RemoveRemoteRequest.Merge(dst, src)
}
func (m *RemoveRemoteRequest) XXX_Size() int {
return xxx_messageInfo_RemoveRemoteRequest.Size(m)
}
func (m *RemoveRemoteRequest) XXX_DiscardUnknown() {
xxx_messageInfo_RemoveRemoteRequest.DiscardUnknown(m)
}
func (m *RemoveRemoteRequest) Reset() { *m = RemoveRemoteRequest{} }
func (m *RemoveRemoteRequest) String() string { return proto.CompactTextString(m) }
func (*RemoveRemoteRequest) ProtoMessage() {}
func (*RemoveRemoteRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{2} }
var xxx_messageInfo_RemoveRemoteRequest proto.InternalMessageInfo
func (m *RemoveRemoteRequest) GetRepository() *Repository {
if m != nil {
......@@ -91,13 +163,35 @@ func (m *RemoveRemoteRequest) GetName() string {
}
type RemoveRemoteResponse struct {
Result bool `protobuf:"varint,1,opt,name=result" json:"result,omitempty"`
Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RemoveRemoteResponse) Reset() { *m = RemoveRemoteResponse{} }
func (m *RemoveRemoteResponse) String() string { return proto.CompactTextString(m) }
func (*RemoveRemoteResponse) ProtoMessage() {}
func (*RemoveRemoteResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{3} }
func (m *RemoveRemoteResponse) Reset() { *m = RemoveRemoteResponse{} }
func (m *RemoveRemoteResponse) String() string { return proto.CompactTextString(m) }
func (*RemoveRemoteResponse) ProtoMessage() {}
func (*RemoveRemoteResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_remote_51ab93dc1564c9c6, []int{3}
}
func (m *RemoveRemoteResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RemoveRemoteResponse.Unmarshal(m, b)
}
func (m *RemoveRemoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RemoveRemoteResponse.Marshal(b, m, deterministic)
}
func (dst *RemoveRemoteResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_RemoveRemoteResponse.Merge(dst, src)
}
func (m *RemoveRemoteResponse) XXX_Size() int {
return xxx_messageInfo_RemoveRemoteResponse.Size(m)
}
func (m *RemoveRemoteResponse) XXX_DiscardUnknown() {
xxx_messageInfo_RemoveRemoteResponse.DiscardUnknown(m)
}
var xxx_messageInfo_RemoveRemoteResponse proto.InternalMessageInfo
func (m *RemoveRemoteResponse) GetResult() bool {
if m != nil {
......@@ -107,14 +201,36 @@ func (m *RemoveRemoteResponse) GetResult() bool {
}
type FetchInternalRemoteRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
RemoteRepository *Repository `protobuf:"bytes,2,opt,name=remote_repository,json=remoteRepository" json:"remote_repository,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
RemoteRepository *Repository `protobuf:"bytes,2,opt,name=remote_repository,json=remoteRepository,proto3" json:"remote_repository,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FetchInternalRemoteRequest) Reset() { *m = FetchInternalRemoteRequest{} }
func (m *FetchInternalRemoteRequest) String() string { return proto.CompactTextString(m) }
func (*FetchInternalRemoteRequest) ProtoMessage() {}
func (*FetchInternalRemoteRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_remote_51ab93dc1564c9c6, []int{4}
}
func (m *FetchInternalRemoteRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FetchInternalRemoteRequest.Unmarshal(m, b)
}
func (m *FetchInternalRemoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FetchInternalRemoteRequest.Marshal(b, m, deterministic)
}
func (dst *FetchInternalRemoteRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_FetchInternalRemoteRequest.Merge(dst, src)
}
func (m *FetchInternalRemoteRequest) XXX_Size() int {
return xxx_messageInfo_FetchInternalRemoteRequest.Size(m)
}
func (m *FetchInternalRemoteRequest) XXX_DiscardUnknown() {
xxx_messageInfo_FetchInternalRemoteRequest.DiscardUnknown(m)
}
func (m *FetchInternalRemoteRequest) Reset() { *m = FetchInternalRemoteRequest{} }
func (m *FetchInternalRemoteRequest) String() string { return proto.CompactTextString(m) }
func (*FetchInternalRemoteRequest) ProtoMessage() {}
func (*FetchInternalRemoteRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{4} }
var xxx_messageInfo_FetchInternalRemoteRequest proto.InternalMessageInfo
func (m *FetchInternalRemoteRequest) GetRepository() *Repository {
if m != nil {
......@@ -131,13 +247,35 @@ func (m *FetchInternalRemoteRequest) GetRemoteRepository() *Repository {
}
type FetchInternalRemoteResponse struct {
Result bool `protobuf:"varint,1,opt,name=result" json:"result,omitempty"`
Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FetchInternalRemoteResponse) Reset() { *m = FetchInternalRemoteResponse{} }
func (m *FetchInternalRemoteResponse) String() string { return proto.CompactTextString(m) }
func (*FetchInternalRemoteResponse) ProtoMessage() {}
func (*FetchInternalRemoteResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{5} }
func (m *FetchInternalRemoteResponse) Reset() { *m = FetchInternalRemoteResponse{} }
func (m *FetchInternalRemoteResponse) String() string { return proto.CompactTextString(m) }
func (*FetchInternalRemoteResponse) ProtoMessage() {}
func (*FetchInternalRemoteResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_remote_51ab93dc1564c9c6, []int{5}
}
func (m *FetchInternalRemoteResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FetchInternalRemoteResponse.Unmarshal(m, b)
}
func (m *FetchInternalRemoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FetchInternalRemoteResponse.Marshal(b, m, deterministic)
}
func (dst *FetchInternalRemoteResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_FetchInternalRemoteResponse.Merge(dst, src)
}
func (m *FetchInternalRemoteResponse) XXX_Size() int {
return xxx_messageInfo_FetchInternalRemoteResponse.Size(m)
}
func (m *FetchInternalRemoteResponse) XXX_DiscardUnknown() {
xxx_messageInfo_FetchInternalRemoteResponse.DiscardUnknown(m)
}
var xxx_messageInfo_FetchInternalRemoteResponse proto.InternalMessageInfo
func (m *FetchInternalRemoteResponse) GetResult() bool {
if m != nil {
......@@ -147,17 +285,39 @@ func (m *FetchInternalRemoteResponse) GetResult() bool {
}
type UpdateRemoteMirrorRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
RefName string `protobuf:"bytes,2,opt,name=ref_name,json=refName" json:"ref_name,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
RefName string `protobuf:"bytes,2,opt,name=ref_name,json=refName,proto3" json:"ref_name,omitempty"`
OnlyBranchesMatching [][]byte `protobuf:"bytes,3,rep,name=only_branches_matching,json=onlyBranchesMatching,proto3" json:"only_branches_matching,omitempty"`
SshKey string `protobuf:"bytes,4,opt,name=ssh_key,json=sshKey" json:"ssh_key,omitempty"`
KnownHosts string `protobuf:"bytes,5,opt,name=known_hosts,json=knownHosts" json:"known_hosts,omitempty"`
SshKey string `protobuf:"bytes,4,opt,name=ssh_key,json=sshKey,proto3" json:"ssh_key,omitempty"`
KnownHosts string `protobuf:"bytes,5,opt,name=known_hosts,json=knownHosts,proto3" json:"known_hosts,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateRemoteMirrorRequest) Reset() { *m = UpdateRemoteMirrorRequest{} }
func (m *UpdateRemoteMirrorRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateRemoteMirrorRequest) ProtoMessage() {}
func (*UpdateRemoteMirrorRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{6} }
func (m *UpdateRemoteMirrorRequest) Reset() { *m = UpdateRemoteMirrorRequest{} }
func (m *UpdateRemoteMirrorRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateRemoteMirrorRequest) ProtoMessage() {}
func (*UpdateRemoteMirrorRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_remote_51ab93dc1564c9c6, []int{6}
}
func (m *UpdateRemoteMirrorRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateRemoteMirrorRequest.Unmarshal(m, b)
}
func (m *UpdateRemoteMirrorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateRemoteMirrorRequest.Marshal(b, m, deterministic)
}
func (dst *UpdateRemoteMirrorRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateRemoteMirrorRequest.Merge(dst, src)
}
func (m *UpdateRemoteMirrorRequest) XXX_Size() int {
return xxx_messageInfo_UpdateRemoteMirrorRequest.Size(m)
}
func (m *UpdateRemoteMirrorRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateRemoteMirrorRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateRemoteMirrorRequest proto.InternalMessageInfo
func (m *UpdateRemoteMirrorRequest) GetRepository() *Repository {
if m != nil {
......@@ -195,21 +355,65 @@ func (m *UpdateRemoteMirrorRequest) GetKnownHosts() string {
}
type UpdateRemoteMirrorResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateRemoteMirrorResponse) Reset() { *m = UpdateRemoteMirrorResponse{} }
func (m *UpdateRemoteMirrorResponse) String() string { return proto.CompactTextString(m) }
func (*UpdateRemoteMirrorResponse) ProtoMessage() {}
func (*UpdateRemoteMirrorResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{7} }
func (m *UpdateRemoteMirrorResponse) Reset() { *m = UpdateRemoteMirrorResponse{} }
func (m *UpdateRemoteMirrorResponse) String() string { return proto.CompactTextString(m) }
func (*UpdateRemoteMirrorResponse) ProtoMessage() {}
func (*UpdateRemoteMirrorResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_remote_51ab93dc1564c9c6, []int{7}
}
func (m *UpdateRemoteMirrorResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateRemoteMirrorResponse.Unmarshal(m, b)
}
func (m *UpdateRemoteMirrorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateRemoteMirrorResponse.Marshal(b, m, deterministic)
}
func (dst *UpdateRemoteMirrorResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateRemoteMirrorResponse.Merge(dst, src)
}
func (m *UpdateRemoteMirrorResponse) XXX_Size() int {
return xxx_messageInfo_UpdateRemoteMirrorResponse.Size(m)
}
func (m *UpdateRemoteMirrorResponse) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateRemoteMirrorResponse.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateRemoteMirrorResponse proto.InternalMessageInfo
type FindRemoteRepositoryRequest struct {
Remote string `protobuf:"bytes,1,opt,name=remote" json:"remote,omitempty"`
Remote string `protobuf:"bytes,1,opt,name=remote,proto3" json:"remote,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FindRemoteRepositoryRequest) Reset() { *m = FindRemoteRepositoryRequest{} }
func (m *FindRemoteRepositoryRequest) String() string { return proto.CompactTextString(m) }
func (*FindRemoteRepositoryRequest) ProtoMessage() {}
func (*FindRemoteRepositoryRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_remote_51ab93dc1564c9c6, []int{8}
}
func (m *FindRemoteRepositoryRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FindRemoteRepositoryRequest.Unmarshal(m, b)
}
func (m *FindRemoteRepositoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FindRemoteRepositoryRequest.Marshal(b, m, deterministic)
}
func (dst *FindRemoteRepositoryRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_FindRemoteRepositoryRequest.Merge(dst, src)
}
func (m *FindRemoteRepositoryRequest) XXX_Size() int {
return xxx_messageInfo_FindRemoteRepositoryRequest.Size(m)
}
func (m *FindRemoteRepositoryRequest) XXX_DiscardUnknown() {
xxx_messageInfo_FindRemoteRepositoryRequest.DiscardUnknown(m)
}
func (m *FindRemoteRepositoryRequest) Reset() { *m = FindRemoteRepositoryRequest{} }
func (m *FindRemoteRepositoryRequest) String() string { return proto.CompactTextString(m) }
func (*FindRemoteRepositoryRequest) ProtoMessage() {}
func (*FindRemoteRepositoryRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{8} }
var xxx_messageInfo_FindRemoteRepositoryRequest proto.InternalMessageInfo
func (m *FindRemoteRepositoryRequest) GetRemote() string {
if m != nil {
......@@ -221,13 +425,35 @@ func (m *FindRemoteRepositoryRequest) GetRemote() string {
// This migth throw a GRPC Unavailable code, to signal the request failure
// is transient.
type FindRemoteRepositoryResponse struct {
Exists bool `protobuf:"varint,1,opt,name=exists" json:"exists,omitempty"`
Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FindRemoteRepositoryResponse) Reset() { *m = FindRemoteRepositoryResponse{} }
func (m *FindRemoteRepositoryResponse) String() string { return proto.CompactTextString(m) }
func (*FindRemoteRepositoryResponse) ProtoMessage() {}
func (*FindRemoteRepositoryResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{9} }
func (m *FindRemoteRepositoryResponse) Reset() { *m = FindRemoteRepositoryResponse{} }
func (m *FindRemoteRepositoryResponse) String() string { return proto.CompactTextString(m) }
func (*FindRemoteRepositoryResponse) ProtoMessage() {}
func (*FindRemoteRepositoryResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_remote_51ab93dc1564c9c6, []int{9}
}
func (m *FindRemoteRepositoryResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FindRemoteRepositoryResponse.Unmarshal(m, b)
}
func (m *FindRemoteRepositoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FindRemoteRepositoryResponse.Marshal(b, m, deterministic)
}
func (dst *FindRemoteRepositoryResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_FindRemoteRepositoryResponse.Merge(dst, src)
}
func (m *FindRemoteRepositoryResponse) XXX_Size() int {
return xxx_messageInfo_FindRemoteRepositoryResponse.Size(m)
}
func (m *FindRemoteRepositoryResponse) XXX_DiscardUnknown() {
xxx_messageInfo_FindRemoteRepositoryResponse.DiscardUnknown(m)
}
var xxx_messageInfo_FindRemoteRepositoryResponse proto.InternalMessageInfo
func (m *FindRemoteRepositoryResponse) GetExists() bool {
if m != nil {
......@@ -237,14 +463,36 @@ func (m *FindRemoteRepositoryResponse) GetExists() bool {
}
type FindRemoteRootRefRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Remote string `protobuf:"bytes,2,opt,name=remote" json:"remote,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
Remote string `protobuf:"bytes,2,opt,name=remote,proto3" json:"remote,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FindRemoteRootRefRequest) Reset() { *m = FindRemoteRootRefRequest{} }
func (m *FindRemoteRootRefRequest) String() string { return proto.CompactTextString(m) }
func (*FindRemoteRootRefRequest) ProtoMessage() {}
func (*FindRemoteRootRefRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{10} }
func (m *FindRemoteRootRefRequest) Reset() { *m = FindRemoteRootRefRequest{} }
func (m *FindRemoteRootRefRequest) String() string { return proto.CompactTextString(m) }
func (*FindRemoteRootRefRequest) ProtoMessage() {}
func (*FindRemoteRootRefRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_remote_51ab93dc1564c9c6, []int{10}
}
func (m *FindRemoteRootRefRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FindRemoteRootRefRequest.Unmarshal(m, b)
}
func (m *FindRemoteRootRefRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FindRemoteRootRefRequest.Marshal(b, m, deterministic)
}
func (dst *FindRemoteRootRefRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_FindRemoteRootRefRequest.Merge(dst, src)
}
func (m *FindRemoteRootRefRequest) XXX_Size() int {
return xxx_messageInfo_FindRemoteRootRefRequest.Size(m)
}
func (m *FindRemoteRootRefRequest) XXX_DiscardUnknown() {
xxx_messageInfo_FindRemoteRootRefRequest.DiscardUnknown(m)
}
var xxx_messageInfo_FindRemoteRootRefRequest proto.InternalMessageInfo
func (m *FindRemoteRootRefRequest) GetRepository() *Repository {
if m != nil {
......@@ -261,13 +509,35 @@ func (m *FindRemoteRootRefRequest) GetRemote() string {
}
type FindRemoteRootRefResponse struct {
Ref string `protobuf:"bytes,1,opt,name=ref" json:"ref,omitempty"`
Ref string `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FindRemoteRootRefResponse) Reset() { *m = FindRemoteRootRefResponse{} }
func (m *FindRemoteRootRefResponse) String() string { return proto.CompactTextString(m) }
func (*FindRemoteRootRefResponse) ProtoMessage() {}
func (*FindRemoteRootRefResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_remote_51ab93dc1564c9c6, []int{11}
}
func (m *FindRemoteRootRefResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FindRemoteRootRefResponse.Unmarshal(m, b)
}
func (m *FindRemoteRootRefResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FindRemoteRootRefResponse.Marshal(b, m, deterministic)
}
func (dst *FindRemoteRootRefResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_FindRemoteRootRefResponse.Merge(dst, src)
}
func (m *FindRemoteRootRefResponse) XXX_Size() int {
return xxx_messageInfo_FindRemoteRootRefResponse.Size(m)
}
func (m *FindRemoteRootRefResponse) XXX_DiscardUnknown() {
xxx_messageInfo_FindRemoteRootRefResponse.DiscardUnknown(m)
}
func (m *FindRemoteRootRefResponse) Reset() { *m = FindRemoteRootRefResponse{} }
func (m *FindRemoteRootRefResponse) String() string { return proto.CompactTextString(m) }
func (*FindRemoteRootRefResponse) ProtoMessage() {}
func (*FindRemoteRootRefResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{11} }
var xxx_messageInfo_FindRemoteRootRefResponse proto.InternalMessageInfo
func (m *FindRemoteRootRefResponse) GetRef() string {
if m != nil {
......@@ -277,13 +547,35 @@ func (m *FindRemoteRootRefResponse) GetRef() string {
}
type ListRemotesRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListRemotesRequest) Reset() { *m = ListRemotesRequest{} }
func (m *ListRemotesRequest) String() string { return proto.CompactTextString(m) }
func (*ListRemotesRequest) ProtoMessage() {}
func (*ListRemotesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_remote_51ab93dc1564c9c6, []int{12}
}
func (m *ListRemotesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListRemotesRequest.Unmarshal(m, b)
}
func (m *ListRemotesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListRemotesRequest.Marshal(b, m, deterministic)
}
func (dst *ListRemotesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListRemotesRequest.Merge(dst, src)
}
func (m *ListRemotesRequest) XXX_Size() int {
return xxx_messageInfo_ListRemotesRequest.Size(m)
}
func (m *ListRemotesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListRemotesRequest.DiscardUnknown(m)
}
func (m *ListRemotesRequest) Reset() { *m = ListRemotesRequest{} }
func (m *ListRemotesRequest) String() string { return proto.CompactTextString(m) }
func (*ListRemotesRequest) ProtoMessage() {}
func (*ListRemotesRequest) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{12} }
var xxx_messageInfo_ListRemotesRequest proto.InternalMessageInfo
func (m *ListRemotesRequest) GetRepository() *Repository {
if m != nil {
......@@ -293,13 +585,35 @@ func (m *ListRemotesRequest) GetRepository() *Repository {
}
type ListRemotesResponse struct {
Remotes []*ListRemotesResponse_Remote `protobuf:"bytes,1,rep,name=remotes" json:"remotes,omitempty"`
Remotes []*ListRemotesResponse_Remote `protobuf:"bytes,1,rep,name=remotes,proto3" json:"remotes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListRemotesResponse) Reset() { *m = ListRemotesResponse{} }
func (m *ListRemotesResponse) String() string { return proto.CompactTextString(m) }
func (*ListRemotesResponse) ProtoMessage() {}
func (*ListRemotesResponse) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{13} }
func (m *ListRemotesResponse) Reset() { *m = ListRemotesResponse{} }
func (m *ListRemotesResponse) String() string { return proto.CompactTextString(m) }
func (*ListRemotesResponse) ProtoMessage() {}
func (*ListRemotesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_remote_51ab93dc1564c9c6, []int{13}
}
func (m *ListRemotesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListRemotesResponse.Unmarshal(m, b)
}
func (m *ListRemotesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListRemotesResponse.Marshal(b, m, deterministic)
}
func (dst *ListRemotesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListRemotesResponse.Merge(dst, src)
}
func (m *ListRemotesResponse) XXX_Size() int {
return xxx_messageInfo_ListRemotesResponse.Size(m)
}
func (m *ListRemotesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListRemotesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListRemotesResponse proto.InternalMessageInfo
func (m *ListRemotesResponse) GetRemotes() []*ListRemotesResponse_Remote {
if m != nil {
......@@ -309,15 +623,37 @@ func (m *ListRemotesResponse) GetRemotes() []*ListRemotesResponse_Remote {
}
type ListRemotesResponse_Remote struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
FetchUrl string `protobuf:"bytes,2,opt,name=fetch_url,json=fetchUrl" json:"fetch_url,omitempty"`
PushUrl string `protobuf:"bytes,3,opt,name=push_url,json=pushUrl" json:"push_url,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
FetchUrl string `protobuf:"bytes,2,opt,name=fetch_url,json=fetchUrl,proto3" json:"fetch_url,omitempty"`
PushUrl string `protobuf:"bytes,3,opt,name=push_url,json=pushUrl,proto3" json:"push_url,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListRemotesResponse_Remote) Reset() { *m = ListRemotesResponse_Remote{} }
func (m *ListRemotesResponse_Remote) String() string { return proto.CompactTextString(m) }
func (*ListRemotesResponse_Remote) ProtoMessage() {}
func (*ListRemotesResponse_Remote) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{13, 0} }
func (m *ListRemotesResponse_Remote) Reset() { *m = ListRemotesResponse_Remote{} }
func (m *ListRemotesResponse_Remote) String() string { return proto.CompactTextString(m) }
func (*ListRemotesResponse_Remote) ProtoMessage() {}
func (*ListRemotesResponse_Remote) Descriptor() ([]byte, []int) {
return fileDescriptor_remote_51ab93dc1564c9c6, []int{13, 0}
}
func (m *ListRemotesResponse_Remote) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListRemotesResponse_Remote.Unmarshal(m, b)
}
func (m *ListRemotesResponse_Remote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListRemotesResponse_Remote.Marshal(b, m, deterministic)
}
func (dst *ListRemotesResponse_Remote) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListRemotesResponse_Remote.Merge(dst, src)
}
func (m *ListRemotesResponse_Remote) XXX_Size() int {
return xxx_messageInfo_ListRemotesResponse_Remote.Size(m)
}
func (m *ListRemotesResponse_Remote) XXX_DiscardUnknown() {
xxx_messageInfo_ListRemotesResponse_Remote.DiscardUnknown(m)
}
var xxx_messageInfo_ListRemotesResponse_Remote proto.InternalMessageInfo
func (m *ListRemotesResponse_Remote) GetName() string {
if m != nil {
......@@ -366,8 +702,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for RemoteService service
// RemoteServiceClient is the client API for RemoteService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type RemoteServiceClient interface {
AddRemote(ctx context.Context, in *AddRemoteRequest, opts ...grpc.CallOption) (*AddRemoteResponse, error)
FetchInternalRemote(ctx context.Context, in *FetchInternalRemoteRequest, opts ...grpc.CallOption) (*FetchInternalRemoteResponse, error)
......@@ -388,7 +725,7 @@ func NewRemoteServiceClient(cc *grpc.ClientConn) RemoteServiceClient {
func (c *remoteServiceClient) AddRemote(ctx context.Context, in *AddRemoteRequest, opts ...grpc.CallOption) (*AddRemoteResponse, error) {
out := new(AddRemoteResponse)
err := grpc.Invoke(ctx, "/gitaly.RemoteService/AddRemote", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/gitaly.RemoteService/AddRemote", in, out, opts...)
if err != nil {
return nil, err
}
......@@ -397,7 +734,7 @@ func (c *remoteServiceClient) AddRemote(ctx context.Context, in *AddRemoteReques
func (c *remoteServiceClient) FetchInternalRemote(ctx context.Context, in *FetchInternalRemoteRequest, opts ...grpc.CallOption) (*FetchInternalRemoteResponse, error) {
out := new(FetchInternalRemoteResponse)
err := grpc.Invoke(ctx, "/gitaly.RemoteService/FetchInternalRemote", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/gitaly.RemoteService/FetchInternalRemote", in, out, opts...)
if err != nil {
return nil, err
}
......@@ -406,7 +743,7 @@ func (c *remoteServiceClient) FetchInternalRemote(ctx context.Context, in *Fetch
func (c *remoteServiceClient) RemoveRemote(ctx context.Context, in *RemoveRemoteRequest, opts ...grpc.CallOption) (*RemoveRemoteResponse, error) {
out := new(RemoveRemoteResponse)
err := grpc.Invoke(ctx, "/gitaly.RemoteService/RemoveRemote", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/gitaly.RemoteService/RemoveRemote", in, out, opts...)
if err != nil {
return nil, err
}
......@@ -414,7 +751,7 @@ func (c *remoteServiceClient) RemoveRemote(ctx context.Context, in *RemoveRemote
}
func (c *remoteServiceClient) UpdateRemoteMirror(ctx context.Context, opts ...grpc.CallOption) (RemoteService_UpdateRemoteMirrorClient, error) {
stream, err := grpc.NewClientStream(ctx, &_RemoteService_serviceDesc.Streams[0], c.cc, "/gitaly.RemoteService/UpdateRemoteMirror", opts...)
stream, err := c.cc.NewStream(ctx, &_RemoteService_serviceDesc.Streams[0], "/gitaly.RemoteService/UpdateRemoteMirror", opts...)
if err != nil {
return nil, err
}
......@@ -449,7 +786,7 @@ func (x *remoteServiceUpdateRemoteMirrorClient) CloseAndRecv() (*UpdateRemoteMir
func (c *remoteServiceClient) FindRemoteRepository(ctx context.Context, in *FindRemoteRepositoryRequest, opts ...grpc.CallOption) (*FindRemoteRepositoryResponse, error) {
out := new(FindRemoteRepositoryResponse)
err := grpc.Invoke(ctx, "/gitaly.RemoteService/FindRemoteRepository", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/gitaly.RemoteService/FindRemoteRepository", in, out, opts...)
if err != nil {
return nil, err
}
......@@ -458,7 +795,7 @@ func (c *remoteServiceClient) FindRemoteRepository(ctx context.Context, in *Find
func (c *remoteServiceClient) FindRemoteRootRef(ctx context.Context, in *FindRemoteRootRefRequest, opts ...grpc.CallOption) (*FindRemoteRootRefResponse, error) {
out := new(FindRemoteRootRefResponse)
err := grpc.Invoke(ctx, "/gitaly.RemoteService/FindRemoteRootRef", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/gitaly.RemoteService/FindRemoteRootRef", in, out, opts...)
if err != nil {
return nil, err
}
......@@ -466,7 +803,7 @@ func (c *remoteServiceClient) FindRemoteRootRef(ctx context.Context, in *FindRem
}
func (c *remoteServiceClient) ListRemotes(ctx context.Context, in *ListRemotesRequest, opts ...grpc.CallOption) (RemoteService_ListRemotesClient, error) {
stream, err := grpc.NewClientStream(ctx, &_RemoteService_serviceDesc.Streams[1], c.cc, "/gitaly.RemoteService/ListRemotes", opts...)
stream, err := c.cc.NewStream(ctx, &_RemoteService_serviceDesc.Streams[1], "/gitaly.RemoteService/ListRemotes", opts...)
if err != nil {
return nil, err
}
......@@ -497,8 +834,7 @@ func (x *remoteServiceListRemotesClient) Recv() (*ListRemotesResponse, error) {
return m, nil
}
// Server API for RemoteService service
// RemoteServiceServer is the server API for RemoteService service.
type RemoteServiceServer interface {
AddRemote(context.Context, *AddRemoteRequest) (*AddRemoteResponse, error)
FetchInternalRemote(context.Context, *FetchInternalRemoteRequest) (*FetchInternalRemoteResponse, error)
......@@ -690,9 +1026,9 @@ var _RemoteService_serviceDesc = grpc.ServiceDesc{
Metadata: "remote.proto",
}
func init() { proto.RegisterFile("remote.proto", fileDescriptor10) }
func init() { proto.RegisterFile("remote.proto", fileDescriptor_remote_51ab93dc1564c9c6) }
var fileDescriptor10 = []byte{
var fileDescriptor_remote_51ab93dc1564c9c6 = []byte{
// 672 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcb, 0x6e, 0xd3, 0x4c,
0x14, 0xae, 0xeb, 0x34, 0x97, 0x93, 0xf4, 0x57, 0x3a, 0xa9, 0xfa, 0x3b, 0x4e, 0x25, 0xd2, 0x01,
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -17,24 +17,74 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type ServerInfoRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerInfoRequest) Reset() { *m = ServerInfoRequest{} }
func (m *ServerInfoRequest) String() string { return proto.CompactTextString(m) }
func (*ServerInfoRequest) ProtoMessage() {}
func (*ServerInfoRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_server_f514d4dfffd932d9, []int{0}
}
func (m *ServerInfoRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerInfoRequest.Unmarshal(m, b)
}
func (m *ServerInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerInfoRequest.Marshal(b, m, deterministic)
}
func (dst *ServerInfoRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerInfoRequest.Merge(dst, src)
}
func (m *ServerInfoRequest) XXX_Size() int {
return xxx_messageInfo_ServerInfoRequest.Size(m)
}
func (m *ServerInfoRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ServerInfoRequest.DiscardUnknown(m)
}
func (m *ServerInfoRequest) Reset() { *m = ServerInfoRequest{} }
func (m *ServerInfoRequest) String() string { return proto.CompactTextString(m) }
func (*ServerInfoRequest) ProtoMessage() {}
func (*ServerInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptor12, []int{0} }
var xxx_messageInfo_ServerInfoRequest proto.InternalMessageInfo
type ServerInfoResponse struct {
ServerVersion string `protobuf:"bytes,1,opt,name=server_version,json=serverVersion" json:"server_version,omitempty"`
GitVersion string `protobuf:"bytes,2,opt,name=git_version,json=gitVersion" json:"git_version,omitempty"`
StorageStatuses []*ServerInfoResponse_StorageStatus `protobuf:"bytes,3,rep,name=storage_statuses,json=storageStatuses" json:"storage_statuses,omitempty"`
ServerVersion string `protobuf:"bytes,1,opt,name=server_version,json=serverVersion,proto3" json:"server_version,omitempty"`
GitVersion string `protobuf:"bytes,2,opt,name=git_version,json=gitVersion,proto3" json:"git_version,omitempty"`
StorageStatuses []*ServerInfoResponse_StorageStatus `protobuf:"bytes,3,rep,name=storage_statuses,json=storageStatuses,proto3" json:"storage_statuses,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerInfoResponse) Reset() { *m = ServerInfoResponse{} }
func (m *ServerInfoResponse) String() string { return proto.CompactTextString(m) }
func (*ServerInfoResponse) ProtoMessage() {}
func (*ServerInfoResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_server_f514d4dfffd932d9, []int{1}
}
func (m *ServerInfoResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerInfoResponse.Unmarshal(m, b)
}
func (m *ServerInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerInfoResponse.Marshal(b, m, deterministic)
}
func (dst *ServerInfoResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerInfoResponse.Merge(dst, src)
}
func (m *ServerInfoResponse) XXX_Size() int {
return xxx_messageInfo_ServerInfoResponse.Size(m)
}
func (m *ServerInfoResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ServerInfoResponse.DiscardUnknown(m)
}
func (m *ServerInfoResponse) Reset() { *m = ServerInfoResponse{} }
func (m *ServerInfoResponse) String() string { return proto.CompactTextString(m) }
func (*ServerInfoResponse) ProtoMessage() {}
func (*ServerInfoResponse) Descriptor() ([]byte, []int) { return fileDescriptor12, []int{1} }
var xxx_messageInfo_ServerInfoResponse proto.InternalMessageInfo
func (m *ServerInfoResponse) GetServerVersion() string {
if m != nil {
......@@ -58,18 +108,38 @@ func (m *ServerInfoResponse) GetStorageStatuses() []*ServerInfoResponse_StorageS
}
type ServerInfoResponse_StorageStatus struct {
StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName" json:"storage_name,omitempty"`
Readable bool `protobuf:"varint,2,opt,name=readable" json:"readable,omitempty"`
Writeable bool `protobuf:"varint,3,opt,name=writeable" json:"writeable,omitempty"`
StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"`
Readable bool `protobuf:"varint,2,opt,name=readable,proto3" json:"readable,omitempty"`
Writeable bool `protobuf:"varint,3,opt,name=writeable,proto3" json:"writeable,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerInfoResponse_StorageStatus) Reset() { *m = ServerInfoResponse_StorageStatus{} }
func (m *ServerInfoResponse_StorageStatus) String() string { return proto.CompactTextString(m) }
func (*ServerInfoResponse_StorageStatus) ProtoMessage() {}
func (*ServerInfoResponse_StorageStatus) Descriptor() ([]byte, []int) {
return fileDescriptor12, []int{1, 0}
return fileDescriptor_server_f514d4dfffd932d9, []int{1, 0}
}
func (m *ServerInfoResponse_StorageStatus) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerInfoResponse_StorageStatus.Unmarshal(m, b)
}
func (m *ServerInfoResponse_StorageStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerInfoResponse_StorageStatus.Marshal(b, m, deterministic)
}
func (dst *ServerInfoResponse_StorageStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerInfoResponse_StorageStatus.Merge(dst, src)
}
func (m *ServerInfoResponse_StorageStatus) XXX_Size() int {
return xxx_messageInfo_ServerInfoResponse_StorageStatus.Size(m)
}
func (m *ServerInfoResponse_StorageStatus) XXX_DiscardUnknown() {
xxx_messageInfo_ServerInfoResponse_StorageStatus.DiscardUnknown(m)
}
var xxx_messageInfo_ServerInfoResponse_StorageStatus proto.InternalMessageInfo
func (m *ServerInfoResponse_StorageStatus) GetStorageName() string {
if m != nil {
return m.StorageName
......@@ -105,8 +175,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for ServerService service
// ServerServiceClient is the client API for ServerService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ServerServiceClient interface {
ServerInfo(ctx context.Context, in *ServerInfoRequest, opts ...grpc.CallOption) (*ServerInfoResponse, error)
}
......@@ -121,15 +192,14 @@ func NewServerServiceClient(cc *grpc.ClientConn) ServerServiceClient {
func (c *serverServiceClient) ServerInfo(ctx context.Context, in *ServerInfoRequest, opts ...grpc.CallOption) (*ServerInfoResponse, error) {
out := new(ServerInfoResponse)
err := grpc.Invoke(ctx, "/gitaly.ServerService/ServerInfo", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/gitaly.ServerService/ServerInfo", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for ServerService service
// ServerServiceServer is the server API for ServerService service.
type ServerServiceServer interface {
ServerInfo(context.Context, *ServerInfoRequest) (*ServerInfoResponse, error)
}
......@@ -169,9 +239,9 @@ var _ServerService_serviceDesc = grpc.ServiceDesc{
Metadata: "server.proto",
}
func init() { proto.RegisterFile("server.proto", fileDescriptor12) }
func init() { proto.RegisterFile("server.proto", fileDescriptor_server_f514d4dfffd932d9) }
var fileDescriptor12 = []byte{
var fileDescriptor_server_f514d4dfffd932d9 = []byte{
// 258 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xcf, 0x4a, 0xc3, 0x40,
0x10, 0xc6, 0x6d, 0x03, 0xa5, 0x9d, 0x34, 0xfe, 0x19, 0x2f, 0x35, 0x08, 0xd6, 0x80, 0x90, 0x53,
......
......@@ -6,38 +6,66 @@ package gitalypb
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf "github.com/golang/protobuf/ptypes/timestamp"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type Repository struct {
StorageName string `protobuf:"bytes,2,opt,name=storage_name,json=storageName" json:"storage_name,omitempty"`
RelativePath string `protobuf:"bytes,3,opt,name=relative_path,json=relativePath" json:"relative_path,omitempty"`
StorageName string `protobuf:"bytes,2,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"`
RelativePath string `protobuf:"bytes,3,opt,name=relative_path,json=relativePath,proto3" json:"relative_path,omitempty"`
// Sets the GIT_OBJECT_DIRECTORY envvar on git commands to the value of this field.
// It influences the object storage directory the SHA1 directories are created underneath.
GitObjectDirectory string `protobuf:"bytes,4,opt,name=git_object_directory,json=gitObjectDirectory" json:"git_object_directory,omitempty"`
GitObjectDirectory string `protobuf:"bytes,4,opt,name=git_object_directory,json=gitObjectDirectory,proto3" json:"git_object_directory,omitempty"`
// Sets the GIT_ALTERNATE_OBJECT_DIRECTORIES envvar on git commands to the values of this field.
// It influences the list of Git object directories which can be used to search for Git objects.
GitAlternateObjectDirectories []string `protobuf:"bytes,5,rep,name=git_alternate_object_directories,json=gitAlternateObjectDirectories" json:"git_alternate_object_directories,omitempty"`
GitAlternateObjectDirectories []string `protobuf:"bytes,5,rep,name=git_alternate_object_directories,json=gitAlternateObjectDirectories,proto3" json:"git_alternate_object_directories,omitempty"`
// Used in callbacks to GitLab so that it knows what repository the event is
// associated with. May be left empty on RPC's that do not perform callbacks.
// During project creation, `gl_repository` may not be known.
GlRepository string `protobuf:"bytes,6,opt,name=gl_repository,json=glRepository" json:"gl_repository,omitempty"`
GlRepository string `protobuf:"bytes,6,opt,name=gl_repository,json=glRepository,proto3" json:"gl_repository,omitempty"`
// The human-readable GitLab project path (e.g. gitlab-org/gitlab-ce).
// When hashed storage is use, this associates a project path with its
// path on disk. The name can change over time (e.g. when a project is
// renamed). This is primarily used for logging/debugging at the
// moment.
GlProjectPath string `protobuf:"bytes,8,opt,name=gl_project_path,json=glProjectPath" json:"gl_project_path,omitempty"`
GlProjectPath string `protobuf:"bytes,8,opt,name=gl_project_path,json=glProjectPath,proto3" json:"gl_project_path,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Repository) Reset() { *m = Repository{} }
func (m *Repository) String() string { return proto.CompactTextString(m) }
func (*Repository) ProtoMessage() {}
func (*Repository) Descriptor() ([]byte, []int) { return fileDescriptor13, []int{0} }
func (m *Repository) Reset() { *m = Repository{} }
func (m *Repository) String() string { return proto.CompactTextString(m) }
func (*Repository) ProtoMessage() {}
func (*Repository) Descriptor() ([]byte, []int) {
return fileDescriptor_shared_7a2b49cc52ea76da, []int{0}
}
func (m *Repository) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Repository.Unmarshal(m, b)
}
func (m *Repository) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Repository.Marshal(b, m, deterministic)
}
func (dst *Repository) XXX_Merge(src proto.Message) {
xxx_messageInfo_Repository.Merge(dst, src)
}
func (m *Repository) XXX_Size() int {
return xxx_messageInfo_Repository.Size(m)
}
func (m *Repository) XXX_DiscardUnknown() {
xxx_messageInfo_Repository.DiscardUnknown(m)
}
var xxx_messageInfo_Repository proto.InternalMessageInfo
func (m *Repository) GetStorageName() string {
if m != nil {
......@@ -83,22 +111,44 @@ func (m *Repository) GetGlProjectPath() string {
// Corresponds to Gitlab::Git::Commit
type GitCommit struct {
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Subject []byte `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
Body []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
Author *CommitAuthor `protobuf:"bytes,4,opt,name=author" json:"author,omitempty"`
Committer *CommitAuthor `protobuf:"bytes,5,opt,name=committer" json:"committer,omitempty"`
ParentIds []string `protobuf:"bytes,6,rep,name=parent_ids,json=parentIds" json:"parent_ids,omitempty"`
Author *CommitAuthor `protobuf:"bytes,4,opt,name=author,proto3" json:"author,omitempty"`
Committer *CommitAuthor `protobuf:"bytes,5,opt,name=committer,proto3" json:"committer,omitempty"`
ParentIds []string `protobuf:"bytes,6,rep,name=parent_ids,json=parentIds,proto3" json:"parent_ids,omitempty"`
// If body exceeds a certain threshold, it will be nullified,
// but its size will be set in body_size so we can know if
// a commit had a body in the first place.
BodySize int64 `protobuf:"varint,7,opt,name=body_size,json=bodySize" json:"body_size,omitempty"`
BodySize int64 `protobuf:"varint,7,opt,name=body_size,json=bodySize,proto3" json:"body_size,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GitCommit) Reset() { *m = GitCommit{} }
func (m *GitCommit) String() string { return proto.CompactTextString(m) }
func (*GitCommit) ProtoMessage() {}
func (*GitCommit) Descriptor() ([]byte, []int) {
return fileDescriptor_shared_7a2b49cc52ea76da, []int{1}
}
func (m *GitCommit) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GitCommit.Unmarshal(m, b)
}
func (m *GitCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GitCommit.Marshal(b, m, deterministic)
}
func (dst *GitCommit) XXX_Merge(src proto.Message) {
xxx_messageInfo_GitCommit.Merge(dst, src)
}
func (m *GitCommit) XXX_Size() int {
return xxx_messageInfo_GitCommit.Size(m)
}
func (m *GitCommit) XXX_DiscardUnknown() {
xxx_messageInfo_GitCommit.DiscardUnknown(m)
}
func (m *GitCommit) Reset() { *m = GitCommit{} }
func (m *GitCommit) String() string { return proto.CompactTextString(m) }
func (*GitCommit) ProtoMessage() {}
func (*GitCommit) Descriptor() ([]byte, []int) { return fileDescriptor13, []int{1} }
var xxx_messageInfo_GitCommit proto.InternalMessageInfo
func (m *GitCommit) GetId() string {
if m != nil {
......@@ -150,15 +200,37 @@ func (m *GitCommit) GetBodySize() int64 {
}
type CommitAuthor struct {
Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Email []byte `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
Date *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=date" json:"date,omitempty"`
Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Email []byte `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
Date *timestamp.Timestamp `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CommitAuthor) Reset() { *m = CommitAuthor{} }
func (m *CommitAuthor) String() string { return proto.CompactTextString(m) }
func (*CommitAuthor) ProtoMessage() {}
func (*CommitAuthor) Descriptor() ([]byte, []int) { return fileDescriptor13, []int{2} }
func (m *CommitAuthor) Reset() { *m = CommitAuthor{} }
func (m *CommitAuthor) String() string { return proto.CompactTextString(m) }
func (*CommitAuthor) ProtoMessage() {}
func (*CommitAuthor) Descriptor() ([]byte, []int) {
return fileDescriptor_shared_7a2b49cc52ea76da, []int{2}
}
func (m *CommitAuthor) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommitAuthor.Unmarshal(m, b)
}
func (m *CommitAuthor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommitAuthor.Marshal(b, m, deterministic)
}
func (dst *CommitAuthor) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommitAuthor.Merge(dst, src)
}
func (m *CommitAuthor) XXX_Size() int {
return xxx_messageInfo_CommitAuthor.Size(m)
}
func (m *CommitAuthor) XXX_DiscardUnknown() {
xxx_messageInfo_CommitAuthor.DiscardUnknown(m)
}
var xxx_messageInfo_CommitAuthor proto.InternalMessageInfo
func (m *CommitAuthor) GetName() []byte {
if m != nil {
......@@ -174,7 +246,7 @@ func (m *CommitAuthor) GetEmail() []byte {
return nil
}
func (m *CommitAuthor) GetDate() *google_protobuf.Timestamp {
func (m *CommitAuthor) GetDate() *timestamp.Timestamp {
if m != nil {
return m.Date
}
......@@ -182,13 +254,35 @@ func (m *CommitAuthor) GetDate() *google_protobuf.Timestamp {
}
type ExitStatus struct {
Value int32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
Value int32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ExitStatus) Reset() { *m = ExitStatus{} }
func (m *ExitStatus) String() string { return proto.CompactTextString(m) }
func (*ExitStatus) ProtoMessage() {}
func (*ExitStatus) Descriptor() ([]byte, []int) { return fileDescriptor13, []int{3} }
func (m *ExitStatus) Reset() { *m = ExitStatus{} }
func (m *ExitStatus) String() string { return proto.CompactTextString(m) }
func (*ExitStatus) ProtoMessage() {}
func (*ExitStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_shared_7a2b49cc52ea76da, []int{3}
}
func (m *ExitStatus) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExitStatus.Unmarshal(m, b)
}
func (m *ExitStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExitStatus.Marshal(b, m, deterministic)
}
func (dst *ExitStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExitStatus.Merge(dst, src)
}
func (m *ExitStatus) XXX_Size() int {
return xxx_messageInfo_ExitStatus.Size(m)
}
func (m *ExitStatus) XXX_DiscardUnknown() {
xxx_messageInfo_ExitStatus.DiscardUnknown(m)
}
var xxx_messageInfo_ExitStatus proto.InternalMessageInfo
func (m *ExitStatus) GetValue() int32 {
if m != nil {
......@@ -199,14 +293,36 @@ func (m *ExitStatus) GetValue() int32 {
// Corresponds to Gitlab::Git::Branch
type Branch struct {
Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
TargetCommit *GitCommit `protobuf:"bytes,2,opt,name=target_commit,json=targetCommit" json:"target_commit,omitempty"`
Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
TargetCommit *GitCommit `protobuf:"bytes,2,opt,name=target_commit,json=targetCommit,proto3" json:"target_commit,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Branch) Reset() { *m = Branch{} }
func (m *Branch) String() string { return proto.CompactTextString(m) }
func (*Branch) ProtoMessage() {}
func (*Branch) Descriptor() ([]byte, []int) { return fileDescriptor13, []int{4} }
func (m *Branch) Reset() { *m = Branch{} }
func (m *Branch) String() string { return proto.CompactTextString(m) }
func (*Branch) ProtoMessage() {}
func (*Branch) Descriptor() ([]byte, []int) {
return fileDescriptor_shared_7a2b49cc52ea76da, []int{4}
}
func (m *Branch) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Branch.Unmarshal(m, b)
}
func (m *Branch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Branch.Marshal(b, m, deterministic)
}
func (dst *Branch) XXX_Merge(src proto.Message) {
xxx_messageInfo_Branch.Merge(dst, src)
}
func (m *Branch) XXX_Size() int {
return xxx_messageInfo_Branch.Size(m)
}
func (m *Branch) XXX_DiscardUnknown() {
xxx_messageInfo_Branch.DiscardUnknown(m)
}
var xxx_messageInfo_Branch proto.InternalMessageInfo
func (m *Branch) GetName() []byte {
if m != nil {
......@@ -224,20 +340,42 @@ func (m *Branch) GetTargetCommit() *GitCommit {
type Tag struct {
Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
TargetCommit *GitCommit `protobuf:"bytes,3,opt,name=target_commit,json=targetCommit" json:"target_commit,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
TargetCommit *GitCommit `protobuf:"bytes,3,opt,name=target_commit,json=targetCommit,proto3" json:"target_commit,omitempty"`
// If message exceeds a certain threshold, it will be nullified,
// but its size will be set in message_size so we can know if
// a tag had a message in the first place.
Message []byte `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
MessageSize int64 `protobuf:"varint,5,opt,name=message_size,json=messageSize" json:"message_size,omitempty"`
Tagger *CommitAuthor `protobuf:"bytes,6,opt,name=tagger" json:"tagger,omitempty"`
Message []byte `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
MessageSize int64 `protobuf:"varint,5,opt,name=message_size,json=messageSize,proto3" json:"message_size,omitempty"`
Tagger *CommitAuthor `protobuf:"bytes,6,opt,name=tagger,proto3" json:"tagger,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Tag) Reset() { *m = Tag{} }
func (m *Tag) String() string { return proto.CompactTextString(m) }
func (*Tag) ProtoMessage() {}
func (*Tag) Descriptor() ([]byte, []int) { return fileDescriptor13, []int{5} }
func (m *Tag) Reset() { *m = Tag{} }
func (m *Tag) String() string { return proto.CompactTextString(m) }
func (*Tag) ProtoMessage() {}
func (*Tag) Descriptor() ([]byte, []int) {
return fileDescriptor_shared_7a2b49cc52ea76da, []int{5}
}
func (m *Tag) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Tag.Unmarshal(m, b)
}
func (m *Tag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Tag.Marshal(b, m, deterministic)
}
func (dst *Tag) XXX_Merge(src proto.Message) {
xxx_messageInfo_Tag.Merge(dst, src)
}
func (m *Tag) XXX_Size() int {
return xxx_messageInfo_Tag.Size(m)
}
func (m *Tag) XXX_DiscardUnknown() {
xxx_messageInfo_Tag.DiscardUnknown(m)
}
var xxx_messageInfo_Tag proto.InternalMessageInfo
func (m *Tag) GetName() []byte {
if m != nil {
......@@ -282,16 +420,38 @@ func (m *Tag) GetTagger() *CommitAuthor {
}
type User struct {
GlId string `protobuf:"bytes,1,opt,name=gl_id,json=glId" json:"gl_id,omitempty"`
Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Email []byte `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
GlUsername string `protobuf:"bytes,4,opt,name=gl_username,json=glUsername" json:"gl_username,omitempty"`
GlId string `protobuf:"bytes,1,opt,name=gl_id,json=glId,proto3" json:"gl_id,omitempty"`
Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Email []byte `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
GlUsername string `protobuf:"bytes,4,opt,name=gl_username,json=glUsername,proto3" json:"gl_username,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *User) Reset() { *m = User{} }
func (m *User) String() string { return proto.CompactTextString(m) }
func (*User) ProtoMessage() {}
func (*User) Descriptor() ([]byte, []int) {
return fileDescriptor_shared_7a2b49cc52ea76da, []int{6}
}
func (m *User) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_User.Unmarshal(m, b)
}
func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_User.Marshal(b, m, deterministic)
}
func (dst *User) XXX_Merge(src proto.Message) {
xxx_messageInfo_User.Merge(dst, src)
}
func (m *User) XXX_Size() int {
return xxx_messageInfo_User.Size(m)
}
func (m *User) XXX_DiscardUnknown() {
xxx_messageInfo_User.DiscardUnknown(m)
}
func (m *User) Reset() { *m = User{} }
func (m *User) String() string { return proto.CompactTextString(m) }
func (*User) ProtoMessage() {}
func (*User) Descriptor() ([]byte, []int) { return fileDescriptor13, []int{6} }
var xxx_messageInfo_User proto.InternalMessageInfo
func (m *User) GetGlId() string {
if m != nil {
......@@ -331,9 +491,9 @@ func init() {
proto.RegisterType((*User)(nil), "gitaly.User")
}
func init() { proto.RegisterFile("shared.proto", fileDescriptor13) }
func init() { proto.RegisterFile("shared.proto", fileDescriptor_shared_7a2b49cc52ea76da) }
var fileDescriptor13 = []byte{
var fileDescriptor_shared_7a2b49cc52ea76da = []byte{
// 603 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x51, 0x6f, 0xd3, 0x3c,
0x14, 0x55, 0xd2, 0xb4, 0x6b, 0x6f, 0xb3, 0xef, 0x1b, 0x66, 0x0f, 0xd1, 0xd0, 0xb4, 0x12, 0x24,
......
......@@ -17,18 +17,46 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type InfoRefsRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
// Parameters to use with git -c (key=value pairs)
GitConfigOptions []string `protobuf:"bytes,2,rep,name=git_config_options,json=gitConfigOptions" json:"git_config_options,omitempty"`
GitConfigOptions []string `protobuf:"bytes,2,rep,name=git_config_options,json=gitConfigOptions,proto3" json:"git_config_options,omitempty"`
// Git protocol version
GitProtocol string `protobuf:"bytes,3,opt,name=git_protocol,json=gitProtocol" json:"git_protocol,omitempty"`
GitProtocol string `protobuf:"bytes,3,opt,name=git_protocol,json=gitProtocol,proto3" json:"git_protocol,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InfoRefsRequest) Reset() { *m = InfoRefsRequest{} }
func (m *InfoRefsRequest) String() string { return proto.CompactTextString(m) }
func (*InfoRefsRequest) ProtoMessage() {}
func (*InfoRefsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_smarthttp_135d2a4f87c9c40a, []int{0}
}
func (m *InfoRefsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InfoRefsRequest.Unmarshal(m, b)
}
func (m *InfoRefsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InfoRefsRequest.Marshal(b, m, deterministic)
}
func (dst *InfoRefsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_InfoRefsRequest.Merge(dst, src)
}
func (m *InfoRefsRequest) XXX_Size() int {
return xxx_messageInfo_InfoRefsRequest.Size(m)
}
func (m *InfoRefsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_InfoRefsRequest.DiscardUnknown(m)
}
func (m *InfoRefsRequest) Reset() { *m = InfoRefsRequest{} }
func (m *InfoRefsRequest) String() string { return proto.CompactTextString(m) }
func (*InfoRefsRequest) ProtoMessage() {}
func (*InfoRefsRequest) Descriptor() ([]byte, []int) { return fileDescriptor14, []int{0} }
var xxx_messageInfo_InfoRefsRequest proto.InternalMessageInfo
func (m *InfoRefsRequest) GetRepository() *Repository {
if m != nil {
......@@ -52,13 +80,35 @@ func (m *InfoRefsRequest) GetGitProtocol() string {
}
type InfoRefsResponse struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InfoRefsResponse) Reset() { *m = InfoRefsResponse{} }
func (m *InfoRefsResponse) String() string { return proto.CompactTextString(m) }
func (*InfoRefsResponse) ProtoMessage() {}
func (*InfoRefsResponse) Descriptor() ([]byte, []int) { return fileDescriptor14, []int{1} }
func (m *InfoRefsResponse) Reset() { *m = InfoRefsResponse{} }
func (m *InfoRefsResponse) String() string { return proto.CompactTextString(m) }
func (*InfoRefsResponse) ProtoMessage() {}
func (*InfoRefsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_smarthttp_135d2a4f87c9c40a, []int{1}
}
func (m *InfoRefsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InfoRefsResponse.Unmarshal(m, b)
}
func (m *InfoRefsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InfoRefsResponse.Marshal(b, m, deterministic)
}
func (dst *InfoRefsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_InfoRefsResponse.Merge(dst, src)
}
func (m *InfoRefsResponse) XXX_Size() int {
return xxx_messageInfo_InfoRefsResponse.Size(m)
}
func (m *InfoRefsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_InfoRefsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_InfoRefsResponse proto.InternalMessageInfo
func (m *InfoRefsResponse) GetData() []byte {
if m != nil {
......@@ -69,19 +119,41 @@ func (m *InfoRefsResponse) GetData() []byte {
type PostUploadPackRequest struct {
// repository should only be present in the first message of the stream
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
// Raw data to be copied to stdin of 'git upload-pack'
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
// Parameters to use with git -c (key=value pairs)
GitConfigOptions []string `protobuf:"bytes,3,rep,name=git_config_options,json=gitConfigOptions" json:"git_config_options,omitempty"`
GitConfigOptions []string `protobuf:"bytes,3,rep,name=git_config_options,json=gitConfigOptions,proto3" json:"git_config_options,omitempty"`
// Git protocol version
GitProtocol string `protobuf:"bytes,4,opt,name=git_protocol,json=gitProtocol" json:"git_protocol,omitempty"`
GitProtocol string `protobuf:"bytes,4,opt,name=git_protocol,json=gitProtocol,proto3" json:"git_protocol,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PostUploadPackRequest) Reset() { *m = PostUploadPackRequest{} }
func (m *PostUploadPackRequest) String() string { return proto.CompactTextString(m) }
func (*PostUploadPackRequest) ProtoMessage() {}
func (*PostUploadPackRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_smarthttp_135d2a4f87c9c40a, []int{2}
}
func (m *PostUploadPackRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PostUploadPackRequest.Unmarshal(m, b)
}
func (m *PostUploadPackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PostUploadPackRequest.Marshal(b, m, deterministic)
}
func (dst *PostUploadPackRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PostUploadPackRequest.Merge(dst, src)
}
func (m *PostUploadPackRequest) XXX_Size() int {
return xxx_messageInfo_PostUploadPackRequest.Size(m)
}
func (m *PostUploadPackRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PostUploadPackRequest.DiscardUnknown(m)
}
func (m *PostUploadPackRequest) Reset() { *m = PostUploadPackRequest{} }
func (m *PostUploadPackRequest) String() string { return proto.CompactTextString(m) }
func (*PostUploadPackRequest) ProtoMessage() {}
func (*PostUploadPackRequest) Descriptor() ([]byte, []int) { return fileDescriptor14, []int{2} }
var xxx_messageInfo_PostUploadPackRequest proto.InternalMessageInfo
func (m *PostUploadPackRequest) GetRepository() *Repository {
if m != nil {
......@@ -113,13 +185,35 @@ func (m *PostUploadPackRequest) GetGitProtocol() string {
type PostUploadPackResponse struct {
// Raw data from stdout of 'git upload-pack'
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PostUploadPackResponse) Reset() { *m = PostUploadPackResponse{} }
func (m *PostUploadPackResponse) String() string { return proto.CompactTextString(m) }
func (*PostUploadPackResponse) ProtoMessage() {}
func (*PostUploadPackResponse) Descriptor() ([]byte, []int) { return fileDescriptor14, []int{3} }
func (m *PostUploadPackResponse) Reset() { *m = PostUploadPackResponse{} }
func (m *PostUploadPackResponse) String() string { return proto.CompactTextString(m) }
func (*PostUploadPackResponse) ProtoMessage() {}
func (*PostUploadPackResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_smarthttp_135d2a4f87c9c40a, []int{3}
}
func (m *PostUploadPackResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PostUploadPackResponse.Unmarshal(m, b)
}
func (m *PostUploadPackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PostUploadPackResponse.Marshal(b, m, deterministic)
}
func (dst *PostUploadPackResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_PostUploadPackResponse.Merge(dst, src)
}
func (m *PostUploadPackResponse) XXX_Size() int {
return xxx_messageInfo_PostUploadPackResponse.Size(m)
}
func (m *PostUploadPackResponse) XXX_DiscardUnknown() {
xxx_messageInfo_PostUploadPackResponse.DiscardUnknown(m)
}
var xxx_messageInfo_PostUploadPackResponse proto.InternalMessageInfo
func (m *PostUploadPackResponse) GetData() []byte {
if m != nil {
......@@ -130,24 +224,46 @@ func (m *PostUploadPackResponse) GetData() []byte {
type PostReceivePackRequest struct {
// repository should only be present in the first message of the stream
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
// Raw data to be copied to stdin of 'git receive-pack'
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
// gl_id, gl_repository, and gl_username become env variables, used by the Git {pre,post}-receive
// hooks. They should only be present in the first message of the stream.
GlId string `protobuf:"bytes,3,opt,name=gl_id,json=glId" json:"gl_id,omitempty"`
GlRepository string `protobuf:"bytes,4,opt,name=gl_repository,json=glRepository" json:"gl_repository,omitempty"`
GlUsername string `protobuf:"bytes,5,opt,name=gl_username,json=glUsername" json:"gl_username,omitempty"`
GlId string `protobuf:"bytes,3,opt,name=gl_id,json=glId,proto3" json:"gl_id,omitempty"`
GlRepository string `protobuf:"bytes,4,opt,name=gl_repository,json=glRepository,proto3" json:"gl_repository,omitempty"`
GlUsername string `protobuf:"bytes,5,opt,name=gl_username,json=glUsername,proto3" json:"gl_username,omitempty"`
// Git protocol version
GitProtocol string `protobuf:"bytes,6,opt,name=git_protocol,json=gitProtocol" json:"git_protocol,omitempty"`
GitProtocol string `protobuf:"bytes,6,opt,name=git_protocol,json=gitProtocol,proto3" json:"git_protocol,omitempty"`
// Parameters to use with git -c (key=value pairs)
GitConfigOptions []string `protobuf:"bytes,7,rep,name=git_config_options,json=gitConfigOptions" json:"git_config_options,omitempty"`
GitConfigOptions []string `protobuf:"bytes,7,rep,name=git_config_options,json=gitConfigOptions,proto3" json:"git_config_options,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PostReceivePackRequest) Reset() { *m = PostReceivePackRequest{} }
func (m *PostReceivePackRequest) String() string { return proto.CompactTextString(m) }
func (*PostReceivePackRequest) ProtoMessage() {}
func (*PostReceivePackRequest) Descriptor() ([]byte, []int) { return fileDescriptor14, []int{4} }
func (m *PostReceivePackRequest) Reset() { *m = PostReceivePackRequest{} }
func (m *PostReceivePackRequest) String() string { return proto.CompactTextString(m) }
func (*PostReceivePackRequest) ProtoMessage() {}
func (*PostReceivePackRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_smarthttp_135d2a4f87c9c40a, []int{4}
}
func (m *PostReceivePackRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PostReceivePackRequest.Unmarshal(m, b)
}
func (m *PostReceivePackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PostReceivePackRequest.Marshal(b, m, deterministic)
}
func (dst *PostReceivePackRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PostReceivePackRequest.Merge(dst, src)
}
func (m *PostReceivePackRequest) XXX_Size() int {
return xxx_messageInfo_PostReceivePackRequest.Size(m)
}
func (m *PostReceivePackRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PostReceivePackRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PostReceivePackRequest proto.InternalMessageInfo
func (m *PostReceivePackRequest) GetRepository() *Repository {
if m != nil {
......@@ -200,13 +316,35 @@ func (m *PostReceivePackRequest) GetGitConfigOptions() []string {
type PostReceivePackResponse struct {
// Raw data from stdout of 'git receive-pack'
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PostReceivePackResponse) Reset() { *m = PostReceivePackResponse{} }
func (m *PostReceivePackResponse) String() string { return proto.CompactTextString(m) }
func (*PostReceivePackResponse) ProtoMessage() {}
func (*PostReceivePackResponse) Descriptor() ([]byte, []int) { return fileDescriptor14, []int{5} }
func (m *PostReceivePackResponse) Reset() { *m = PostReceivePackResponse{} }
func (m *PostReceivePackResponse) String() string { return proto.CompactTextString(m) }
func (*PostReceivePackResponse) ProtoMessage() {}
func (*PostReceivePackResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_smarthttp_135d2a4f87c9c40a, []int{5}
}
func (m *PostReceivePackResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PostReceivePackResponse.Unmarshal(m, b)
}
func (m *PostReceivePackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PostReceivePackResponse.Marshal(b, m, deterministic)
}
func (dst *PostReceivePackResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_PostReceivePackResponse.Merge(dst, src)
}
func (m *PostReceivePackResponse) XXX_Size() int {
return xxx_messageInfo_PostReceivePackResponse.Size(m)
}
func (m *PostReceivePackResponse) XXX_DiscardUnknown() {
xxx_messageInfo_PostReceivePackResponse.DiscardUnknown(m)
}
var xxx_messageInfo_PostReceivePackResponse proto.InternalMessageInfo
func (m *PostReceivePackResponse) GetData() []byte {
if m != nil {
......@@ -232,8 +370,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for SmartHTTPService service
// SmartHTTPServiceClient is the client API for SmartHTTPService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type SmartHTTPServiceClient interface {
// The response body for GET /info/refs?service=git-upload-pack
InfoRefsUploadPack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTPService_InfoRefsUploadPackClient, error)
......@@ -254,7 +393,7 @@ func NewSmartHTTPServiceClient(cc *grpc.ClientConn) SmartHTTPServiceClient {
}
func (c *smartHTTPServiceClient) InfoRefsUploadPack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTPService_InfoRefsUploadPackClient, error) {
stream, err := grpc.NewClientStream(ctx, &_SmartHTTPService_serviceDesc.Streams[0], c.cc, "/gitaly.SmartHTTPService/InfoRefsUploadPack", opts...)
stream, err := c.cc.NewStream(ctx, &_SmartHTTPService_serviceDesc.Streams[0], "/gitaly.SmartHTTPService/InfoRefsUploadPack", opts...)
if err != nil {
return nil, err
}
......@@ -286,7 +425,7 @@ func (x *smartHTTPServiceInfoRefsUploadPackClient) Recv() (*InfoRefsResponse, er
}
func (c *smartHTTPServiceClient) InfoRefsReceivePack(ctx context.Context, in *InfoRefsRequest, opts ...grpc.CallOption) (SmartHTTPService_InfoRefsReceivePackClient, error) {
stream, err := grpc.NewClientStream(ctx, &_SmartHTTPService_serviceDesc.Streams[1], c.cc, "/gitaly.SmartHTTPService/InfoRefsReceivePack", opts...)
stream, err := c.cc.NewStream(ctx, &_SmartHTTPService_serviceDesc.Streams[1], "/gitaly.SmartHTTPService/InfoRefsReceivePack", opts...)
if err != nil {
return nil, err
}
......@@ -318,7 +457,7 @@ func (x *smartHTTPServiceInfoRefsReceivePackClient) Recv() (*InfoRefsResponse, e
}
func (c *smartHTTPServiceClient) PostUploadPack(ctx context.Context, opts ...grpc.CallOption) (SmartHTTPService_PostUploadPackClient, error) {
stream, err := grpc.NewClientStream(ctx, &_SmartHTTPService_serviceDesc.Streams[2], c.cc, "/gitaly.SmartHTTPService/PostUploadPack", opts...)
stream, err := c.cc.NewStream(ctx, &_SmartHTTPService_serviceDesc.Streams[2], "/gitaly.SmartHTTPService/PostUploadPack", opts...)
if err != nil {
return nil, err
}
......@@ -349,7 +488,7 @@ func (x *smartHTTPServicePostUploadPackClient) Recv() (*PostUploadPackResponse,
}
func (c *smartHTTPServiceClient) PostReceivePack(ctx context.Context, opts ...grpc.CallOption) (SmartHTTPService_PostReceivePackClient, error) {
stream, err := grpc.NewClientStream(ctx, &_SmartHTTPService_serviceDesc.Streams[3], c.cc, "/gitaly.SmartHTTPService/PostReceivePack", opts...)
stream, err := c.cc.NewStream(ctx, &_SmartHTTPService_serviceDesc.Streams[3], "/gitaly.SmartHTTPService/PostReceivePack", opts...)
if err != nil {
return nil, err
}
......@@ -379,8 +518,7 @@ func (x *smartHTTPServicePostReceivePackClient) Recv() (*PostReceivePackResponse
return m, nil
}
// Server API for SmartHTTPService service
// SmartHTTPServiceServer is the server API for SmartHTTPService service.
type SmartHTTPServiceServer interface {
// The response body for GET /info/refs?service=git-upload-pack
InfoRefsUploadPack(*InfoRefsRequest, SmartHTTPService_InfoRefsUploadPackServer) error
......@@ -521,9 +659,9 @@ var _SmartHTTPService_serviceDesc = grpc.ServiceDesc{
Metadata: "smarthttp.proto",
}
func init() { proto.RegisterFile("smarthttp.proto", fileDescriptor14) }
func init() { proto.RegisterFile("smarthttp.proto", fileDescriptor_smarthttp_135d2a4f87c9c40a) }
var fileDescriptor14 = []byte{
var fileDescriptor_smarthttp_135d2a4f87c9c40a = []byte{
// 423 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x53, 0xd1, 0x8a, 0xd3, 0x40,
0x14, 0x75, 0xd2, 0x6e, 0x65, 0x6f, 0xa3, 0x2d, 0x77, 0xd1, 0x0d, 0x01, 0xdd, 0x1a, 0x41, 0xf2,
......
......@@ -17,21 +17,49 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type SSHUploadPackRequest struct {
// 'repository' must be present in the first message.
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
// A chunk of raw data to be copied to 'git upload-pack' standard input
Stdin []byte `protobuf:"bytes,2,opt,name=stdin,proto3" json:"stdin,omitempty"`
// Parameters to use with git -c (key=value pairs)
GitConfigOptions []string `protobuf:"bytes,4,rep,name=git_config_options,json=gitConfigOptions" json:"git_config_options,omitempty"`
GitConfigOptions []string `protobuf:"bytes,4,rep,name=git_config_options,json=gitConfigOptions,proto3" json:"git_config_options,omitempty"`
// Git protocol version
GitProtocol string `protobuf:"bytes,5,opt,name=git_protocol,json=gitProtocol" json:"git_protocol,omitempty"`
GitProtocol string `protobuf:"bytes,5,opt,name=git_protocol,json=gitProtocol,proto3" json:"git_protocol,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SSHUploadPackRequest) Reset() { *m = SSHUploadPackRequest{} }
func (m *SSHUploadPackRequest) String() string { return proto.CompactTextString(m) }
func (*SSHUploadPackRequest) ProtoMessage() {}
func (*SSHUploadPackRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ssh_22394c3f711a1084, []int{0}
}
func (m *SSHUploadPackRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SSHUploadPackRequest.Unmarshal(m, b)
}
func (m *SSHUploadPackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SSHUploadPackRequest.Marshal(b, m, deterministic)
}
func (dst *SSHUploadPackRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SSHUploadPackRequest.Merge(dst, src)
}
func (m *SSHUploadPackRequest) XXX_Size() int {
return xxx_messageInfo_SSHUploadPackRequest.Size(m)
}
func (m *SSHUploadPackRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SSHUploadPackRequest.DiscardUnknown(m)
}
func (m *SSHUploadPackRequest) Reset() { *m = SSHUploadPackRequest{} }
func (m *SSHUploadPackRequest) String() string { return proto.CompactTextString(m) }
func (*SSHUploadPackRequest) ProtoMessage() {}
func (*SSHUploadPackRequest) Descriptor() ([]byte, []int) { return fileDescriptor15, []int{0} }
var xxx_messageInfo_SSHUploadPackRequest proto.InternalMessageInfo
func (m *SSHUploadPackRequest) GetRepository() *Repository {
if m != nil {
......@@ -68,13 +96,35 @@ type SSHUploadPackResponse struct {
Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"`
// This field may be nil. This is intentional: only when the remote
// command has finished can we return its exit status.
ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus" json:"exit_status,omitempty"`
ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SSHUploadPackResponse) Reset() { *m = SSHUploadPackResponse{} }
func (m *SSHUploadPackResponse) String() string { return proto.CompactTextString(m) }
func (*SSHUploadPackResponse) ProtoMessage() {}
func (*SSHUploadPackResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ssh_22394c3f711a1084, []int{1}
}
func (m *SSHUploadPackResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SSHUploadPackResponse.Unmarshal(m, b)
}
func (m *SSHUploadPackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SSHUploadPackResponse.Marshal(b, m, deterministic)
}
func (dst *SSHUploadPackResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SSHUploadPackResponse.Merge(dst, src)
}
func (m *SSHUploadPackResponse) XXX_Size() int {
return xxx_messageInfo_SSHUploadPackResponse.Size(m)
}
func (m *SSHUploadPackResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SSHUploadPackResponse.DiscardUnknown(m)
}
func (m *SSHUploadPackResponse) Reset() { *m = SSHUploadPackResponse{} }
func (m *SSHUploadPackResponse) String() string { return proto.CompactTextString(m) }
func (*SSHUploadPackResponse) ProtoMessage() {}
func (*SSHUploadPackResponse) Descriptor() ([]byte, []int) { return fileDescriptor15, []int{1} }
var xxx_messageInfo_SSHUploadPackResponse proto.InternalMessageInfo
func (m *SSHUploadPackResponse) GetStdout() []byte {
if m != nil {
......@@ -99,24 +149,46 @@ func (m *SSHUploadPackResponse) GetExitStatus() *ExitStatus {
type SSHReceivePackRequest struct {
// 'repository' must be present in the first message.
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
// A chunk of raw data to be copied to 'git upload-pack' standard input
Stdin []byte `protobuf:"bytes,2,opt,name=stdin,proto3" json:"stdin,omitempty"`
// Contents of GL_ID, GL_REPOSITORY, and GL_USERNAME environment variables
// for 'git receive-pack'
GlId string `protobuf:"bytes,3,opt,name=gl_id,json=glId" json:"gl_id,omitempty"`
GlRepository string `protobuf:"bytes,4,opt,name=gl_repository,json=glRepository" json:"gl_repository,omitempty"`
GlUsername string `protobuf:"bytes,5,opt,name=gl_username,json=glUsername" json:"gl_username,omitempty"`
GlId string `protobuf:"bytes,3,opt,name=gl_id,json=glId,proto3" json:"gl_id,omitempty"`
GlRepository string `protobuf:"bytes,4,opt,name=gl_repository,json=glRepository,proto3" json:"gl_repository,omitempty"`
GlUsername string `protobuf:"bytes,5,opt,name=gl_username,json=glUsername,proto3" json:"gl_username,omitempty"`
// Git protocol version
GitProtocol string `protobuf:"bytes,6,opt,name=git_protocol,json=gitProtocol" json:"git_protocol,omitempty"`
GitProtocol string `protobuf:"bytes,6,opt,name=git_protocol,json=gitProtocol,proto3" json:"git_protocol,omitempty"`
// Parameters to use with git -c (key=value pairs)
GitConfigOptions []string `protobuf:"bytes,7,rep,name=git_config_options,json=gitConfigOptions" json:"git_config_options,omitempty"`
GitConfigOptions []string `protobuf:"bytes,7,rep,name=git_config_options,json=gitConfigOptions,proto3" json:"git_config_options,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SSHReceivePackRequest) Reset() { *m = SSHReceivePackRequest{} }
func (m *SSHReceivePackRequest) String() string { return proto.CompactTextString(m) }
func (*SSHReceivePackRequest) ProtoMessage() {}
func (*SSHReceivePackRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ssh_22394c3f711a1084, []int{2}
}
func (m *SSHReceivePackRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SSHReceivePackRequest.Unmarshal(m, b)
}
func (m *SSHReceivePackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SSHReceivePackRequest.Marshal(b, m, deterministic)
}
func (dst *SSHReceivePackRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SSHReceivePackRequest.Merge(dst, src)
}
func (m *SSHReceivePackRequest) XXX_Size() int {
return xxx_messageInfo_SSHReceivePackRequest.Size(m)
}
func (m *SSHReceivePackRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SSHReceivePackRequest.DiscardUnknown(m)
}
func (m *SSHReceivePackRequest) Reset() { *m = SSHReceivePackRequest{} }
func (m *SSHReceivePackRequest) String() string { return proto.CompactTextString(m) }
func (*SSHReceivePackRequest) ProtoMessage() {}
func (*SSHReceivePackRequest) Descriptor() ([]byte, []int) { return fileDescriptor15, []int{2} }
var xxx_messageInfo_SSHReceivePackRequest proto.InternalMessageInfo
func (m *SSHReceivePackRequest) GetRepository() *Repository {
if m != nil {
......@@ -174,13 +246,35 @@ type SSHReceivePackResponse struct {
Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"`
// This field may be nil. This is intentional: only when the remote
// command has finished can we return its exit status.
ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus" json:"exit_status,omitempty"`
ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SSHReceivePackResponse) Reset() { *m = SSHReceivePackResponse{} }
func (m *SSHReceivePackResponse) String() string { return proto.CompactTextString(m) }
func (*SSHReceivePackResponse) ProtoMessage() {}
func (*SSHReceivePackResponse) Descriptor() ([]byte, []int) { return fileDescriptor15, []int{3} }
func (m *SSHReceivePackResponse) Reset() { *m = SSHReceivePackResponse{} }
func (m *SSHReceivePackResponse) String() string { return proto.CompactTextString(m) }
func (*SSHReceivePackResponse) ProtoMessage() {}
func (*SSHReceivePackResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ssh_22394c3f711a1084, []int{3}
}
func (m *SSHReceivePackResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SSHReceivePackResponse.Unmarshal(m, b)
}
func (m *SSHReceivePackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SSHReceivePackResponse.Marshal(b, m, deterministic)
}
func (dst *SSHReceivePackResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SSHReceivePackResponse.Merge(dst, src)
}
func (m *SSHReceivePackResponse) XXX_Size() int {
return xxx_messageInfo_SSHReceivePackResponse.Size(m)
}
func (m *SSHReceivePackResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SSHReceivePackResponse.DiscardUnknown(m)
}
var xxx_messageInfo_SSHReceivePackResponse proto.InternalMessageInfo
func (m *SSHReceivePackResponse) GetStdout() []byte {
if m != nil {
......@@ -205,15 +299,37 @@ func (m *SSHReceivePackResponse) GetExitStatus() *ExitStatus {
type SSHUploadArchiveRequest struct {
// 'repository' must be present in the first message.
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
// A chunk of raw data to be copied to 'git upload-archive' standard input
Stdin []byte `protobuf:"bytes,2,opt,name=stdin,proto3" json:"stdin,omitempty"`
Stdin []byte `protobuf:"bytes,2,opt,name=stdin,proto3" json:"stdin,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SSHUploadArchiveRequest) Reset() { *m = SSHUploadArchiveRequest{} }
func (m *SSHUploadArchiveRequest) String() string { return proto.CompactTextString(m) }
func (*SSHUploadArchiveRequest) ProtoMessage() {}
func (*SSHUploadArchiveRequest) Descriptor() ([]byte, []int) { return fileDescriptor15, []int{4} }
func (m *SSHUploadArchiveRequest) Reset() { *m = SSHUploadArchiveRequest{} }
func (m *SSHUploadArchiveRequest) String() string { return proto.CompactTextString(m) }
func (*SSHUploadArchiveRequest) ProtoMessage() {}
func (*SSHUploadArchiveRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ssh_22394c3f711a1084, []int{4}
}
func (m *SSHUploadArchiveRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SSHUploadArchiveRequest.Unmarshal(m, b)
}
func (m *SSHUploadArchiveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SSHUploadArchiveRequest.Marshal(b, m, deterministic)
}
func (dst *SSHUploadArchiveRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SSHUploadArchiveRequest.Merge(dst, src)
}
func (m *SSHUploadArchiveRequest) XXX_Size() int {
return xxx_messageInfo_SSHUploadArchiveRequest.Size(m)
}
func (m *SSHUploadArchiveRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SSHUploadArchiveRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SSHUploadArchiveRequest proto.InternalMessageInfo
func (m *SSHUploadArchiveRequest) GetRepository() *Repository {
if m != nil {
......@@ -235,13 +351,35 @@ type SSHUploadArchiveResponse struct {
// A chunk of raw data from 'git upload-archive' standard error
Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"`
// This value will only be set on the last message
ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus" json:"exit_status,omitempty"`
ExitStatus *ExitStatus `protobuf:"bytes,3,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SSHUploadArchiveResponse) Reset() { *m = SSHUploadArchiveResponse{} }
func (m *SSHUploadArchiveResponse) String() string { return proto.CompactTextString(m) }
func (*SSHUploadArchiveResponse) ProtoMessage() {}
func (*SSHUploadArchiveResponse) Descriptor() ([]byte, []int) { return fileDescriptor15, []int{5} }
func (m *SSHUploadArchiveResponse) Reset() { *m = SSHUploadArchiveResponse{} }
func (m *SSHUploadArchiveResponse) String() string { return proto.CompactTextString(m) }
func (*SSHUploadArchiveResponse) ProtoMessage() {}
func (*SSHUploadArchiveResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ssh_22394c3f711a1084, []int{5}
}
func (m *SSHUploadArchiveResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SSHUploadArchiveResponse.Unmarshal(m, b)
}
func (m *SSHUploadArchiveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SSHUploadArchiveResponse.Marshal(b, m, deterministic)
}
func (dst *SSHUploadArchiveResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SSHUploadArchiveResponse.Merge(dst, src)
}
func (m *SSHUploadArchiveResponse) XXX_Size() int {
return xxx_messageInfo_SSHUploadArchiveResponse.Size(m)
}
func (m *SSHUploadArchiveResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SSHUploadArchiveResponse.DiscardUnknown(m)
}
var xxx_messageInfo_SSHUploadArchiveResponse proto.InternalMessageInfo
func (m *SSHUploadArchiveResponse) GetStdout() []byte {
if m != nil {
......@@ -281,8 +419,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for SSHService service
// SSHServiceClient is the client API for SSHService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type SSHServiceClient interface {
// To forward 'git upload-pack' to Gitaly for SSH sessions
SSHUploadPack(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHUploadPackClient, error)
......@@ -301,7 +440,7 @@ func NewSSHServiceClient(cc *grpc.ClientConn) SSHServiceClient {
}
func (c *sSHServiceClient) SSHUploadPack(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHUploadPackClient, error) {
stream, err := grpc.NewClientStream(ctx, &_SSHService_serviceDesc.Streams[0], c.cc, "/gitaly.SSHService/SSHUploadPack", opts...)
stream, err := c.cc.NewStream(ctx, &_SSHService_serviceDesc.Streams[0], "/gitaly.SSHService/SSHUploadPack", opts...)
if err != nil {
return nil, err
}
......@@ -332,7 +471,7 @@ func (x *sSHServiceSSHUploadPackClient) Recv() (*SSHUploadPackResponse, error) {
}
func (c *sSHServiceClient) SSHReceivePack(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHReceivePackClient, error) {
stream, err := grpc.NewClientStream(ctx, &_SSHService_serviceDesc.Streams[1], c.cc, "/gitaly.SSHService/SSHReceivePack", opts...)
stream, err := c.cc.NewStream(ctx, &_SSHService_serviceDesc.Streams[1], "/gitaly.SSHService/SSHReceivePack", opts...)
if err != nil {
return nil, err
}
......@@ -363,7 +502,7 @@ func (x *sSHServiceSSHReceivePackClient) Recv() (*SSHReceivePackResponse, error)
}
func (c *sSHServiceClient) SSHUploadArchive(ctx context.Context, opts ...grpc.CallOption) (SSHService_SSHUploadArchiveClient, error) {
stream, err := grpc.NewClientStream(ctx, &_SSHService_serviceDesc.Streams[2], c.cc, "/gitaly.SSHService/SSHUploadArchive", opts...)
stream, err := c.cc.NewStream(ctx, &_SSHService_serviceDesc.Streams[2], "/gitaly.SSHService/SSHUploadArchive", opts...)
if err != nil {
return nil, err
}
......@@ -393,8 +532,7 @@ func (x *sSHServiceSSHUploadArchiveClient) Recv() (*SSHUploadArchiveResponse, er
return m, nil
}
// Server API for SSHService service
// SSHServiceServer is the server API for SSHService service.
type SSHServiceServer interface {
// To forward 'git upload-pack' to Gitaly for SSH sessions
SSHUploadPack(SSHService_SSHUploadPackServer) error
......@@ -513,9 +651,9 @@ var _SSHService_serviceDesc = grpc.ServiceDesc{
Metadata: "ssh.proto",
}
func init() { proto.RegisterFile("ssh.proto", fileDescriptor15) }
func init() { proto.RegisterFile("ssh.proto", fileDescriptor_ssh_22394c3f711a1084) }
var fileDescriptor15 = []byte{
var fileDescriptor_ssh_22394c3f711a1084 = []byte{
// 452 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x53, 0xc1, 0x6e, 0xd3, 0x40,
0x10, 0xc5, 0x89, 0x13, 0xc8, 0xc4, 0x45, 0xd1, 0xd2, 0x16, 0x2b, 0x02, 0x6a, 0xcc, 0xc5, 0x07,
......
......@@ -17,15 +17,43 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type ListDirectoriesRequest struct {
StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName" json:"storage_name,omitempty"`
Depth uint32 `protobuf:"varint,2,opt,name=depth" json:"depth,omitempty"`
StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"`
Depth uint32 `protobuf:"varint,2,opt,name=depth,proto3" json:"depth,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListDirectoriesRequest) Reset() { *m = ListDirectoriesRequest{} }
func (m *ListDirectoriesRequest) String() string { return proto.CompactTextString(m) }
func (*ListDirectoriesRequest) ProtoMessage() {}
func (*ListDirectoriesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_storage_40b92399a791179d, []int{0}
}
func (m *ListDirectoriesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListDirectoriesRequest.Unmarshal(m, b)
}
func (m *ListDirectoriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListDirectoriesRequest.Marshal(b, m, deterministic)
}
func (dst *ListDirectoriesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListDirectoriesRequest.Merge(dst, src)
}
func (m *ListDirectoriesRequest) XXX_Size() int {
return xxx_messageInfo_ListDirectoriesRequest.Size(m)
}
func (m *ListDirectoriesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListDirectoriesRequest.DiscardUnknown(m)
}
func (m *ListDirectoriesRequest) Reset() { *m = ListDirectoriesRequest{} }
func (m *ListDirectoriesRequest) String() string { return proto.CompactTextString(m) }
func (*ListDirectoriesRequest) ProtoMessage() {}
func (*ListDirectoriesRequest) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{0} }
var xxx_messageInfo_ListDirectoriesRequest proto.InternalMessageInfo
func (m *ListDirectoriesRequest) GetStorageName() string {
if m != nil {
......@@ -42,13 +70,35 @@ func (m *ListDirectoriesRequest) GetDepth() uint32 {
}
type ListDirectoriesResponse struct {
Paths []string `protobuf:"bytes,1,rep,name=paths" json:"paths,omitempty"`
Paths []string `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListDirectoriesResponse) Reset() { *m = ListDirectoriesResponse{} }
func (m *ListDirectoriesResponse) String() string { return proto.CompactTextString(m) }
func (*ListDirectoriesResponse) ProtoMessage() {}
func (*ListDirectoriesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_storage_40b92399a791179d, []int{1}
}
func (m *ListDirectoriesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListDirectoriesResponse.Unmarshal(m, b)
}
func (m *ListDirectoriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListDirectoriesResponse.Marshal(b, m, deterministic)
}
func (dst *ListDirectoriesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListDirectoriesResponse.Merge(dst, src)
}
func (m *ListDirectoriesResponse) XXX_Size() int {
return xxx_messageInfo_ListDirectoriesResponse.Size(m)
}
func (m *ListDirectoriesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListDirectoriesResponse.DiscardUnknown(m)
}
func (m *ListDirectoriesResponse) Reset() { *m = ListDirectoriesResponse{} }
func (m *ListDirectoriesResponse) String() string { return proto.CompactTextString(m) }
func (*ListDirectoriesResponse) ProtoMessage() {}
func (*ListDirectoriesResponse) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{1} }
var xxx_messageInfo_ListDirectoriesResponse proto.InternalMessageInfo
func (m *ListDirectoriesResponse) GetPaths() []string {
if m != nil {
......@@ -58,13 +108,35 @@ func (m *ListDirectoriesResponse) GetPaths() []string {
}
type DeleteAllRepositoriesRequest struct {
StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName" json:"storage_name,omitempty"`
StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteAllRepositoriesRequest) Reset() { *m = DeleteAllRepositoriesRequest{} }
func (m *DeleteAllRepositoriesRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteAllRepositoriesRequest) ProtoMessage() {}
func (*DeleteAllRepositoriesRequest) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{2} }
func (m *DeleteAllRepositoriesRequest) Reset() { *m = DeleteAllRepositoriesRequest{} }
func (m *DeleteAllRepositoriesRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteAllRepositoriesRequest) ProtoMessage() {}
func (*DeleteAllRepositoriesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_storage_40b92399a791179d, []int{2}
}
func (m *DeleteAllRepositoriesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteAllRepositoriesRequest.Unmarshal(m, b)
}
func (m *DeleteAllRepositoriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteAllRepositoriesRequest.Marshal(b, m, deterministic)
}
func (dst *DeleteAllRepositoriesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteAllRepositoriesRequest.Merge(dst, src)
}
func (m *DeleteAllRepositoriesRequest) XXX_Size() int {
return xxx_messageInfo_DeleteAllRepositoriesRequest.Size(m)
}
func (m *DeleteAllRepositoriesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteAllRepositoriesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteAllRepositoriesRequest proto.InternalMessageInfo
func (m *DeleteAllRepositoriesRequest) GetStorageName() string {
if m != nil {
......@@ -74,12 +146,34 @@ func (m *DeleteAllRepositoriesRequest) GetStorageName() string {
}
type DeleteAllRepositoriesResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteAllRepositoriesResponse) Reset() { *m = DeleteAllRepositoriesResponse{} }
func (m *DeleteAllRepositoriesResponse) String() string { return proto.CompactTextString(m) }
func (*DeleteAllRepositoriesResponse) ProtoMessage() {}
func (*DeleteAllRepositoriesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_storage_40b92399a791179d, []int{3}
}
func (m *DeleteAllRepositoriesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteAllRepositoriesResponse.Unmarshal(m, b)
}
func (m *DeleteAllRepositoriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteAllRepositoriesResponse.Marshal(b, m, deterministic)
}
func (dst *DeleteAllRepositoriesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteAllRepositoriesResponse.Merge(dst, src)
}
func (m *DeleteAllRepositoriesResponse) XXX_Size() int {
return xxx_messageInfo_DeleteAllRepositoriesResponse.Size(m)
}
func (m *DeleteAllRepositoriesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteAllRepositoriesResponse.DiscardUnknown(m)
}
func (m *DeleteAllRepositoriesResponse) Reset() { *m = DeleteAllRepositoriesResponse{} }
func (m *DeleteAllRepositoriesResponse) String() string { return proto.CompactTextString(m) }
func (*DeleteAllRepositoriesResponse) ProtoMessage() {}
func (*DeleteAllRepositoriesResponse) Descriptor() ([]byte, []int) { return fileDescriptor16, []int{3} }
var xxx_messageInfo_DeleteAllRepositoriesResponse proto.InternalMessageInfo
func init() {
proto.RegisterType((*ListDirectoriesRequest)(nil), "gitaly.ListDirectoriesRequest")
......@@ -96,8 +190,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for StorageService service
// StorageServiceClient is the client API for StorageService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type StorageServiceClient interface {
ListDirectories(ctx context.Context, in *ListDirectoriesRequest, opts ...grpc.CallOption) (StorageService_ListDirectoriesClient, error)
DeleteAllRepositories(ctx context.Context, in *DeleteAllRepositoriesRequest, opts ...grpc.CallOption) (*DeleteAllRepositoriesResponse, error)
......@@ -112,7 +207,7 @@ func NewStorageServiceClient(cc *grpc.ClientConn) StorageServiceClient {
}
func (c *storageServiceClient) ListDirectories(ctx context.Context, in *ListDirectoriesRequest, opts ...grpc.CallOption) (StorageService_ListDirectoriesClient, error) {
stream, err := grpc.NewClientStream(ctx, &_StorageService_serviceDesc.Streams[0], c.cc, "/gitaly.StorageService/ListDirectories", opts...)
stream, err := c.cc.NewStream(ctx, &_StorageService_serviceDesc.Streams[0], "/gitaly.StorageService/ListDirectories", opts...)
if err != nil {
return nil, err
}
......@@ -145,15 +240,14 @@ func (x *storageServiceListDirectoriesClient) Recv() (*ListDirectoriesResponse,
func (c *storageServiceClient) DeleteAllRepositories(ctx context.Context, in *DeleteAllRepositoriesRequest, opts ...grpc.CallOption) (*DeleteAllRepositoriesResponse, error) {
out := new(DeleteAllRepositoriesResponse)
err := grpc.Invoke(ctx, "/gitaly.StorageService/DeleteAllRepositories", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/gitaly.StorageService/DeleteAllRepositories", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for StorageService service
// StorageServiceServer is the server API for StorageService service.
type StorageServiceServer interface {
ListDirectories(*ListDirectoriesRequest, StorageService_ListDirectoriesServer) error
DeleteAllRepositories(context.Context, *DeleteAllRepositoriesRequest) (*DeleteAllRepositoriesResponse, error)
......@@ -221,9 +315,9 @@ var _StorageService_serviceDesc = grpc.ServiceDesc{
Metadata: "storage.proto",
}
func init() { proto.RegisterFile("storage.proto", fileDescriptor16) }
func init() { proto.RegisterFile("storage.proto", fileDescriptor_storage_40b92399a791179d) }
var fileDescriptor16 = []byte{
var fileDescriptor_storage_40b92399a791179d = []byte{
// 238 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2d, 0x2e, 0xc9, 0x2f,
0x4a, 0x4c, 0x4f, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x4b, 0xcf, 0x2c, 0x49, 0xcc,
......
......@@ -17,18 +17,46 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type WikiCommitDetails struct {
Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Email []byte `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
Message []byte `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
UserId int32 `protobuf:"varint,4,opt,name=user_id,json=userId" json:"user_id,omitempty"`
UserName []byte `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Email []byte `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
Message []byte `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
UserId int32 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
UserName []byte `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WikiCommitDetails) Reset() { *m = WikiCommitDetails{} }
func (m *WikiCommitDetails) String() string { return proto.CompactTextString(m) }
func (*WikiCommitDetails) ProtoMessage() {}
func (*WikiCommitDetails) Descriptor() ([]byte, []int) {
return fileDescriptor_wiki_1d32eab65dda3828, []int{0}
}
func (m *WikiCommitDetails) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WikiCommitDetails.Unmarshal(m, b)
}
func (m *WikiCommitDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WikiCommitDetails.Marshal(b, m, deterministic)
}
func (dst *WikiCommitDetails) XXX_Merge(src proto.Message) {
xxx_messageInfo_WikiCommitDetails.Merge(dst, src)
}
func (m *WikiCommitDetails) XXX_Size() int {
return xxx_messageInfo_WikiCommitDetails.Size(m)
}
func (m *WikiCommitDetails) XXX_DiscardUnknown() {
xxx_messageInfo_WikiCommitDetails.DiscardUnknown(m)
}
func (m *WikiCommitDetails) Reset() { *m = WikiCommitDetails{} }
func (m *WikiCommitDetails) String() string { return proto.CompactTextString(m) }
func (*WikiCommitDetails) ProtoMessage() {}
func (*WikiCommitDetails) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{0} }
var xxx_messageInfo_WikiCommitDetails proto.InternalMessageInfo
func (m *WikiCommitDetails) GetName() []byte {
if m != nil {
......@@ -66,14 +94,36 @@ func (m *WikiCommitDetails) GetUserName() []byte {
}
type WikiPageVersion struct {
Commit *GitCommit `protobuf:"bytes,1,opt,name=commit" json:"commit,omitempty"`
Format string `protobuf:"bytes,2,opt,name=format" json:"format,omitempty"`
Commit *GitCommit `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"`
Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WikiPageVersion) Reset() { *m = WikiPageVersion{} }
func (m *WikiPageVersion) String() string { return proto.CompactTextString(m) }
func (*WikiPageVersion) ProtoMessage() {}
func (*WikiPageVersion) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{1} }
func (m *WikiPageVersion) Reset() { *m = WikiPageVersion{} }
func (m *WikiPageVersion) String() string { return proto.CompactTextString(m) }
func (*WikiPageVersion) ProtoMessage() {}
func (*WikiPageVersion) Descriptor() ([]byte, []int) {
return fileDescriptor_wiki_1d32eab65dda3828, []int{1}
}
func (m *WikiPageVersion) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WikiPageVersion.Unmarshal(m, b)
}
func (m *WikiPageVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WikiPageVersion.Marshal(b, m, deterministic)
}
func (dst *WikiPageVersion) XXX_Merge(src proto.Message) {
xxx_messageInfo_WikiPageVersion.Merge(dst, src)
}
func (m *WikiPageVersion) XXX_Size() int {
return xxx_messageInfo_WikiPageVersion.Size(m)
}
func (m *WikiPageVersion) XXX_DiscardUnknown() {
xxx_messageInfo_WikiPageVersion.DiscardUnknown(m)
}
var xxx_messageInfo_WikiPageVersion proto.InternalMessageInfo
func (m *WikiPageVersion) GetCommit() *GitCommit {
if m != nil {
......@@ -91,21 +141,43 @@ func (m *WikiPageVersion) GetFormat() string {
type WikiPage struct {
// These fields are only present in the first message of a WikiPage stream
Version *WikiPageVersion `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
Format string `protobuf:"bytes,2,opt,name=format" json:"format,omitempty"`
Version *WikiPageVersion `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"`
Title []byte `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
UrlPath string `protobuf:"bytes,4,opt,name=url_path,json=urlPath" json:"url_path,omitempty"`
UrlPath string `protobuf:"bytes,4,opt,name=url_path,json=urlPath,proto3" json:"url_path,omitempty"`
Path []byte `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"`
Name []byte `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
Historical bool `protobuf:"varint,7,opt,name=historical" json:"historical,omitempty"`
Historical bool `protobuf:"varint,7,opt,name=historical,proto3" json:"historical,omitempty"`
// This field is present in all messages of a WikiPage stream
RawData []byte `protobuf:"bytes,8,opt,name=raw_data,json=rawData,proto3" json:"raw_data,omitempty"`
RawData []byte `protobuf:"bytes,8,opt,name=raw_data,json=rawData,proto3" json:"raw_data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WikiPage) Reset() { *m = WikiPage{} }
func (m *WikiPage) String() string { return proto.CompactTextString(m) }
func (*WikiPage) ProtoMessage() {}
func (*WikiPage) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{2} }
func (m *WikiPage) Reset() { *m = WikiPage{} }
func (m *WikiPage) String() string { return proto.CompactTextString(m) }
func (*WikiPage) ProtoMessage() {}
func (*WikiPage) Descriptor() ([]byte, []int) {
return fileDescriptor_wiki_1d32eab65dda3828, []int{2}
}
func (m *WikiPage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WikiPage.Unmarshal(m, b)
}
func (m *WikiPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WikiPage.Marshal(b, m, deterministic)
}
func (dst *WikiPage) XXX_Merge(src proto.Message) {
xxx_messageInfo_WikiPage.Merge(dst, src)
}
func (m *WikiPage) XXX_Size() int {
return xxx_messageInfo_WikiPage.Size(m)
}
func (m *WikiPage) XXX_DiscardUnknown() {
xxx_messageInfo_WikiPage.DiscardUnknown(m)
}
var xxx_messageInfo_WikiPage proto.InternalMessageInfo
func (m *WikiPage) GetVersion() *WikiPageVersion {
if m != nil {
......@@ -164,16 +236,38 @@ func (m *WikiPage) GetRawData() []byte {
}
type WikiGetPageVersionsRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
PagePath []byte `protobuf:"bytes,2,opt,name=page_path,json=pagePath,proto3" json:"page_path,omitempty"`
Page int32 `protobuf:"varint,3,opt,name=page" json:"page,omitempty"`
PerPage int32 `protobuf:"varint,4,opt,name=per_page,json=perPage" json:"per_page,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
PagePath []byte `protobuf:"bytes,2,opt,name=page_path,json=pagePath,proto3" json:"page_path,omitempty"`
Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
PerPage int32 `protobuf:"varint,4,opt,name=per_page,json=perPage,proto3" json:"per_page,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WikiGetPageVersionsRequest) Reset() { *m = WikiGetPageVersionsRequest{} }
func (m *WikiGetPageVersionsRequest) String() string { return proto.CompactTextString(m) }
func (*WikiGetPageVersionsRequest) ProtoMessage() {}
func (*WikiGetPageVersionsRequest) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{3} }
func (m *WikiGetPageVersionsRequest) Reset() { *m = WikiGetPageVersionsRequest{} }
func (m *WikiGetPageVersionsRequest) String() string { return proto.CompactTextString(m) }
func (*WikiGetPageVersionsRequest) ProtoMessage() {}
func (*WikiGetPageVersionsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_wiki_1d32eab65dda3828, []int{3}
}
func (m *WikiGetPageVersionsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WikiGetPageVersionsRequest.Unmarshal(m, b)
}
func (m *WikiGetPageVersionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WikiGetPageVersionsRequest.Marshal(b, m, deterministic)
}
func (dst *WikiGetPageVersionsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_WikiGetPageVersionsRequest.Merge(dst, src)
}
func (m *WikiGetPageVersionsRequest) XXX_Size() int {
return xxx_messageInfo_WikiGetPageVersionsRequest.Size(m)
}
func (m *WikiGetPageVersionsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_WikiGetPageVersionsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_WikiGetPageVersionsRequest proto.InternalMessageInfo
func (m *WikiGetPageVersionsRequest) GetRepository() *Repository {
if m != nil {
......@@ -204,13 +298,35 @@ func (m *WikiGetPageVersionsRequest) GetPerPage() int32 {
}
type WikiGetPageVersionsResponse struct {
Versions []*WikiPageVersion `protobuf:"bytes,1,rep,name=versions" json:"versions,omitempty"`
Versions []*WikiPageVersion `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WikiGetPageVersionsResponse) Reset() { *m = WikiGetPageVersionsResponse{} }
func (m *WikiGetPageVersionsResponse) String() string { return proto.CompactTextString(m) }
func (*WikiGetPageVersionsResponse) ProtoMessage() {}
func (*WikiGetPageVersionsResponse) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{4} }
func (m *WikiGetPageVersionsResponse) Reset() { *m = WikiGetPageVersionsResponse{} }
func (m *WikiGetPageVersionsResponse) String() string { return proto.CompactTextString(m) }
func (*WikiGetPageVersionsResponse) ProtoMessage() {}
func (*WikiGetPageVersionsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_wiki_1d32eab65dda3828, []int{4}
}
func (m *WikiGetPageVersionsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WikiGetPageVersionsResponse.Unmarshal(m, b)
}
func (m *WikiGetPageVersionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WikiGetPageVersionsResponse.Marshal(b, m, deterministic)
}
func (dst *WikiGetPageVersionsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_WikiGetPageVersionsResponse.Merge(dst, src)
}
func (m *WikiGetPageVersionsResponse) XXX_Size() int {
return xxx_messageInfo_WikiGetPageVersionsResponse.Size(m)
}
func (m *WikiGetPageVersionsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_WikiGetPageVersionsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_WikiGetPageVersionsResponse proto.InternalMessageInfo
func (m *WikiGetPageVersionsResponse) GetVersions() []*WikiPageVersion {
if m != nil {
......@@ -222,18 +338,40 @@ func (m *WikiGetPageVersionsResponse) GetVersions() []*WikiPageVersion {
// This message is sent in a stream because the 'content' field may be large.
type WikiWritePageRequest struct {
// These following fields are only present in the first message.
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Format string `protobuf:"bytes,3,opt,name=format" json:"format,omitempty"`
CommitDetails *WikiCommitDetails `protobuf:"bytes,4,opt,name=commit_details,json=commitDetails" json:"commit_details,omitempty"`
Format string `protobuf:"bytes,3,opt,name=format,proto3" json:"format,omitempty"`
CommitDetails *WikiCommitDetails `protobuf:"bytes,4,opt,name=commit_details,json=commitDetails,proto3" json:"commit_details,omitempty"`
// This field is present in all messages.
Content []byte `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
Content []byte `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WikiWritePageRequest) Reset() { *m = WikiWritePageRequest{} }
func (m *WikiWritePageRequest) String() string { return proto.CompactTextString(m) }
func (*WikiWritePageRequest) ProtoMessage() {}
func (*WikiWritePageRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_wiki_1d32eab65dda3828, []int{5}
}
func (m *WikiWritePageRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WikiWritePageRequest.Unmarshal(m, b)
}
func (m *WikiWritePageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WikiWritePageRequest.Marshal(b, m, deterministic)
}
func (dst *WikiWritePageRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_WikiWritePageRequest.Merge(dst, src)
}
func (m *WikiWritePageRequest) XXX_Size() int {
return xxx_messageInfo_WikiWritePageRequest.Size(m)
}
func (m *WikiWritePageRequest) XXX_DiscardUnknown() {
xxx_messageInfo_WikiWritePageRequest.DiscardUnknown(m)
}
func (m *WikiWritePageRequest) Reset() { *m = WikiWritePageRequest{} }
func (m *WikiWritePageRequest) String() string { return proto.CompactTextString(m) }
func (*WikiWritePageRequest) ProtoMessage() {}
func (*WikiWritePageRequest) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{5} }
var xxx_messageInfo_WikiWritePageRequest proto.InternalMessageInfo
func (m *WikiWritePageRequest) GetRepository() *Repository {
if m != nil {
......@@ -271,13 +409,35 @@ func (m *WikiWritePageRequest) GetContent() []byte {
}
type WikiWritePageResponse struct {
DuplicateError []byte `protobuf:"bytes,1,opt,name=duplicate_error,json=duplicateError,proto3" json:"duplicate_error,omitempty"`
DuplicateError []byte `protobuf:"bytes,1,opt,name=duplicate_error,json=duplicateError,proto3" json:"duplicate_error,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WikiWritePageResponse) Reset() { *m = WikiWritePageResponse{} }
func (m *WikiWritePageResponse) String() string { return proto.CompactTextString(m) }
func (*WikiWritePageResponse) ProtoMessage() {}
func (*WikiWritePageResponse) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{6} }
func (m *WikiWritePageResponse) Reset() { *m = WikiWritePageResponse{} }
func (m *WikiWritePageResponse) String() string { return proto.CompactTextString(m) }
func (*WikiWritePageResponse) ProtoMessage() {}
func (*WikiWritePageResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_wiki_1d32eab65dda3828, []int{6}
}
func (m *WikiWritePageResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WikiWritePageResponse.Unmarshal(m, b)
}
func (m *WikiWritePageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WikiWritePageResponse.Marshal(b, m, deterministic)
}
func (dst *WikiWritePageResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_WikiWritePageResponse.Merge(dst, src)
}
func (m *WikiWritePageResponse) XXX_Size() int {
return xxx_messageInfo_WikiWritePageResponse.Size(m)
}
func (m *WikiWritePageResponse) XXX_DiscardUnknown() {
xxx_messageInfo_WikiWritePageResponse.DiscardUnknown(m)
}
var xxx_messageInfo_WikiWritePageResponse proto.InternalMessageInfo
func (m *WikiWritePageResponse) GetDuplicateError() []byte {
if m != nil {
......@@ -288,19 +448,41 @@ func (m *WikiWritePageResponse) GetDuplicateError() []byte {
type WikiUpdatePageRequest struct {
// There fields are only present in the first message of the stream
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
PagePath []byte `protobuf:"bytes,2,opt,name=page_path,json=pagePath,proto3" json:"page_path,omitempty"`
Title []byte `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
Format string `protobuf:"bytes,4,opt,name=format" json:"format,omitempty"`
CommitDetails *WikiCommitDetails `protobuf:"bytes,5,opt,name=commit_details,json=commitDetails" json:"commit_details,omitempty"`
Format string `protobuf:"bytes,4,opt,name=format,proto3" json:"format,omitempty"`
CommitDetails *WikiCommitDetails `protobuf:"bytes,5,opt,name=commit_details,json=commitDetails,proto3" json:"commit_details,omitempty"`
// This field is present in all messages
Content []byte `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"`
Content []byte `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WikiUpdatePageRequest) Reset() { *m = WikiUpdatePageRequest{} }
func (m *WikiUpdatePageRequest) String() string { return proto.CompactTextString(m) }
func (*WikiUpdatePageRequest) ProtoMessage() {}
func (*WikiUpdatePageRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_wiki_1d32eab65dda3828, []int{7}
}
func (m *WikiUpdatePageRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WikiUpdatePageRequest.Unmarshal(m, b)
}
func (m *WikiUpdatePageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WikiUpdatePageRequest.Marshal(b, m, deterministic)
}
func (dst *WikiUpdatePageRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_WikiUpdatePageRequest.Merge(dst, src)
}
func (m *WikiUpdatePageRequest) XXX_Size() int {
return xxx_messageInfo_WikiUpdatePageRequest.Size(m)
}
func (m *WikiUpdatePageRequest) XXX_DiscardUnknown() {
xxx_messageInfo_WikiUpdatePageRequest.DiscardUnknown(m)
}
func (m *WikiUpdatePageRequest) Reset() { *m = WikiUpdatePageRequest{} }
func (m *WikiUpdatePageRequest) String() string { return proto.CompactTextString(m) }
func (*WikiUpdatePageRequest) ProtoMessage() {}
func (*WikiUpdatePageRequest) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{7} }
var xxx_messageInfo_WikiUpdatePageRequest proto.InternalMessageInfo
func (m *WikiUpdatePageRequest) GetRepository() *Repository {
if m != nil {
......@@ -345,13 +527,35 @@ func (m *WikiUpdatePageRequest) GetContent() []byte {
}
type WikiUpdatePageResponse struct {
Error []byte `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
Error []byte `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WikiUpdatePageResponse) Reset() { *m = WikiUpdatePageResponse{} }
func (m *WikiUpdatePageResponse) String() string { return proto.CompactTextString(m) }
func (*WikiUpdatePageResponse) ProtoMessage() {}
func (*WikiUpdatePageResponse) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{8} }
func (m *WikiUpdatePageResponse) Reset() { *m = WikiUpdatePageResponse{} }
func (m *WikiUpdatePageResponse) String() string { return proto.CompactTextString(m) }
func (*WikiUpdatePageResponse) ProtoMessage() {}
func (*WikiUpdatePageResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_wiki_1d32eab65dda3828, []int{8}
}
func (m *WikiUpdatePageResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WikiUpdatePageResponse.Unmarshal(m, b)
}
func (m *WikiUpdatePageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WikiUpdatePageResponse.Marshal(b, m, deterministic)
}
func (dst *WikiUpdatePageResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_WikiUpdatePageResponse.Merge(dst, src)
}
func (m *WikiUpdatePageResponse) XXX_Size() int {
return xxx_messageInfo_WikiUpdatePageResponse.Size(m)
}
func (m *WikiUpdatePageResponse) XXX_DiscardUnknown() {
xxx_messageInfo_WikiUpdatePageResponse.DiscardUnknown(m)
}
var xxx_messageInfo_WikiUpdatePageResponse proto.InternalMessageInfo
func (m *WikiUpdatePageResponse) GetError() []byte {
if m != nil {
......@@ -361,15 +565,37 @@ func (m *WikiUpdatePageResponse) GetError() []byte {
}
type WikiDeletePageRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
PagePath []byte `protobuf:"bytes,2,opt,name=page_path,json=pagePath,proto3" json:"page_path,omitempty"`
CommitDetails *WikiCommitDetails `protobuf:"bytes,3,opt,name=commit_details,json=commitDetails" json:"commit_details,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
PagePath []byte `protobuf:"bytes,2,opt,name=page_path,json=pagePath,proto3" json:"page_path,omitempty"`
CommitDetails *WikiCommitDetails `protobuf:"bytes,3,opt,name=commit_details,json=commitDetails,proto3" json:"commit_details,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WikiDeletePageRequest) Reset() { *m = WikiDeletePageRequest{} }
func (m *WikiDeletePageRequest) String() string { return proto.CompactTextString(m) }
func (*WikiDeletePageRequest) ProtoMessage() {}
func (*WikiDeletePageRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_wiki_1d32eab65dda3828, []int{9}
}
func (m *WikiDeletePageRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WikiDeletePageRequest.Unmarshal(m, b)
}
func (m *WikiDeletePageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WikiDeletePageRequest.Marshal(b, m, deterministic)
}
func (dst *WikiDeletePageRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_WikiDeletePageRequest.Merge(dst, src)
}
func (m *WikiDeletePageRequest) XXX_Size() int {
return xxx_messageInfo_WikiDeletePageRequest.Size(m)
}
func (m *WikiDeletePageRequest) XXX_DiscardUnknown() {
xxx_messageInfo_WikiDeletePageRequest.DiscardUnknown(m)
}
func (m *WikiDeletePageRequest) Reset() { *m = WikiDeletePageRequest{} }
func (m *WikiDeletePageRequest) String() string { return proto.CompactTextString(m) }
func (*WikiDeletePageRequest) ProtoMessage() {}
func (*WikiDeletePageRequest) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{9} }
var xxx_messageInfo_WikiDeletePageRequest proto.InternalMessageInfo
func (m *WikiDeletePageRequest) GetRepository() *Repository {
if m != nil {
......@@ -393,24 +619,68 @@ func (m *WikiDeletePageRequest) GetCommitDetails() *WikiCommitDetails {
}
type WikiDeletePageResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WikiDeletePageResponse) Reset() { *m = WikiDeletePageResponse{} }
func (m *WikiDeletePageResponse) String() string { return proto.CompactTextString(m) }
func (*WikiDeletePageResponse) ProtoMessage() {}
func (*WikiDeletePageResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_wiki_1d32eab65dda3828, []int{10}
}
func (m *WikiDeletePageResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WikiDeletePageResponse.Unmarshal(m, b)
}
func (m *WikiDeletePageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WikiDeletePageResponse.Marshal(b, m, deterministic)
}
func (dst *WikiDeletePageResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_WikiDeletePageResponse.Merge(dst, src)
}
func (m *WikiDeletePageResponse) XXX_Size() int {
return xxx_messageInfo_WikiDeletePageResponse.Size(m)
}
func (m *WikiDeletePageResponse) XXX_DiscardUnknown() {
xxx_messageInfo_WikiDeletePageResponse.DiscardUnknown(m)
}
func (m *WikiDeletePageResponse) Reset() { *m = WikiDeletePageResponse{} }
func (m *WikiDeletePageResponse) String() string { return proto.CompactTextString(m) }
func (*WikiDeletePageResponse) ProtoMessage() {}
func (*WikiDeletePageResponse) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{10} }
var xxx_messageInfo_WikiDeletePageResponse proto.InternalMessageInfo
type WikiFindPageRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Title []byte `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
Revision []byte `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"`
Directory []byte `protobuf:"bytes,4,opt,name=directory,proto3" json:"directory,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
Title []byte `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
Revision []byte `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"`
Directory []byte `protobuf:"bytes,4,opt,name=directory,proto3" json:"directory,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WikiFindPageRequest) Reset() { *m = WikiFindPageRequest{} }
func (m *WikiFindPageRequest) String() string { return proto.CompactTextString(m) }
func (*WikiFindPageRequest) ProtoMessage() {}
func (*WikiFindPageRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_wiki_1d32eab65dda3828, []int{11}
}
func (m *WikiFindPageRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WikiFindPageRequest.Unmarshal(m, b)
}
func (m *WikiFindPageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WikiFindPageRequest.Marshal(b, m, deterministic)
}
func (dst *WikiFindPageRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_WikiFindPageRequest.Merge(dst, src)
}
func (m *WikiFindPageRequest) XXX_Size() int {
return xxx_messageInfo_WikiFindPageRequest.Size(m)
}
func (m *WikiFindPageRequest) XXX_DiscardUnknown() {
xxx_messageInfo_WikiFindPageRequest.DiscardUnknown(m)
}
func (m *WikiFindPageRequest) Reset() { *m = WikiFindPageRequest{} }
func (m *WikiFindPageRequest) String() string { return proto.CompactTextString(m) }
func (*WikiFindPageRequest) ProtoMessage() {}
func (*WikiFindPageRequest) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{11} }
var xxx_messageInfo_WikiFindPageRequest proto.InternalMessageInfo
func (m *WikiFindPageRequest) GetRepository() *Repository {
if m != nil {
......@@ -443,13 +713,35 @@ func (m *WikiFindPageRequest) GetDirectory() []byte {
// WikiFindPageResponse is a stream because we need multiple WikiPage
// messages to send the raw_data field.
type WikiFindPageResponse struct {
Page *WikiPage `protobuf:"bytes,1,opt,name=page" json:"page,omitempty"`
Page *WikiPage `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WikiFindPageResponse) Reset() { *m = WikiFindPageResponse{} }
func (m *WikiFindPageResponse) String() string { return proto.CompactTextString(m) }
func (*WikiFindPageResponse) ProtoMessage() {}
func (*WikiFindPageResponse) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{12} }
func (m *WikiFindPageResponse) Reset() { *m = WikiFindPageResponse{} }
func (m *WikiFindPageResponse) String() string { return proto.CompactTextString(m) }
func (*WikiFindPageResponse) ProtoMessage() {}
func (*WikiFindPageResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_wiki_1d32eab65dda3828, []int{12}
}
func (m *WikiFindPageResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WikiFindPageResponse.Unmarshal(m, b)
}
func (m *WikiFindPageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WikiFindPageResponse.Marshal(b, m, deterministic)
}
func (dst *WikiFindPageResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_WikiFindPageResponse.Merge(dst, src)
}
func (m *WikiFindPageResponse) XXX_Size() int {
return xxx_messageInfo_WikiFindPageResponse.Size(m)
}
func (m *WikiFindPageResponse) XXX_DiscardUnknown() {
xxx_messageInfo_WikiFindPageResponse.DiscardUnknown(m)
}
var xxx_messageInfo_WikiFindPageResponse proto.InternalMessageInfo
func (m *WikiFindPageResponse) GetPage() *WikiPage {
if m != nil {
......@@ -459,16 +751,38 @@ func (m *WikiFindPageResponse) GetPage() *WikiPage {
}
type WikiFindFileRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
Name []byte `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Optional: revision
Revision []byte `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"`
Revision []byte `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WikiFindFileRequest) Reset() { *m = WikiFindFileRequest{} }
func (m *WikiFindFileRequest) String() string { return proto.CompactTextString(m) }
func (*WikiFindFileRequest) ProtoMessage() {}
func (*WikiFindFileRequest) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{13} }
func (m *WikiFindFileRequest) Reset() { *m = WikiFindFileRequest{} }
func (m *WikiFindFileRequest) String() string { return proto.CompactTextString(m) }
func (*WikiFindFileRequest) ProtoMessage() {}
func (*WikiFindFileRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_wiki_1d32eab65dda3828, []int{13}
}
func (m *WikiFindFileRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WikiFindFileRequest.Unmarshal(m, b)
}
func (m *WikiFindFileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WikiFindFileRequest.Marshal(b, m, deterministic)
}
func (dst *WikiFindFileRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_WikiFindFileRequest.Merge(dst, src)
}
func (m *WikiFindFileRequest) XXX_Size() int {
return xxx_messageInfo_WikiFindFileRequest.Size(m)
}
func (m *WikiFindFileRequest) XXX_DiscardUnknown() {
xxx_messageInfo_WikiFindFileRequest.DiscardUnknown(m)
}
var xxx_messageInfo_WikiFindFileRequest proto.InternalMessageInfo
func (m *WikiFindFileRequest) GetRepository() *Repository {
if m != nil {
......@@ -493,16 +807,38 @@ func (m *WikiFindFileRequest) GetRevision() []byte {
type WikiFindFileResponse struct {
// If 'name' is empty, the file was not found.
Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType" json:"mime_type,omitempty"`
RawData []byte `protobuf:"bytes,3,opt,name=raw_data,json=rawData,proto3" json:"raw_data,omitempty"`
Path []byte `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
RawData []byte `protobuf:"bytes,3,opt,name=raw_data,json=rawData,proto3" json:"raw_data,omitempty"`
Path []byte `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WikiFindFileResponse) Reset() { *m = WikiFindFileResponse{} }
func (m *WikiFindFileResponse) String() string { return proto.CompactTextString(m) }
func (*WikiFindFileResponse) ProtoMessage() {}
func (*WikiFindFileResponse) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{14} }
func (m *WikiFindFileResponse) Reset() { *m = WikiFindFileResponse{} }
func (m *WikiFindFileResponse) String() string { return proto.CompactTextString(m) }
func (*WikiFindFileResponse) ProtoMessage() {}
func (*WikiFindFileResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_wiki_1d32eab65dda3828, []int{14}
}
func (m *WikiFindFileResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WikiFindFileResponse.Unmarshal(m, b)
}
func (m *WikiFindFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WikiFindFileResponse.Marshal(b, m, deterministic)
}
func (dst *WikiFindFileResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_WikiFindFileResponse.Merge(dst, src)
}
func (m *WikiFindFileResponse) XXX_Size() int {
return xxx_messageInfo_WikiFindFileResponse.Size(m)
}
func (m *WikiFindFileResponse) XXX_DiscardUnknown() {
xxx_messageInfo_WikiFindFileResponse.DiscardUnknown(m)
}
var xxx_messageInfo_WikiFindFileResponse proto.InternalMessageInfo
func (m *WikiFindFileResponse) GetName() []byte {
if m != nil {
......@@ -533,15 +869,37 @@ func (m *WikiFindFileResponse) GetPath() []byte {
}
type WikiGetAllPagesRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
// Passing 0 means no limit is applied
Limit uint32 `protobuf:"varint,2,opt,name=limit" json:"limit,omitempty"`
Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WikiGetAllPagesRequest) Reset() { *m = WikiGetAllPagesRequest{} }
func (m *WikiGetAllPagesRequest) String() string { return proto.CompactTextString(m) }
func (*WikiGetAllPagesRequest) ProtoMessage() {}
func (*WikiGetAllPagesRequest) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{15} }
func (m *WikiGetAllPagesRequest) Reset() { *m = WikiGetAllPagesRequest{} }
func (m *WikiGetAllPagesRequest) String() string { return proto.CompactTextString(m) }
func (*WikiGetAllPagesRequest) ProtoMessage() {}
func (*WikiGetAllPagesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_wiki_1d32eab65dda3828, []int{15}
}
func (m *WikiGetAllPagesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WikiGetAllPagesRequest.Unmarshal(m, b)
}
func (m *WikiGetAllPagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WikiGetAllPagesRequest.Marshal(b, m, deterministic)
}
func (dst *WikiGetAllPagesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_WikiGetAllPagesRequest.Merge(dst, src)
}
func (m *WikiGetAllPagesRequest) XXX_Size() int {
return xxx_messageInfo_WikiGetAllPagesRequest.Size(m)
}
func (m *WikiGetAllPagesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_WikiGetAllPagesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_WikiGetAllPagesRequest proto.InternalMessageInfo
func (m *WikiGetAllPagesRequest) GetRepository() *Repository {
if m != nil {
......@@ -559,15 +917,37 @@ func (m *WikiGetAllPagesRequest) GetLimit() uint32 {
// The WikiGetAllPagesResponse stream is a concatenation of WikiPage streams
type WikiGetAllPagesResponse struct {
Page *WikiPage `protobuf:"bytes,1,opt,name=page" json:"page,omitempty"`
Page *WikiPage `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
// When end_of_page is true it signals a change of page for the next Response message (if any)
EndOfPage bool `protobuf:"varint,2,opt,name=end_of_page,json=endOfPage" json:"end_of_page,omitempty"`
EndOfPage bool `protobuf:"varint,2,opt,name=end_of_page,json=endOfPage,proto3" json:"end_of_page,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WikiGetAllPagesResponse) Reset() { *m = WikiGetAllPagesResponse{} }
func (m *WikiGetAllPagesResponse) String() string { return proto.CompactTextString(m) }
func (*WikiGetAllPagesResponse) ProtoMessage() {}
func (*WikiGetAllPagesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_wiki_1d32eab65dda3828, []int{16}
}
func (m *WikiGetAllPagesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WikiGetAllPagesResponse.Unmarshal(m, b)
}
func (m *WikiGetAllPagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WikiGetAllPagesResponse.Marshal(b, m, deterministic)
}
func (dst *WikiGetAllPagesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_WikiGetAllPagesResponse.Merge(dst, src)
}
func (m *WikiGetAllPagesResponse) XXX_Size() int {
return xxx_messageInfo_WikiGetAllPagesResponse.Size(m)
}
func (m *WikiGetAllPagesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_WikiGetAllPagesResponse.DiscardUnknown(m)
}
func (m *WikiGetAllPagesResponse) Reset() { *m = WikiGetAllPagesResponse{} }
func (m *WikiGetAllPagesResponse) String() string { return proto.CompactTextString(m) }
func (*WikiGetAllPagesResponse) ProtoMessage() {}
func (*WikiGetAllPagesResponse) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{16} }
var xxx_messageInfo_WikiGetAllPagesResponse proto.InternalMessageInfo
func (m *WikiGetAllPagesResponse) GetPage() *WikiPage {
if m != nil {
......@@ -584,16 +964,38 @@ func (m *WikiGetAllPagesResponse) GetEndOfPage() bool {
}
type WikiGetFormattedDataRequest struct {
Repository *Repository `protobuf:"bytes,1,opt,name=repository" json:"repository,omitempty"`
Title []byte `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
Revision []byte `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"`
Directory []byte `protobuf:"bytes,4,opt,name=directory,proto3" json:"directory,omitempty"`
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
Title []byte `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
Revision []byte `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"`
Directory []byte `protobuf:"bytes,4,opt,name=directory,proto3" json:"directory,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WikiGetFormattedDataRequest) Reset() { *m = WikiGetFormattedDataRequest{} }
func (m *WikiGetFormattedDataRequest) String() string { return proto.CompactTextString(m) }
func (*WikiGetFormattedDataRequest) ProtoMessage() {}
func (*WikiGetFormattedDataRequest) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{17} }
func (m *WikiGetFormattedDataRequest) Reset() { *m = WikiGetFormattedDataRequest{} }
func (m *WikiGetFormattedDataRequest) String() string { return proto.CompactTextString(m) }
func (*WikiGetFormattedDataRequest) ProtoMessage() {}
func (*WikiGetFormattedDataRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_wiki_1d32eab65dda3828, []int{17}
}
func (m *WikiGetFormattedDataRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WikiGetFormattedDataRequest.Unmarshal(m, b)
}
func (m *WikiGetFormattedDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WikiGetFormattedDataRequest.Marshal(b, m, deterministic)
}
func (dst *WikiGetFormattedDataRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_WikiGetFormattedDataRequest.Merge(dst, src)
}
func (m *WikiGetFormattedDataRequest) XXX_Size() int {
return xxx_messageInfo_WikiGetFormattedDataRequest.Size(m)
}
func (m *WikiGetFormattedDataRequest) XXX_DiscardUnknown() {
xxx_messageInfo_WikiGetFormattedDataRequest.DiscardUnknown(m)
}
var xxx_messageInfo_WikiGetFormattedDataRequest proto.InternalMessageInfo
func (m *WikiGetFormattedDataRequest) GetRepository() *Repository {
if m != nil {
......@@ -624,13 +1026,35 @@ func (m *WikiGetFormattedDataRequest) GetDirectory() []byte {
}
type WikiGetFormattedDataResponse struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WikiGetFormattedDataResponse) Reset() { *m = WikiGetFormattedDataResponse{} }
func (m *WikiGetFormattedDataResponse) String() string { return proto.CompactTextString(m) }
func (*WikiGetFormattedDataResponse) ProtoMessage() {}
func (*WikiGetFormattedDataResponse) Descriptor() ([]byte, []int) { return fileDescriptor17, []int{18} }
func (m *WikiGetFormattedDataResponse) Reset() { *m = WikiGetFormattedDataResponse{} }
func (m *WikiGetFormattedDataResponse) String() string { return proto.CompactTextString(m) }
func (*WikiGetFormattedDataResponse) ProtoMessage() {}
func (*WikiGetFormattedDataResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_wiki_1d32eab65dda3828, []int{18}
}
func (m *WikiGetFormattedDataResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WikiGetFormattedDataResponse.Unmarshal(m, b)
}
func (m *WikiGetFormattedDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WikiGetFormattedDataResponse.Marshal(b, m, deterministic)
}
func (dst *WikiGetFormattedDataResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_WikiGetFormattedDataResponse.Merge(dst, src)
}
func (m *WikiGetFormattedDataResponse) XXX_Size() int {
return xxx_messageInfo_WikiGetFormattedDataResponse.Size(m)
}
func (m *WikiGetFormattedDataResponse) XXX_DiscardUnknown() {
xxx_messageInfo_WikiGetFormattedDataResponse.DiscardUnknown(m)
}
var xxx_messageInfo_WikiGetFormattedDataResponse proto.InternalMessageInfo
func (m *WikiGetFormattedDataResponse) GetData() []byte {
if m != nil {
......@@ -669,8 +1093,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for WikiService service
// WikiServiceClient is the client API for WikiService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type WikiServiceClient interface {
WikiGetPageVersions(ctx context.Context, in *WikiGetPageVersionsRequest, opts ...grpc.CallOption) (WikiService_WikiGetPageVersionsClient, error)
WikiWritePage(ctx context.Context, opts ...grpc.CallOption) (WikiService_WikiWritePageClient, error)
......@@ -692,7 +1117,7 @@ func NewWikiServiceClient(cc *grpc.ClientConn) WikiServiceClient {
}
func (c *wikiServiceClient) WikiGetPageVersions(ctx context.Context, in *WikiGetPageVersionsRequest, opts ...grpc.CallOption) (WikiService_WikiGetPageVersionsClient, error) {
stream, err := grpc.NewClientStream(ctx, &_WikiService_serviceDesc.Streams[0], c.cc, "/gitaly.WikiService/WikiGetPageVersions", opts...)
stream, err := c.cc.NewStream(ctx, &_WikiService_serviceDesc.Streams[0], "/gitaly.WikiService/WikiGetPageVersions", opts...)
if err != nil {
return nil, err
}
......@@ -724,7 +1149,7 @@ func (x *wikiServiceWikiGetPageVersionsClient) Recv() (*WikiGetPageVersionsRespo
}
func (c *wikiServiceClient) WikiWritePage(ctx context.Context, opts ...grpc.CallOption) (WikiService_WikiWritePageClient, error) {
stream, err := grpc.NewClientStream(ctx, &_WikiService_serviceDesc.Streams[1], c.cc, "/gitaly.WikiService/WikiWritePage", opts...)
stream, err := c.cc.NewStream(ctx, &_WikiService_serviceDesc.Streams[1], "/gitaly.WikiService/WikiWritePage", opts...)
if err != nil {
return nil, err
}
......@@ -758,7 +1183,7 @@ func (x *wikiServiceWikiWritePageClient) CloseAndRecv() (*WikiWritePageResponse,
}
func (c *wikiServiceClient) WikiUpdatePage(ctx context.Context, opts ...grpc.CallOption) (WikiService_WikiUpdatePageClient, error) {
stream, err := grpc.NewClientStream(ctx, &_WikiService_serviceDesc.Streams[2], c.cc, "/gitaly.WikiService/WikiUpdatePage", opts...)
stream, err := c.cc.NewStream(ctx, &_WikiService_serviceDesc.Streams[2], "/gitaly.WikiService/WikiUpdatePage", opts...)
if err != nil {
return nil, err
}
......@@ -793,7 +1218,7 @@ func (x *wikiServiceWikiUpdatePageClient) CloseAndRecv() (*WikiUpdatePageRespons
func (c *wikiServiceClient) WikiDeletePage(ctx context.Context, in *WikiDeletePageRequest, opts ...grpc.CallOption) (*WikiDeletePageResponse, error) {
out := new(WikiDeletePageResponse)
err := grpc.Invoke(ctx, "/gitaly.WikiService/WikiDeletePage", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/gitaly.WikiService/WikiDeletePage", in, out, opts...)
if err != nil {
return nil, err
}
......@@ -801,7 +1226,7 @@ func (c *wikiServiceClient) WikiDeletePage(ctx context.Context, in *WikiDeletePa
}
func (c *wikiServiceClient) WikiFindPage(ctx context.Context, in *WikiFindPageRequest, opts ...grpc.CallOption) (WikiService_WikiFindPageClient, error) {
stream, err := grpc.NewClientStream(ctx, &_WikiService_serviceDesc.Streams[3], c.cc, "/gitaly.WikiService/WikiFindPage", opts...)
stream, err := c.cc.NewStream(ctx, &_WikiService_serviceDesc.Streams[3], "/gitaly.WikiService/WikiFindPage", opts...)
if err != nil {
return nil, err
}
......@@ -833,7 +1258,7 @@ func (x *wikiServiceWikiFindPageClient) Recv() (*WikiFindPageResponse, error) {
}
func (c *wikiServiceClient) WikiFindFile(ctx context.Context, in *WikiFindFileRequest, opts ...grpc.CallOption) (WikiService_WikiFindFileClient, error) {
stream, err := grpc.NewClientStream(ctx, &_WikiService_serviceDesc.Streams[4], c.cc, "/gitaly.WikiService/WikiFindFile", opts...)
stream, err := c.cc.NewStream(ctx, &_WikiService_serviceDesc.Streams[4], "/gitaly.WikiService/WikiFindFile", opts...)
if err != nil {
return nil, err
}
......@@ -865,7 +1290,7 @@ func (x *wikiServiceWikiFindFileClient) Recv() (*WikiFindFileResponse, error) {
}
func (c *wikiServiceClient) WikiGetAllPages(ctx context.Context, in *WikiGetAllPagesRequest, opts ...grpc.CallOption) (WikiService_WikiGetAllPagesClient, error) {
stream, err := grpc.NewClientStream(ctx, &_WikiService_serviceDesc.Streams[5], c.cc, "/gitaly.WikiService/WikiGetAllPages", opts...)
stream, err := c.cc.NewStream(ctx, &_WikiService_serviceDesc.Streams[5], "/gitaly.WikiService/WikiGetAllPages", opts...)
if err != nil {
return nil, err
}
......@@ -897,7 +1322,7 @@ func (x *wikiServiceWikiGetAllPagesClient) Recv() (*WikiGetAllPagesResponse, err
}
func (c *wikiServiceClient) WikiGetFormattedData(ctx context.Context, in *WikiGetFormattedDataRequest, opts ...grpc.CallOption) (WikiService_WikiGetFormattedDataClient, error) {
stream, err := grpc.NewClientStream(ctx, &_WikiService_serviceDesc.Streams[6], c.cc, "/gitaly.WikiService/WikiGetFormattedData", opts...)
stream, err := c.cc.NewStream(ctx, &_WikiService_serviceDesc.Streams[6], "/gitaly.WikiService/WikiGetFormattedData", opts...)
if err != nil {
return nil, err
}
......@@ -928,8 +1353,7 @@ func (x *wikiServiceWikiGetFormattedDataClient) Recv() (*WikiGetFormattedDataRes
return m, nil
}
// Server API for WikiService service
// WikiServiceServer is the server API for WikiService service.
type WikiServiceServer interface {
WikiGetPageVersions(*WikiGetPageVersionsRequest, WikiService_WikiGetPageVersionsServer) error
WikiWritePage(WikiService_WikiWritePageServer) error
......@@ -1170,9 +1594,9 @@ var _WikiService_serviceDesc = grpc.ServiceDesc{
Metadata: "wiki.proto",
}
func init() { proto.RegisterFile("wiki.proto", fileDescriptor17) }
func init() { proto.RegisterFile("wiki.proto", fileDescriptor_wiki_1d32eab65dda3828) }
var fileDescriptor17 = []byte{
var fileDescriptor_wiki_1d32eab65dda3828 = []byte{
// 937 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0xcd, 0x6e, 0xe4, 0x44,
0x10, 0x5e, 0x67, 0xfe, 0x3c, 0x95, 0x9f, 0x65, 0x9b, 0x65, 0xe3, 0x75, 0x42, 0x88, 0x9a, 0x95,
......
......@@ -571,12 +571,12 @@
"revisionTime": "2018-11-02T16:30:54Z"
},
{
"checksumSHA1": "AEuc/0oF2vF1nYiibaT/UIxMgbg=",
"checksumSHA1": "pPdDKql6e61B46RD1vrjUOXXZFs=",
"path": "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb",
"revision": "53d58cd1f691f0370aca152927db89a6b6fbab59",
"revisionTime": "2019-02-06T12:42:04Z",
"version": "v1.10.0",
"versionExact": "v1.10.0"
"revision": "5a6b2cb914313dcb6e90c50deec98c294e3d5788",
"revisionTime": "2019-02-27T11:19:13Z",
"version": "v1.13.0",
"versionExact": "v1.13.0"
},
{
"checksumSHA1": "SbYAalNU5azT8lJGerDI4I/Nw84=",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment