func init() { … }
const metricsPath …
const cadvisorMetricsPath …
const resourceMetricsPath …
const proberMetricsPath …
const statsPath …
const logsPath …
const checkpointPath …
const pprofBasePath …
const debugFlagPath …
const podsPath …
const runningPodsPath …
type Server …
type TLSOptions …
type containerInterface …
type filteringContainer …
func (a *filteringContainer) Handle(path string, handler http.Handler) { … }
func (a *filteringContainer) RegisteredHandlePaths() []string { … }
func ListenAndServeKubeletServer(
host HostInterface,
resourceAnalyzer stats.ResourceAnalyzer,
kubeCfg *kubeletconfiginternal.KubeletConfiguration,
tlsOptions *TLSOptions,
auth AuthInterface,
tp oteltrace.TracerProvider) { … }
func ListenAndServeKubeletReadOnlyServer(
host HostInterface,
resourceAnalyzer stats.ResourceAnalyzer,
address net.IP,
port uint,
tp oteltrace.TracerProvider) { … }
func ListenAndServePodResources(endpoint string, providers podresources.PodResourcesProviders) { … }
type NodeRequestAttributesGetter …
type AuthInterface …
type HostInterface …
func NewServer(
host HostInterface,
resourceAnalyzer stats.ResourceAnalyzer,
auth AuthInterface,
kubeCfg *kubeletconfiginternal.KubeletConfiguration) Server { … }
func (s *Server) InstallAuthFilter() { … }
func (s *Server) InstallTracingFilter(tp oteltrace.TracerProvider, opts ...otelrestful.Option) { … }
func (s *Server) addMetricsBucketMatcher(bucket string) { … }
func (s *Server) getMetricBucket(path string) string { … }
func (s *Server) getMetricMethodBucket(method string) string { … }
func (s *Server) InstallDefaultHandlers() { … }
func (s *Server) InstallDebuggingHandlers() { … }
func (s *Server) InstallDebuggingDisabledHandlers() { … }
func (s *Server) InstallSystemLogHandler(enableSystemLogHandler bool, enableSystemLogQuery bool) { … }
func getHandlerForDisabledEndpoint(errorMessage string) http.HandlerFunc { … }
func (s *Server) InstallDebugFlagsHandler(enableDebugFlagsHandler bool) { … }
func (s *Server) InstallProfilingHandler(enableProfilingLogHandler bool, enableContentionProfiling bool) { … }
func (s *Server) getContainerLogs(request *restful.Request, response *restful.Response) { … }
func encodePods(pods []*v1.Pod) (data []byte, err error) { … }
func (s *Server) getPods(request *restful.Request, response *restful.Response) { … }
func (s *Server) getRunningPods(request *restful.Request, response *restful.Response) { … }
func (s *Server) getLogs(request *restful.Request, response *restful.Response) { … }
type execRequestParams …
func getExecRequestParams(req *restful.Request) execRequestParams { … }
type portForwardRequestParams …
func getPortForwardRequestParams(req *restful.Request) portForwardRequestParams { … }
type responder …
func (r *responder) Error(w http.ResponseWriter, req *http.Request, err error) { … }
func proxyStream(w http.ResponseWriter, r *http.Request, url *url.URL) { … }
func (s *Server) getAttach(request *restful.Request, response *restful.Response) { … }
func (s *Server) getExec(request *restful.Request, response *restful.Response) { … }
func (s *Server) getRun(request *restful.Request, response *restful.Response) { … }
func writeJSONResponse(response *restful.Response, data []byte) { … }
func (s *Server) getPortForward(request *restful.Request, response *restful.Response) { … }
func (s *Server) checkpoint(request *restful.Request, response *restful.Response) { … }
func getURLRootPath(path string) string { … }
var longRunningRequestPathMap …
func isLongRunningRequest(path string) bool { … }
var statusesNoTracePred …
func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) { … }
type prometheusHostAdapter …
func (a prometheusHostAdapter) GetRequestedContainersInfo(containerName string, options cadvisorv2.RequestOptions) (map[string]*cadvisorapi.ContainerInfo, error) { … }
func (a prometheusHostAdapter) GetVersionInfo() (*cadvisorapi.VersionInfo, error) { … }
func (a prometheusHostAdapter) GetMachineInfo() (*cadvisorapi.MachineInfo, error) { … }
func containerPrometheusLabelsFunc(s stats.Provider) metrics.ContainerLabelsFunc { … }