Documentation ¶
Index ¶
- Constants
- func AssertCommitsPersisted(t *testing.T, db objects.Store, commits [][]byte)
- func CopyCommitsToNewStore(t *testing.T, src, dst objects.Store, commits [][]byte)
- func CreateRandomCommit(t *testing.T, db objects.Store, numCols, numRows int, parents [][]byte) ([]byte, *objects.Commit)
- func FetchObjects(t *testing.T, db objects.Store, rs ref.Store, c *apiclient.Client, ...) [][]byte
- func PushObjects(t *testing.T, db objects.Store, rs ref.Store, c *apiclient.Client, ...) map[string]*payload.Update
- func ReceivePackConfig(denyNonFastForwards, denyDeletes bool) *conf.Config
- type GZIPAwareHandler
- type RequestCaptureMiddleware
- type Server
- func (s *Server) GetAuthnS(repo string) auth.AuthnStore
- func (s *Server) GetAuthzS(repo string) auth.AuthzStore
- func (s *Server) GetConfS(repo string) conf.Store
- func (s *Server) GetDB(repo string) objects.Store
- func (s *Server) GetRS(repo string) ref.Store
- func (s *Server) GetRpSessions(repo string) apiserver.ReceivePackSessionStore
- func (s *Server) GetUpSessions(repo string) apiserver.UploadPackSessionStore
- func (s *Server) NewClient(t *testing.T, authenticate bool, pathPrefix string, ...) (string, *apiclient.Client, *RequestCaptureMiddleware, func())
- func (s *Server) NewRemote(t *testing.T, authenticate bool, pathPrefix string, ...) (repo string, url string, m *RequestCaptureMiddleware, cleanup func())
Constants ¶
View Source
const ( Email = "test@user.com" Password = "password" Name = "Test User" )
Variables ¶
This section is empty.
Functions ¶
func AssertCommitsPersisted ¶
func CopyCommitsToNewStore ¶
func CreateRandomCommit ¶
func FetchObjects ¶
func PushObjects ¶
func ReceivePackConfig ¶
Types ¶
type GZIPAwareHandler ¶ added in v0.3.11
func (*GZIPAwareHandler) ServeHTTP ¶ added in v0.3.11
func (h *GZIPAwareHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type RequestCaptureMiddleware ¶ added in v0.4.0
type RequestCaptureMiddleware struct {
// contains filtered or unexported fields
}
func NewRequestCaptureMiddleware ¶ added in v0.4.0
func NewRequestCaptureMiddleware(handler http.Handler) *RequestCaptureMiddleware
func (*RequestCaptureMiddleware) ServeHTTP ¶ added in v0.4.0
func (m *RequestCaptureMiddleware) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type Server ¶ added in v0.4.0
type Server struct {
// contains filtered or unexported fields
}
func (*Server) GetRpSessions ¶ added in v0.4.0
func (s *Server) GetRpSessions(repo string) apiserver.ReceivePackSessionStore
func (*Server) GetUpSessions ¶ added in v0.4.0
func (s *Server) GetUpSessions(repo string) apiserver.UploadPackSessionStore
Click to show internal directories.
Click to hide internal directories.