Documentation
¶
Index ¶
- func APIErrorDiagnostics(err error) diag.Diagnostics
- func APIErrorIsNotFound(err error) bool
- func ActionErrorDiagnostic(action *hcloud.Action) diag.Diagnostic
- func ActionWaitTimeoutDiagnostic(actions ...*hcloud.Action) diag.Diagnostic
- func ConfigureClient(providerData any) (*hcloud.Client, diag.Diagnostics)
- func ErrorToDiag(err error) diag.Diagnostics
- func NotFoundDiagnostic(resourceName string, key string, value any) diag.Diagnostic
- func SettleActions(ctx context.Context, client ActionWaiter, actions ...*hcloud.Action) (diags diag.Diagnostics)
- func TerraformLabelsToHCloud(ctx context.Context, inputLabels types.Map, outputLabels *map[string]string) diag.Diagnostics
- type ActionWaiter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIErrorDiagnostics ¶
func APIErrorDiagnostics(err error) diag.Diagnostics
APIErrorDiagnostics creates diagnostics from the errors that occurred during an API requests.
func APIErrorIsNotFound ¶
APIErrorIsNotFound check whether the error is an API request Not Found error.
func ActionErrorDiagnostic ¶ added in v1.57.0
func ActionErrorDiagnostic(action *hcloud.Action) diag.Diagnostic
func ActionWaitTimeoutDiagnostic ¶ added in v1.57.0
func ActionWaitTimeoutDiagnostic(actions ...*hcloud.Action) diag.Diagnostic
func ConfigureClient ¶
func ConfigureClient(providerData any) (*hcloud.Client, diag.Diagnostics)
func ErrorToDiag ¶
func ErrorToDiag(err error) diag.Diagnostics
ErrorToDiag creates a terraform diag When some hcloud errors are passed it enriches the default Error() function from them with a few more details to make them more understandable for users
func NotFoundDiagnostic ¶ added in v1.48.0
func NotFoundDiagnostic(resourceName string, key string, value any) diag.Diagnostic
func SettleActions ¶ added in v1.57.0
func SettleActions(ctx context.Context, client ActionWaiter, actions ...*hcloud.Action) (diags diag.Diagnostics)
func TerraformLabelsToHCloud ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.