Documentation
¶
Overview ¶
Package testgit runs an in-process git host for one bare repository: smart HTTP (git http-backend over net/http/cgi) behind a basic-auth token, and SSH (git upload-pack / receive-pack) behind one deploy key. It needs the git CLI and no Docker.
Index ¶
Constants ¶
View Source
const Base = "main"
Base is the branch Start seeds.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
// HTTPURL accepts basic auth with any user and Token as the password.
HTTPURL string
Token string
// SSHURL accepts KeyPEM; KnownHosts pins the server host key.
SSHURL string
KeyPEM []byte
KnownHosts []byte
// contains filtered or unexported fields
}
Server is one seeded bare repository served over HTTP and SSH.
Click to show internal directories.
Click to hide internal directories.