Documentation ¶
Index ¶
- Variables
- func Command(ctx context.Context, repo *pb.Repository, args ...string) (*command.Command, error)
- func CommandWithoutRepo(ctx context.Context, args ...string) (*command.Command, error)
- func IsValidRef(ctx context.Context, repo *pb.Repository, ref string) bool
- func ValidateRevision(revision []byte) error
- func Version() (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var FallbackTimeValue = time.Unix(1<<63-62135596801, 999999999)
FallbackTimeValue is the value returned by `SafeTimeParse` in case it encounters a parse error. It's the maximum time value possible in golang. See https://gitlab.com/gitlab-org/gitaly/issues/556#note_40289573
Functions ¶
func CommandWithoutRepo ¶ added in v0.92.0
CommandWithoutRepo works like Command but without a git repository
func IsValidRef ¶ added in v0.41.0
IsValidRef checks if a ref in a repo is valid
func ValidateRevision ¶ added in v0.31.0
ValidateRevision checks if a revision looks valid
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.