Documentation ¶
Index ¶
- Constants
- func DiagsToError(diags diag.Diagnostics) error
- func LogAndAddError(ctx context.Context, diags *diag.Diagnostics, summary, detail string)
- func LogAndAddErrorBeta(ctx context.Context, diags *diag.Diagnostics, name, resourceType string)
- func LogAndAddWarning(ctx context.Context, diags *diag.Diagnostics, summary, detail string)
- func LogAndAddWarningBeta(ctx context.Context, diags *diag.Diagnostics, name, resourceType string)
- type ProviderData
Constants ¶
View Source
const Separator = ","
Separator used for concatenation of TF-internal resource ID
Variables ¶
This section is empty.
Functions ¶
func DiagsToError ¶
func DiagsToError(diags diag.Diagnostics) error
DiagsToError Converts TF diagnostics' errors into an error with a human-readable description. If there are no errors, the output is nil
func LogAndAddError ¶
func LogAndAddError(ctx context.Context, diags *diag.Diagnostics, summary, detail string)
LogAndAddError Logs the error and adds it to the diags
func LogAndAddErrorBeta ¶ added in v0.20.0
func LogAndAddErrorBeta(ctx context.Context, diags *diag.Diagnostics, name, resourceType string)
func LogAndAddWarning ¶
func LogAndAddWarning(ctx context.Context, diags *diag.Diagnostics, summary, detail string)
LogAndAddWarning Logs the warning and adds it to the diags
func LogAndAddWarningBeta ¶ added in v0.20.0
func LogAndAddWarningBeta(ctx context.Context, diags *diag.Diagnostics, name, resourceType string)
Types ¶
type ProviderData ¶
type ProviderData struct { RoundTripper http.RoundTripper ServiceAccountEmail string Region string ArgusCustomEndpoint string DnsCustomEndpoint string IaaSCustomEndpoint string LoadBalancerCustomEndpoint string LogMeCustomEndpoint string MariaDBCustomEndpoint string MongoDBFlexCustomEndpoint string ObjectStorageCustomEndpoint string OpenSearchCustomEndpoint string PostgresFlexCustomEndpoint string PostgreSQLCustomEndpoint string RabbitMQCustomEndpoint string RedisCustomEndpoint string ResourceManagerCustomEndpoint string SecretsManagerCustomEndpoint string SQLServerFlexCustomEndpoint string ServerBackupCustomEndpoint string SKECustomEndpoint string EnableBetaResources bool }
Click to show internal directories.
Click to hide internal directories.