pkg

package
v0.5.1-0...-faa3f61 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrClosedResponseBody is returned when response body is closed in http2
	ErrClosedResponseBody = "http2: response body closed"
)
View Source
const TapRbacURL = "https://linkerd.io/tap-rbac"

TapRbacURL is the link users should visit to remedy issues when attempting to tap resources with missing authorizations

Variables

ValidTapDestinations specifies resource types allowed as a tap destination: - destination resource on an outbound 'to' query

Functions

func BuildTapByResourceRequest

func BuildTapByResourceRequest(params TapRequestParams) (*tapPb.TapByResourceRequest, error)

BuildTapByResourceRequest builds a Public API TapByResourceRequest from a TapRequestParams.

func CreateTapEvent

func CreateTapEvent(eventHTTP *tapPb.TapEvent_Http, dstMeta map[string]string, proxyDirection tapPb.TapEvent_ProxyDirection) *tapPb.TapEvent

CreateTapEvent generates tap events for use in tests

func Reader

Reader initiates a TapByResourceRequest and returns a buffered Reader. It is the caller's responsibility to call Close() on the io.ReadCloser.

func TapReqToURL

func TapReqToURL(req *tapPb.TapByResourceRequest) string

TapReqToURL converts a TapByResourceRequest protobuf object to a URL for use with the Kubernetes tap.linkerd.io APIService.

Types

type TapRequestParams

type TapRequestParams struct {
	Resource      string
	Namespace     string
	ToResource    string
	ToNamespace   string
	MaxRps        float32
	Scheme        string
	Method        string
	Authority     string
	Path          string
	Extract       bool
	LabelSelector string
}

TapRequestParams contains parameters that are used to build a TapByResourceRequest.

Jump to

Keyboard shortcuts

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