parser

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category added in v0.0.2

type Category string
const (
	Workload   Category = "WORKLOAD"
	Networking Category = "NETWORKING"
	Security   Category = "SECURITY"
	Storage    Category = "STORAGE"
	Platform   Category = "PLATFORM"
	Config     Category = "CONFIG"
	Unknown    Category = "UNKNOWN"
)

type ChangeType

type ChangeType string
const (
	Create ChangeType = "CREATE"
	Update ChangeType = "UPDATE"
	Delete ChangeType = "DELETE"
)

type ResourceDiff

type ResourceDiff struct {
	Kind         string     `yaml:"kind,omitempty"          json:"kind,omitempty"`
	Name         string     `yaml:"name,omitempty"          json:"name,omitempty"`
	Namespace    string     `yaml:"namespace,omitempty"     json:"namespace,omitempty"`
	ChangeType   ChangeType `yaml:"change_type,omitempty"   json:"change_type,omitempty"`
	Severity     Severity   `yaml:"severity,omitempty"      json:"severity,omitempty"`
	Category     Category   `yaml:"category,omitempty"      json:"category,omitempty"`
	Additions    int        `yaml:"additions,omitempty"     json:"additions,omitempty"`
	Deletions    int        `yaml:"deletions,omitempty"     json:"deletions,omitempty"`
	ChangedLines int        `yaml:"changed_lines,omitempty" json:"changed_lines,omitempty"`
}

func Parse

func Parse(r io.Reader) ([]ResourceDiff, error)

Parse parses the helm diff output to get the summary.

type Severity added in v0.0.2

type Severity string
const (
	Low      Severity = "LOW"
	Medium   Severity = "MEDIUM"
	High     Severity = "HIGH"
	Critical Severity = "CRITICAL"
)

func ParseSeverity added in v0.0.2

func ParseSeverity(value string) (Severity, error)

Jump to

Keyboard shortcuts

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