providerutil

package
v1.40.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProviderOptBool added in v1.40.0

func GetProviderOptBool(opts map[string]any, key string) (bool, bool)

GetProviderOptBool extracts a bool value from provider opts.

func GetProviderOptFloat64

func GetProviderOptFloat64(opts map[string]any, key string) (float64, bool)

GetProviderOptFloat64 extracts a float64 value from provider opts. YAML may parse numbers as float64 or int, so this handles both.

func GetProviderOptInt64

func GetProviderOptInt64(opts map[string]any, key string) (int64, bool)

GetProviderOptInt64 extracts an int64 value from provider opts. YAML may parse numbers as float64 or int, so this handles both.

func SamplingProviderOptsKeys

func SamplingProviderOptsKeys() []string

SamplingProviderOptsKeys returns the list of provider_opts keys that are treated as sampling parameters and forwarded to provider APIs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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