v3

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CountHeader is the name of the header used to record the sequence number of a request
	CountHeader = "TEST-REQUEST-ATTEMPT"

	// HashHeader is the name of the header used to record the hash of a request body
	HashHeader = "TEST-REQUEST-HASH"
)

Variables

This section is empty.

Functions

func AddTrackingHeaders

func AddTrackingHeaders(inner http.RoundTripper, redactor *vcr.Redactor) *requestCounter

func NewReplayRoundTripper

func NewReplayRoundTripper(
	inner http.RoundTripper,
	log logr.Logger,
	redactor *vcr.Redactor,
) http.RoundTripper

newReplayRoundTripper creates a new replayRoundTripper that will replay selected requests to improve test resilience.

func NewTestRecorder

func NewTestRecorder(
	cassetteName string,
	cfg config.Values,
	log logr.Logger,
) (vcr.Interface, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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