UpdateRemoteMirror
Compares the references in the target repository and its remote mirror repository. Any differences in the references are then addressed by pushing the differing references to the mirror. Created and modified references are updated, removed references are deleted from the mirror. Updates all tags. Branches are updated if they match the patterns specified in the request. Streaming RPC: The request can be streamed to send multiple branch patterns.Request
The repository whose mirror repository to update
Parameters required to connect to the remote repository
URL of the remote repository
Optional HTTP header for authenticating against the remote repository
Hostname of the remote repository. Use when the URL hostname has been resolved to an IP address to prevent DNS rebinding
Patterns to match branches against. Only matched branches are updated in the mirror. If not specified, all branches are updated. Patterns should only contain the branch name without ‘refs/heads/’ prefix. ”*” can be used as a wildcard. Can be streamed over multiple messages
SSH key to use for accessing the mirror repository
Identities used for strict host key checking
Whether to update diverged references in the mirror repository
Response
List of references that had diverged in the mirror from the source repository
FindRemoteRepository
Checks if a remote repository exists and is accessible.Request
Remote repository identifier to check
Storage name to redirect request to proper storage. Must be valid but any storage works
Response
Whether the remote repository exists and is accessible
This RPC might throw a gRPC Unavailable code to signal the request failure is transient.
FindRemoteRootRef
Tries to find the root reference of a remote repository. The root reference is the default branch as pointed to by the remote’s HEAD reference.Request
The repository in which the request shall be executed
Remote repository URL to fetch from
HTTP header to add to the request for authentication
Hostname of the remote repository. Use when the URL hostname has been resolved to an IP address to prevent DNS rebinding
Response
Name of the remote root reference (default branch)
Errors
- InvalidArgument: Returned if the specified remote does not exist
- NotFound: Returned if no HEAD branch was found