Documentation ¶
Index ¶
- func NewRepo(t *testing.T, fs billy.Filesystem, commits ...CommitFunc) *git.Repository
- func NewServer(fs billy.Filesystem) http.Handler
- func NewServerSSH(t *testing.T, fs billy.Filesystem, pubkeys ...gossh.PublicKey) *transport.Endpoint
- func WriteFile(t *testing.T, fs billy.Filesystem, path, content string)
- type CommitFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRepo ¶
func NewRepo(t *testing.T, fs billy.Filesystem, commits ...CommitFunc) *git.Repository
NewRepo returns a new Git repository.
func NewServer ¶
NewServer returns a http.Handler that serves a git repository. It's expected that the repository is already initialized by the caller.
func NewServerSSH ¶
Types ¶
type CommitFunc ¶
type CommitFunc func(billy.Filesystem, *git.Repository)
CommitFunc commits to a repo.
Click to show internal directories.
Click to hide internal directories.