Documentation
¶
Index ¶
- func GetProviderOptBool(opts map[string]any, key string) (bool, bool)
- func GetProviderOptFloat64(opts map[string]any, key string) (float64, bool)
- func GetProviderOptInt64(opts map[string]any, key string) (int64, bool)
- func GetProviderOptStringSlice(opts map[string]any, key string) ([]string, bool)
- func SamplingProviderOptsKeys() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProviderOptBool ¶ added in v1.40.0
GetProviderOptBool extracts a bool value from provider opts.
func GetProviderOptFloat64 ¶
GetProviderOptFloat64 extracts a float64 value from provider opts. YAML may parse numbers as float64 or int, so this handles both.
func GetProviderOptInt64 ¶
GetProviderOptInt64 extracts an int64 value from provider opts. YAML may parse numbers as float64 or int, so this handles both.
func GetProviderOptStringSlice ¶ added in v1.75.0
GetProviderOptStringSlice extracts a []string value from provider opts. YAML parses sequences as []any, so both []string and []any of strings are accepted. A sequence containing any non-string element is rejected.
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.