Documentation
¶
Index ¶
- func NewFilesDeleteHandler(g git.Git) http.Handler
- func NewFilesDispatchHandler(getH, listH http.Handler) http.Handler
- func NewFilesGetHandler(g git.Git) http.Handler
- func NewFilesListHandler(g git.Git) http.Handler
- func NewFilesPostHandler(g git.Git) http.Handler
- func NewHealthzHandler() http.Handler
- func NewMetricsMiddleware(next http.Handler) http.Handler
- func NewReadinessHandler(g git.Git) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFilesDeleteHandler ¶
NewFilesDeleteHandler returns an http.Handler that deletes a file from the git repository.
func NewFilesDispatchHandler ¶ added in v0.6.2
NewFilesDispatchHandler routes GET /api/v1/files/ to listH when the glob query parameter is present, and to getH otherwise.
func NewFilesGetHandler ¶
NewFilesGetHandler returns an http.Handler that reads a file from the git repository.
func NewFilesListHandler ¶
NewFilesListHandler returns an http.Handler that lists files in the git repository matching a glob pattern.
func NewFilesPostHandler ¶
NewFilesPostHandler returns an http.Handler that writes a file to the git repository.
func NewHealthzHandler ¶
NewHealthzHandler returns an http.Handler that always responds 200 ok (liveness probe).
func NewMetricsMiddleware ¶ added in v0.6.2
NewMetricsMiddleware wraps next with Prometheus HTTP request counting.
Types ¶
This section is empty.