Documentation
¶
Index ¶
- func ClientFromProviderData(providerData any, d *diag.Diagnostics) mittwaldv2.ClientBuilder
- func EmbedDiag[T any](resultValue T, resultDiag diag.Diagnostics) func(outDiag *diag.Diagnostics) T
- func ErrorToDiag(err error) func(d *diag.Diagnostics, summary string)
- func ErrorValueToDiag[T any](res T, err error) func(d *diag.Diagnostics, summary string) T
- func ParseUUID(in string, d *diag.Diagnostics) uuid.UUID
- type WrappedError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientFromProviderData ¶
func ClientFromProviderData(providerData any, d *diag.Diagnostics) mittwaldv2.ClientBuilder
ClientFromProviderData is a helper function to extract the client from the provider data.
func EmbedDiag ¶
func EmbedDiag[T any](resultValue T, resultDiag diag.Diagnostics) func(outDiag *diag.Diagnostics) T
func ErrorToDiag ¶
func ErrorToDiag(err error) func(d *diag.Diagnostics, summary string)
func ErrorValueToDiag ¶
func ErrorValueToDiag[T any](res T, err error) func(d *diag.Diagnostics, summary string) T
Types ¶
type WrappedError ¶
type WrappedError[T any] struct { // contains filtered or unexported fields }
func Try ¶
func Try[T any](d *diag.Diagnostics, summary string) *WrappedError[T]
func (*WrappedError[T]) Do ¶
func (w *WrappedError[T]) Do(err error)
func (*WrappedError[T]) DoVal ¶
func (w *WrappedError[T]) DoVal(res T, err error) T
func (*WrappedError[T]) IgnoreNotFound ¶
func (w *WrappedError[T]) IgnoreNotFound() *WrappedError[T]
Click to show internal directories.
Click to hide internal directories.