terraform-provider-google/vendor/github.com/hashicorp/terraform/tfdiags/diagnostic.go
Nathan McKinley e55e6a403f
Revert "Update hashicorp/terraform to 0.12-alpha4. (#2744)" (#2752)
This reverts commit b89618ccaa, containing
0.12-alpha4, which is broken.  Sets don't seem to work, and neither do
many resources.
2018-12-26 13:43:19 -08:00

27 lines
359 B
Go

package tfdiags
type Diagnostic interface {
Severity() Severity
Description() Description
Source() Source
}
type Severity rune
//go:generate stringer -type=Severity
const (
Error Severity = 'E'
Warning Severity = 'W'
)
type Description struct {
Summary string
Detail string
}
type Source struct {
Subject *SourceRange
Context *SourceRange
}