kubernetes

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package kubernetes provides functions to trace k8s.io/client-go (https://github.com/kubernetes/client-go).

Example
Output:

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestToResource

func RequestToResource(method, path string) string

RequestToResource parses a Kubernetes request and extracts a resource name from it.

func WrapRoundTripper

func WrapRoundTripper(rt http.RoundTripper) http.RoundTripper

WrapRoundTripper wraps a RoundTripper intended for interfacing with Kubernetes and traces all requests.

func WrapRoundTripperFunc

func WrapRoundTripperFunc(opts ...httptrace.RoundTripperOption) func(http.RoundTripper) http.RoundTripper

WrapRoundTripperFunc creates a new WrapTransport function using the given set of RountripperOption. It is useful when desiring to to enable Trace Analytics or setting up a RoundTripperAfterFunc.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL