mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-16 16:20:02 +00:00
9ff66c4283
We aren't ready to release a `0.12` SDK based build because of these issues: • https://github.com/hashicorp/terraform/issues/20505 • https://github.com/hashicorp/terraform/issues/20507 • https://github.com/hashicorp/terraform/issues/20506 • https://github.com/hashicorp/terraform/issues/20504
26 lines
507 B
Go
26 lines
507 B
Go
package tfdiags
|
|
|
|
type simpleWarning string
|
|
|
|
var _ Diagnostic = simpleWarning("")
|
|
|
|
// SimpleWarning constructs a simple (summary-only) warning diagnostic.
|
|
func SimpleWarning(msg string) Diagnostic {
|
|
return simpleWarning(msg)
|
|
}
|
|
|
|
func (e simpleWarning) Severity() Severity {
|
|
return Warning
|
|
}
|
|
|
|
func (e simpleWarning) Description() Description {
|
|
return Description{
|
|
Summary: string(e),
|
|
}
|
|
}
|
|
|
|
func (e simpleWarning) Source() Source {
|
|
// No source information available for a native error
|
|
return Source{}
|
|
}
|