test_images

package
v0.20.3 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ConfigTracingEnv = "K_CONFIG_TRACING"
	ConfigLoggingEnv = "K_CONFIG_LOGGING"
)

Variables

This section is empty.

Functions

func ConfigureLogging added in v0.19.0

func ConfigureLogging(ctx context.Context, name string) context.Context

ConfigureTracing can be used in test-images to configure tracing

func ConfigureTracing

func ConfigureTracing(logger *zap.SugaredLogger, serviceName string) error

ConfigureTracing can be used in test-images to configure tracing

func ParseDurationStr

func ParseDurationStr(durationStr string, defaultDuration int) time.Duration

ParseDurationStr parses `durationStr` as number of seconds (not time.Duration string), if parsing fails, returns back default duration.

func ParseHeaders

func ParseHeaders(serializedHeaders string) http.Header

Types

This section is empty.

Jump to

Keyboard shortcuts

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