terraform-provider-gitea/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/tfdiags/diagnostic.go
dependabot[bot] 84c9110a24
Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.24.1 to 2.26.0
Bumps [github.com/hashicorp/terraform-plugin-sdk/v2](https://github.com/hashicorp/terraform-plugin-sdk) from 2.24.1 to 2.26.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-sdk/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-sdk/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/terraform-plugin-sdk/compare/v2.24.1...v2.26.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-sdk/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-20 20:25:53 +00:00

24 lines
513 B
Go

package tfdiags
type Diagnostic interface {
Severity() Severity
Description() Description
}
type Severity rune
// This code was previously generated with a go:generate directive calling:
// go run golang.org/x/tools/cmd/stringer -type=Severity
// However, it is now considered frozen and the tooling dependency has been
// removed. The String method can be manually updated if necessary.
const (
Error Severity = 'E'
Warning Severity = 'W'
)
type Description struct {
Summary string
Detail string
}