Documentation
¶
Index ¶
Constants ¶
View Source
const ( CodePluginUnsupported = "plugin.unsupported" CodePluginFailed = "plugin.failed" CodePluginUnspecified = "plugin.unspecified" )
Variables ¶
This section is empty.
Functions ¶
func StableCode ¶
func StableCode(diag Diagnostic) string
Types ¶
type Diagnostic ¶
type Diagnostic struct {
Code string `json:"code,omitempty" yaml:"code,omitempty"`
Severity Severity `json:"severity" yaml:"severity"`
Category string `json:"category" yaml:"category"`
Message string `json:"message" yaml:"message"`
Provenance Provenance `json:"provenance,omitempty" yaml:"provenance,omitempty"`
}
func WithStableCodes ¶
func WithStableCodes(diags []Diagnostic) []Diagnostic
type Provenance ¶
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
func NewReporter ¶
func (*Reporter) All ¶
func (r *Reporter) All() []Diagnostic
func (*Reporter) Error ¶
func (r *Reporter) Error(category, message string, provenance Provenance)
func (*Reporter) Warn ¶
func (r *Reporter) Warn(category, message string, provenance Provenance)
Click to show internal directories.
Click to hide internal directories.