Documentation ¶
Index ¶
- Constants
- func IsKubeletMetrics(path string) bool
- func IsKubeletStats(path string) bool
- func NewFakeObjectInterfaces(scheme *runtime.Scheme, restMapper meta.RESTMapper) admission.ObjectInterfaces
- func NodeNameFrom(ctx context.Context) (string, bool)
- func WithFakeKubelet(h http.Handler, localConfig *rest.Config, cachedVirtualClient client.Client) http.Handler
- func WithK3sConnect(h http.Handler) http.Handler
- func WithMetricsProxy(h http.Handler, localConfig *rest.Config, cachedVirtualClient client.Client) http.Handler
- func WithMetricsServerProxy(h http.Handler, targetNamespace string, ...) http.Handler
- func WithNodeChanges(ctx context.Context, h http.Handler, ...) http.Handler
- func WithNodeName(h http.Handler, currentNamespace string, fakeKubeletIPs bool, ...) http.Handler
- func WithPprof(h http.Handler) http.Handler
- func WithRedirect(h http.Handler, localConfig *rest.Config, localScheme *runtime.Scheme, ...) http.Handler
- func WithServiceCreateRedirect(handler http.Handler, uncachedLocalClient, uncachedVirtualClient client.Client, ...) http.Handler
- func WriteObjectNegotiated(w http.ResponseWriter, req *http.Request, object runtime.Object, ...)
- func WriteObjectNegotiatedWithGVK(w http.ResponseWriter, req *http.Request, object runtime.Object, ...)
- func WriteObjectNegotiatedWithMediaType(w http.ResponseWriter, req *http.Request, object runtime.Object, ...)
- type MetricsServerProxy
- type RowData
Constants ¶
View Source
const ( RequestVerbList = "list" RequestVerbGet = "get" NodeResource = "nodes" PodResource = "pods" LabelSelectorQueryParam = "labelSelector" )
View Source
const (
K3sConnectPath = "/v1-k3s/connect"
)
View Source
const (
KubectlCommandHeader = "Kubectl-Command"
)
Variables ¶
This section is empty.
Functions ¶
func IsKubeletMetrics ¶ added in v0.3.0
func IsKubeletStats ¶ added in v0.3.0
func NewFakeObjectInterfaces ¶ added in v0.3.0
func NewFakeObjectInterfaces(scheme *runtime.Scheme, restMapper meta.RESTMapper) admission.ObjectInterfaces
func NodeNameFrom ¶ added in v0.3.0
NodeNameFrom returns a node name if there is any
func WithFakeKubelet ¶ added in v0.3.0
func WithMetricsProxy ¶ added in v0.3.0
func WithMetricsServerProxy ¶ added in v0.15.0
func WithNodeChanges ¶ added in v0.3.0
func WithNodeName ¶ added in v0.3.0
func WithRedirect ¶
func WriteObjectNegotiated ¶ added in v0.19.0
func WriteObjectNegotiatedWithGVK ¶ added in v0.19.0
Types ¶
type MetricsServerProxy ¶ added in v0.15.0
type MetricsServerProxy struct {
// contains filtered or unexported fields
}
func (*MetricsServerProxy) HandleRequest ¶ added in v0.15.0
func (p *MetricsServerProxy) HandleRequest()
type RowData ¶ added in v0.15.0
type RowData struct { Index int Cells []interface{} Pom metav1.PartialObjectMetadata }
Click to show internal directories.
Click to hide internal directories.