Documentation
¶
Overview ¶
Package gitserver provides a smart Git HTTP server that can also set and remove hooks. The server is lightweight (<7M compiled with a ~2M footprint) and can mirror remote repositories in a containerized environment.
Index ¶
Constants ¶
View Source
const (
EnvironmentHelp = `` /* 1695-byte string literal not displayed */
)
Variables ¶
This section is empty.
Functions ¶
func RepositoryURL ¶
RepositoryURL creates the public URL for the named git repo. If both config.URL and request are nil, the returned URL will be nil.
Types ¶
type Clone ¶
Clone is a repository to clone
type Config ¶
type Config struct {
Home string
GitBinary string
URL *url.URL
AllowHooks bool
AllowPush bool
AllowLazyCreate bool
HookDirectory string
MaxHookBytes int64
Listen string
AuthenticatorFn func(http http.Handler) http.Handler
CleanBeforeClone bool
InitialClones map[string]Clone
AuthMessage string
}
Config represents the configuration to use for running the server
Source Files
¶
- gitserver.go
- hooks.go
- initializer.go
Click to show internal directories.
Click to hide internal directories.