package
0.133.0
Repository: https://github.com/edmondfrank/gitally.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

ByteSliceHasAnyPrefix tests whether the byte slice s begins with any of the prefixes.
ContainsPathTraversal checks if the path contains any traversal.
DecorateError unless it's already a grpc error.
ExtractGitalyServers extracts `storage.GitalyServers` from an incoming context.
GetPath returns the path of the repo passed as first argument.
GetRepoPath returns the full path of the repository referenced by an RPC Repository message.
GetStorageByName will return the path for the storage, which is fetched by its key.
GrpcCode emulates the old grpc.Code function: it translates errors into codes.Code values.
IsGitDirectory checks if the directory passed as first argument looks like a valid git directory.
IsNumber tests whether the byte slice s contains only digits or not.
UnquoteBytes removes surrounding double-quotes from a byte slice returning a new slice if they exist, otherwise it returns the same byte slice passed.

# Variables

MaxCommitOrTagMessageSize is the threshold for a commit/tag message, if exceeded then message is truncated and it's up to the client to request it in full separately.
Unimplemented is a Go error with gRPC error code 'Unimplemented'.