package
0.0.0-20210929134506-8fd29ad8f0d9
Repository: https://github.com/kok-stack/native-kubelet.git
Documentation: pkg.go.dev
# Functions
AttachPodMetricsRoutes adds the http routes for pod/node metrics to the passed in serve mux.
AttachPodRoutes adds the http routes for pod stuff to the passed in serve mux.
HandleContainerExec makes an http handler func from a Provider which execs a command in a pod's container Note that this handler currently depends on gorrilla/mux to get url parts as variables.
HandleContainerLogs creates an http handler function from a provider to serve logs from a pod.
HandlePodStatsSummary makes an HTTP handler for implementing the kubelet summary stats endpoint.
No description provided by the author
InstrumentHandler wraps an http.Handler and injects instrumentation into the request context.
NotFound provides a handler for cases where the requested endpoint doesn't exist.
NotImplemented provides a handler for cases where a provider does not implement a given API.
PodHandler creates an http handler for interacting with pods/containers.
PodStatsSummaryHandler creates an http handler for serving pod metrics.
WithExecStreamCreationTimeout sets the creation timeout for a container exec stream.
WithExecStreamIdleTimeout sets the idle timeout for a container exec stream.
# Structs
ContainerExecHandlerConfig is used to pass options to options to the container exec handler.
ContainerLogOpts are used to pass along options to be set on the container log stream.
No description provided by the author
PodMetricsConfig stores the handlers for pod metrics routes It is used by AttachPodMetrics.
TermSize is used to set the terminal size from attached clients.
# Type aliases
ContainerExecHandlerFunc defines the handler function used for "execing" into a container in a pod.
ContainerExecHandlerOption configures a ContainerExecHandlerConfig It is used as functional options passed to `HandleContainerExec`.
ContainerLogsHandlerFunc is used in place of backend implementations for getting container logs.
No description provided by the author
PodStatsSummaryHandlerFunc defines the handler for getting pod stats summaries.