Documentation
¶
Index ¶
- func CreateFilesDeleteHandler(g git.Git) http.Handler
- func CreateFilesDispatchHandler(getH, listH http.Handler) http.Handler
- func CreateFilesGetHandler(g git.Git) http.Handler
- func CreateFilesListHandler(g git.Git) http.Handler
- func CreateFilesPostHandler(g git.Git) http.Handler
- func CreateGitClient(repoPath string, m metrics.Metrics, ...) git.Git
- func CreateHealthzHandler() http.Handler
- func CreateMetricsMiddleware(m metrics.Metrics, next http.Handler) http.Handler
- func CreateReadinessHandler(g git.Git) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFilesDeleteHandler ¶
CreateFilesDeleteHandler returns an http.Handler for DELETE /api/v1/files/{path}.
func CreateFilesDispatchHandler ¶ added in v0.6.2
CreateFilesDispatchHandler returns a handler that routes between get and list.
func CreateFilesGetHandler ¶
CreateFilesGetHandler returns an http.Handler for GET /api/v1/files/{path}.
func CreateFilesListHandler ¶
CreateFilesListHandler returns an http.Handler for GET /api/v1/files/ with glob query param.
func CreateFilesPostHandler ¶
CreateFilesPostHandler returns an http.Handler for POST /api/v1/files/{path}.
func CreateGitClient ¶ added in v0.6.4
func CreateGitClient( repoPath string, m metrics.Metrics, currentDateTimeGetter libtime.CurrentDateTimeGetter, ) git.Git
CreateGitClient returns a Git implementation for the given repository path.
func CreateHealthzHandler ¶
CreateHealthzHandler returns an http.Handler for GET /healthz.
func CreateMetricsMiddleware ¶ added in v0.6.2
CreateMetricsMiddleware wraps next with Prometheus HTTP request counting.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.