Documentation ¶
Index ¶
- Variables
- func AddDatabaseDiagnosticsError(err error, diagnostics *diag.Diagnostics, errMsg string)
- func AddDatahubDiagnosticsError(err error, diagnostics *diag.Diagnostics, errMsg string)
- func AddDatalakeDiagnosticsError(err error, diagnostics *diag.Diagnostics, errMsg string)
- func AddDeDiagnosticsError(err error, diagnostics *diag.Diagnostics, errMsg string)
- func AddEnvironmentDiagnosticsError(err error, diagnostics *diag.Diagnostics, errMsg string)
- func AddIamDiagnosticsError(err error, diagnostics *diag.Diagnostics, errMsg string)
- func AddMlDiagnosticsError(err error, diagnostics *diag.Diagnostics, errMsg string)
- func Append(to map[string]schema.Attribute, from map[string]schema.Attribute)
- func CalculateCallFailureThresholdOrDefault(ctx context.Context, options *PollingOptions, fallback int) (int, error)
- func CalculateTimeoutOrDefault(ctx context.Context, options *PollingOptions, fallback time.Duration) (*time.Duration, error)
- func CheckStringEquals(name string, expected string, actual string) error
- func Concat(strs ...string) string
- func ContainsAsSubstring(slice []string, element string) bool
- func FromListValueToStringList(tl types.List) []string
- func FromMapValueToStringMap(tl types.Map) map[string]string
- func FromSetValueToStringList(tl types.Set) []string
- func GetCallFailureThreshold[T HasPollingOptions](p T, fallback int) int
- func GetCdpClientForDataSource(req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) *cdp.Client
- func GetCdpClientForResource(req resource.ConfigureRequest, resp *resource.ConfigureResponse) *cdp.Client
- func GetPollingTimeout[T HasPollingOptions](p T, fallback time.Duration) time.Duration
- func Int64To32Pointer(in types.Int64) *int32
- func IsNonRetryableError(code int) bool
- func IsRetryableError(code int) bool
- func LogEnvironmentSilently(ctx context.Context, content *environmentsmodels.Environment, ...) *environmentsmodels.Environment
- func LogSilently(ctx context.Context, messagePrefix string, in any)
- type DatabaseErrorPayload
- type DatahubErrorPayload
- type DatalakeErrorPayload
- type DeErrorPayload
- type EnvironmentErrorPayload
- type HasPollingOptions
- type IamErrorPayload
- type MlErrorPayload
- type PollingOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var NonRetryableErrorCodes = [...]int{403}
Functions ¶
func AddDatabaseDiagnosticsError ¶ added in v0.5.7
func AddDatabaseDiagnosticsError(err error, diagnostics *diag.Diagnostics, errMsg string)
func AddDatahubDiagnosticsError ¶
func AddDatahubDiagnosticsError(err error, diagnostics *diag.Diagnostics, errMsg string)
func AddDatalakeDiagnosticsError ¶
func AddDatalakeDiagnosticsError(err error, diagnostics *diag.Diagnostics, errMsg string)
func AddDeDiagnosticsError ¶ added in v0.6.1
func AddDeDiagnosticsError(err error, diagnostics *diag.Diagnostics, errMsg string)
func AddEnvironmentDiagnosticsError ¶
func AddEnvironmentDiagnosticsError(err error, diagnostics *diag.Diagnostics, errMsg string)
func AddIamDiagnosticsError ¶ added in v0.5.9
func AddIamDiagnosticsError(err error, diagnostics *diag.Diagnostics, errMsg string)
func AddMlDiagnosticsError ¶ added in v0.6.0
func AddMlDiagnosticsError(err error, diagnostics *diag.Diagnostics, errMsg string)
func CalculateCallFailureThresholdOrDefault ¶ added in v0.6.1
func CheckStringEquals ¶ added in v0.4.0
CheckStringEquals checks whether two strings are equal and returns nil if so, and an error otherwise.
func ContainsAsSubstring ¶
func FromMapValueToStringMap ¶ added in v0.6.1
func GetCallFailureThreshold ¶ added in v0.7.3
func GetCallFailureThreshold[T HasPollingOptions](p T, fallback int) int
GetCallFailureThreshold returns the call failure threshold from the given polling options or the fallback value. In case a negative value is given, it will be treated as zero.
func GetCdpClientForDataSource ¶
func GetCdpClientForDataSource(req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) *cdp.Client
func GetCdpClientForResource ¶
func GetCdpClientForResource(req resource.ConfigureRequest, resp *resource.ConfigureResponse) *cdp.Client
func GetPollingTimeout ¶ added in v0.7.3
func GetPollingTimeout[T HasPollingOptions](p T, fallback time.Duration) time.Duration
GetPollingTimeout returns the polling timeout from the given polling options or the fallback value. In case a negative value is given, it will be treated as one minute.
func Int64To32Pointer ¶ added in v0.5.7
func IsNonRetryableError ¶ added in v0.6.3
func IsRetryableError ¶ added in v0.6.3
func LogEnvironmentSilently ¶
func LogEnvironmentSilently(ctx context.Context, content *environmentsmodels.Environment, messagePrefix string) *environmentsmodels.Environment
Types ¶
type DatabaseErrorPayload ¶ added in v0.5.7
type DatabaseErrorPayload interface {
GetPayload() *opdbmodels.Error
}
type DatahubErrorPayload ¶
type DatahubErrorPayload interface {
GetPayload() *datahubmodels.Error
}
type DatalakeErrorPayload ¶
type DatalakeErrorPayload interface {
GetPayload() *datalakemodels.Error
}
type DeErrorPayload ¶ added in v0.6.1
type EnvironmentErrorPayload ¶
type EnvironmentErrorPayload interface {
GetPayload() *environmentsmodels.Error
}
type HasPollingOptions ¶ added in v0.7.3
type HasPollingOptions interface {
GetPollingOptions() *PollingOptions
}
type IamErrorPayload ¶ added in v0.5.9
type MlErrorPayload ¶ added in v0.6.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.