diag

package
v0.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package diag contains diagnostics helpers. These implementations are intentionally outside the public API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diagnostics

type Diagnostics []*tfprotov6.Diagnostic

Diagnostics is a collection of Diagnostic.

func (Diagnostics) ErrorCount

func (d Diagnostics) ErrorCount() int

ErrorCount returns the number of error severity diagnostics.

func (Diagnostics) Log

func (d Diagnostics) Log(ctx context.Context)

Log will log every diagnostic:

  • Error severity at ERROR level
  • Warning severity at WARN level
  • Invalid/Unknown severity at WARN level

func (Diagnostics) WarningCount

func (d Diagnostics) WarningCount() int

WarningCount returns the number of warning severity diagnostics.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL