Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DebugTransport = &LogTransport{ transport: http.DefaultTransport, }
Functions ¶
func AssertStatusCode ¶
func AssertStatusCode(response Response, statusCode int) diag.Diagnostic
func GetEnv ¶
GetEnv retrieves the value of the environment variable named by the key. If the variable is not present in the environment, then the fallback value is returned.
Parameters:
- key: The name of the environment variable to retrieve.
- fallback: The value to return if the environment variable is not set.
Returns:
The value of the environment variable if it is set, otherwise the fallback value.
Types ¶
type LogTransport ¶
type LogTransport struct {
// contains filtered or unexported fields
}
type ProviderData ¶
type ProviderData struct { PimClient *pim.ClientWithResponses NotificationClient *notification_external.ClientWithResponses GlobalSettingsClient *global_settings.ClientWithResponses }
func GetProviderData ¶
func GetProviderData(data any) (*ProviderData, diag.Diagnostic)
Click to show internal directories.
Click to hide internal directories.