# Generated by the protocol buffer compiler. DO NOT EDIT! # Source: repository.proto for package 'gitaly' require 'grpc' require 'repository_pb' module Gitaly module RepositoryService # RepositoryService is a service providing RPCs accessing repositories as a whole. class Service include ::GRPC::GenericService self.marshal_class_method = :encode self.unmarshal_class_method = :decode self.service_name = 'gitaly.RepositoryService' # This comment is left unintentionally blank. rpc :RepositoryExists, ::Gitaly::RepositoryExistsRequest, ::Gitaly::RepositoryExistsResponse # RepositorySize returns information on the complete on-disk repository size. If you need more # detailed information about the size of various sub-structures you should instead use the # RepositoryInfo RPC. rpc :RepositorySize, ::Gitaly::RepositorySizeRequest, ::Gitaly::RepositorySizeResponse # RepositoryInfo returns detailed information about a repository and its data structures. rpc :RepositoryInfo, ::Gitaly::RepositoryInfoRequest, ::Gitaly::RepositoryInfoResponse # ObjectFormat determines the object format that is being used by the repository. rpc :ObjectFormat, ::Gitaly::ObjectFormatRequest, ::Gitaly::ObjectFormatResponse # This comment is left unintentionally blank. rpc :ApplyGitattributes, ::Gitaly::ApplyGitattributesRequest, ::Gitaly::ApplyGitattributesResponse # FetchRemote fetches references from a remote repository into the local # repository. rpc :FetchRemote, ::Gitaly::FetchRemoteRequest, ::Gitaly::FetchRemoteResponse # This comment is left unintentionally blank. rpc :CreateRepository, ::Gitaly::CreateRepositoryRequest, ::Gitaly::CreateRepositoryResponse # This comment is left unintentionally blank. rpc :GetArchive, ::Gitaly::GetArchiveRequest, stream(::Gitaly::GetArchiveResponse) # This comment is left unintentionally blank. rpc :HasLocalBranches, ::Gitaly::HasLocalBranchesRequest, ::Gitaly::HasLocalBranchesResponse # FetchSourceBranch fetches a branch from a second (potentially remote) # repository into the given repository. rpc :FetchSourceBranch, ::Gitaly::FetchSourceBranchRequest, ::Gitaly::FetchSourceBranchResponse # Fsck checks the repository for consistency via git-fsck(1). This can be used to check for # repository corruption. rpc :Fsck, ::Gitaly::FsckRequest, ::Gitaly::FsckResponse # This comment is left unintentionally blank. rpc :WriteRef, ::Gitaly::WriteRefRequest, ::Gitaly::WriteRefResponse # This comment is left unintentionally blank. rpc :FindMergeBase, ::Gitaly::FindMergeBaseRequest, ::Gitaly::FindMergeBaseResponse # CreateFork creates a new repository from a specific source repository. This new repository will # have the same branches and tags as the source repository. Internal references will not be # recreated in the forked repository. # # All objects of the source repository will be duplicated, that is there are no space savings by # creating the repository like this. The newly created repository does not join the object pool # of the source repository, if there is any. rpc :CreateFork, ::Gitaly::CreateForkRequest, ::Gitaly::CreateForkResponse # This comment is left unintentionally blank. rpc :CreateRepositoryFromURL, ::Gitaly::CreateRepositoryFromURLRequest, ::Gitaly::CreateRepositoryFromURLResponse # CreateBundle creates a bundle from all refs rpc :CreateBundle, ::Gitaly::CreateBundleRequest, stream(::Gitaly::CreateBundleResponse) # CreateBundleFromRefList creates a bundle from a stream of ref patterns. # When the bundle would be empty the FailedPrecondition error code is returned. rpc :CreateBundleFromRefList, stream(::Gitaly::CreateBundleFromRefListRequest), stream(::Gitaly::CreateBundleFromRefListResponse) # FetchBundle fetches references from a bundle into the local repository. # Refs will be mirrored to the target repository with the refspec # "+refs/*:refs/*" and refs that do not exist in the bundle will be removed. rpc :FetchBundle, stream(::Gitaly::FetchBundleRequest), ::Gitaly::FetchBundleResponse # This comment is left unintentionally blank. rpc :CreateRepositoryFromBundle, stream(::Gitaly::CreateRepositoryFromBundleRequest), ::Gitaly::CreateRepositoryFromBundleResponse # GetConfig reads the target repository's gitconfig and streams its contents # back. Returns a NotFound error in case no gitconfig was found. rpc :GetConfig, ::Gitaly::GetConfigRequest, stream(::Gitaly::GetConfigResponse) # FindLicense looks in the given repository and attempts to detect all the # details about the license used in the repository. rpc :FindLicense, ::Gitaly::FindLicenseRequest, ::Gitaly::FindLicenseResponse # This comment is left unintentionally blank. rpc :GetInfoAttributes, ::Gitaly::GetInfoAttributesRequest, stream(::Gitaly::GetInfoAttributesResponse) # This comment is left unintentionally blank. rpc :CalculateChecksum, ::Gitaly::CalculateChecksumRequest, ::Gitaly::CalculateChecksumResponse # This comment is left unintentionally blank. rpc :GetSnapshot, ::Gitaly::GetSnapshotRequest, stream(::Gitaly::GetSnapshotResponse) # This comment is left unintentionally blank. rpc :CreateRepositoryFromSnapshot, ::Gitaly::CreateRepositoryFromSnapshotRequest, ::Gitaly::CreateRepositoryFromSnapshotResponse # This comment is left unintentionally blank. rpc :GetRawChanges, ::Gitaly::GetRawChangesRequest, stream(::Gitaly::GetRawChangesResponse) # This comment is left unintentionally blank. rpc :SearchFilesByContent, ::Gitaly::SearchFilesByContentRequest, stream(::Gitaly::SearchFilesByContentResponse) # This comment is left unintentionally blank. rpc :SearchFilesByName, ::Gitaly::SearchFilesByNameRequest, stream(::Gitaly::SearchFilesByNameResponse) # RestoreCustomHooks sets the git hooks for a repository. The hooks are sent # in a tar archive containing a `custom_hooks` directory. This directory is # ultimately extracted to the repository. rpc :RestoreCustomHooks, stream(::Gitaly::RestoreCustomHooksRequest), ::Gitaly::RestoreCustomHooksResponse # SetCustomHooks sets the git hooks for a repository. The hooks are sent in a # tar archive containing a `custom_hooks` directory. This directory is # ultimately extracted to the repository. rpc :SetCustomHooks, stream(::Gitaly::SetCustomHooksRequest), ::Gitaly::SetCustomHooksResponse # BackupCustomHooks fetches the git hooks for a repository. The hooks are # sent in a tar archive containing a `custom_hooks` directory. If no hooks # are present in the repository, the response will have no data. rpc :BackupCustomHooks, ::Gitaly::BackupCustomHooksRequest, stream(::Gitaly::BackupCustomHooksResponse) # GetCustomHooks fetches the git hooks for a repository. The hooks are sent # in a tar archive containing a `custom_hooks` directory. If no hooks are # present in the repository, the response will have no data. rpc :GetCustomHooks, ::Gitaly::GetCustomHooksRequest, stream(::Gitaly::GetCustomHooksResponse) # This comment is left unintentionally blank. rpc :GetObjectDirectorySize, ::Gitaly::GetObjectDirectorySizeRequest, ::Gitaly::GetObjectDirectorySizeResponse # RemoveRepository will move the repository to `+gitaly/tmp/_removed` and # eventually remove it. This ensures that even on networked filesystems the # data is actually removed even if there's someone still handling the data. rpc :RemoveRepository, ::Gitaly::RemoveRepositoryRequest, ::Gitaly::RemoveRepositoryResponse # This comment is left unintentionally blank. rpc :RenameRepository, ::Gitaly::RenameRepositoryRequest, ::Gitaly::RenameRepositoryResponse # This comment is left unintentionally blank. rpc :ReplicateRepository, ::Gitaly::ReplicateRepositoryRequest, ::Gitaly::ReplicateRepositoryResponse # OptimizeRepository performs all maintenance tasks in a repository to keep # it in an efficient state. It cleans up stale data, repacks objects, # updates auxiliary caches like commit-graphs and packs references. The # optimizations performed are based on heuristics and will adapt to the # repository's size. This RPC call is designed as a black-box such that # Gitaly has complete control of the on-disk state of repositories. rpc :OptimizeRepository, ::Gitaly::OptimizeRepositoryRequest, ::Gitaly::OptimizeRepositoryResponse # PruneUnreachableObjects will prune all objects which aren't reachable from # the repository's current set of references. Because pruning can only # happen for objects which aren't packed, you are required to first run # OptimizeRepository to explode any unreachable objects into loose objects. # # Furthermore, this RPC call has a grace period of 30 minutes: any # unreachable loose objects must not have been accessed or modified in the # last 30 minutes. This is a hard requirement to avoid repository corruption. # # To make proper use of this RPC you thus need to call OptimizeRepository, # wait 30 minutes, and then call PruneUnreachableObjects. rpc :PruneUnreachableObjects, ::Gitaly::PruneUnreachableObjectsRequest, ::Gitaly::PruneUnreachableObjectsResponse # SetFullPath writes the "gitlab.fullpath" configuration into the # repository's gitconfig. This is mainly to help debugging purposes in case # an admin inspects the repository's gitconfig such that he can easily see # what the repository name is. rpc :SetFullPath, ::Gitaly::SetFullPathRequest, ::Gitaly::SetFullPathResponse # FullPath reads the "gitlab.fullpath" configuration from the repository's # gitconfig. Returns an error in case the full path has not been configured. rpc :FullPath, ::Gitaly::FullPathRequest, ::Gitaly::FullPathResponse # RemoveAll deletes all repositories on a specified storage. rpc :RemoveAll, ::Gitaly::RemoveAllRequest, ::Gitaly::RemoveAllResponse # BackupRepository creates a full backup streamed directly to # object-storage. The backup is created synchronously. The destination must # be configured in config.backup.go_cloud_url rpc :BackupRepository, ::Gitaly::BackupRepositoryRequest, ::Gitaly::BackupRepositoryResponse end Stub = Service.rpc_stub_class end end