Versions in this module Expand all Collapse all v0 v0.10.0 Jun 13, 2019 Changes in this version + func AttachPodMetricsRoutes(p PodMetricsConfig, mux ServeMux) + func AttachPodRoutes(p PodHandlerConfig, mux ServeMux, debug bool) + func HandleContainerExec(h ContainerExecHandlerFunc) http.HandlerFunc + func HandleContainerLogs(h ContainerLogsHandlerFunc) http.HandlerFunc + func HandlePodStatsSummary(h PodStatsSummaryHandlerFunc) http.HandlerFunc + func HandleRunningPods(getPods PodListerFunc) http.HandlerFunc + func InstrumentHandler(h http.Handler) http.Handler + func NotFound(w http.ResponseWriter, r *http.Request) + func NotImplemented(w http.ResponseWriter, r *http.Request) + func PodHandler(p PodHandlerConfig, debug bool) http.Handler + func PodStatsSummaryHandler(f PodStatsSummaryHandlerFunc) http.Handler + type AttachIO interface + Resize func() <-chan TermSize + Stderr func() io.WriteCloser + Stdin func() io.Reader + Stdout func() io.WriteCloser + TTY func() bool + type ContainerExecHandlerFunc func(ctx context.Context, namespace, podName, containerName string, cmd []string, ...) error + type ContainerLogOpts struct + LimitBytes int + Since time.Duration + Tail int + Timestamps bool + type ContainerLogsHandlerFunc func(ctx context.Context, namespace, podName, containerName string, ...) (io.ReadCloser, error) + type PodHandlerConfig struct + GetContainerLogs ContainerLogsHandlerFunc + GetPods PodListerFunc + RunInContainer ContainerExecHandlerFunc + type PodListerFunc func(context.Context) ([]*v1.Pod, error) + type PodMetricsConfig struct + GetStatsSummary PodStatsSummaryHandlerFunc + type PodStatsSummaryHandlerFunc func(context.Context) (*stats.Summary, error) + type ServeMux interface + Handle func(path string, h http.Handler) + type TermSize struct + Height uint16 + Width uint16