Versions in this module Expand all Collapse all v1 v1.9.2 Apr 2, 2023 Changes in this version + const MetricsResourceRouteSuffix + func AttachPodMetricsRoutes(p PodMetricsConfig, mux ServeMux) + func AttachPodRoutes(p PodHandlerConfig, mux ServeMux, debug bool) + func HandleContainerAttach(h ContainerAttachHandlerFunc, opts ...ContainerExecHandlerOption) http.HandlerFunc + func HandleContainerExec(h ContainerExecHandlerFunc, opts ...ContainerExecHandlerOption) http.HandlerFunc + func HandleContainerLogs(h ContainerLogsHandlerFunc) http.HandlerFunc + func HandlePodMetricsResource(h PodMetricsResourceHandlerFunc) 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 PodMetricsResourceHandler(f PodMetricsResourceHandlerFunc) 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 ContainerAttachHandlerFunc func(ctx context.Context, namespace, podName, containerName string, attach AttachIO) error + type ContainerExecHandlerConfig struct + StreamCreationTimeout time.Duration + StreamIdleTimeout time.Duration + type ContainerExecHandlerFunc func(ctx context.Context, namespace, podName, containerName string, cmd []string, ...) error + type ContainerExecHandlerOption func(*ContainerExecHandlerConfig) + func WithExecStreamCreationTimeout(dur time.Duration) ContainerExecHandlerOption + func WithExecStreamIdleTimeout(dur time.Duration) ContainerExecHandlerOption + type ContainerLogOpts struct + Follow bool + LimitBytes int + Previous bool + SinceSeconds int + SinceTime time.Time + Tail int + Timestamps bool + type ContainerLogsHandlerFunc func(ctx context.Context, namespace, podName, containerName string, ...) (io.ReadCloser, error) + type PodHandlerConfig struct + AttachToContainer ContainerAttachHandlerFunc + GetContainerLogs ContainerLogsHandlerFunc + GetMetricsResource PodMetricsResourceHandlerFunc + GetPods PodListerFunc + GetPodsFromKubernetes PodListerFunc + GetStatsSummary PodStatsSummaryHandlerFunc + RunInContainer ContainerExecHandlerFunc + StreamCreationTimeout time.Duration + StreamIdleTimeout time.Duration + type PodListerFunc func(context.Context) ([]*v1.Pod, error) + type PodMetricsConfig struct + GetMetricsResource PodMetricsResourceHandlerFunc + GetStatsSummary PodStatsSummaryHandlerFunc + type PodMetricsResourceHandlerFunc func(context.Context) ([]*dto.MetricFamily, error) + type PodStatsSummaryHandlerFunc func(context.Context) (*statsv1alpha1.Summary, error) + type ServeMux interface + Handle func(path string, h http.Handler) + type TermSize struct + Height uint16 + Width uint16