api

package
v0.0.0-...-c3677c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFDForStdio

func CheckFDForStdio(file *os.File) bool

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 RegisterHandlers(r *http.ServeMux)

func RegisterProxyHandlers

func RegisterProxyHandlers(r *http.ServeMux)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL