Documentation
¶
Index ¶
- func CheckFDForStdio(file *os.File) bool
- func ListLogsHandler(w http.ResponseWriter, r *http.Request)
- func ListLogsProxyHandler(w http.ResponseWriter, r *http.Request)
- func LogHandler(w http.ResponseWriter, r *http.Request)
- func LogProxyHandler(w http.ResponseWriter, r *http.Request)
- func LogViewerProxyHandler(w http.ResponseWriter, r *http.Request)
- func RegisterHandlers(r *http.ServeMux)
- func RegisterProxyHandlers(r *http.ServeMux)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFDForStdio ¶
CheckFDForStdio determines whether the file at the fd is one written by tini as a stdio rotator
func ListLogsHandler ¶
func ListLogsHandler(w http.ResponseWriter, r *http.Request)
ListLogsHandler handles the /listlogs/:containerid/... endpoint and enumerates the files, and subdirectories of /logs for a given container
func ListLogsProxyHandler ¶
func ListLogsProxyHandler(w http.ResponseWriter, r *http.Request)
ListLogsProxyHandler is an HTTP handler that proxies /listlogs/:containerid/... to the in-container logviewer
func LogHandler ¶
func LogHandler(w http.ResponseWriter, r *http.Request)
LogHandler is an HTTP handler that handles the /logs/:containerid/... endpoint, and fetches a file on the client's behalf
func LogProxyHandler ¶
func LogProxyHandler(w http.ResponseWriter, r *http.Request)
LogProxyHandler is an HTTP handler that proxies /logs/:containerid/... to the in-container logviewer
func LogViewerProxyHandler ¶
func LogViewerProxyHandler(w http.ResponseWriter, r *http.Request)
LogViewerProxyHandler is an HTTP handler that proxies all requests to the underlying logviewer, so `/logviewer/:id/foo` will hit `/foo` on the in-container logviewer
func RegisterHandlers ¶
func RegisterProxyHandlers ¶
Types ¶
This section is empty.