drift

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Packages drift provides functionality for detecting stale or invalid context.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Issue

type Issue struct {
	File    string `json:"file"`
	Line    int    `json:"line,omitempty"`
	Type    string `json:"type"`
	Message string `json:"message"`
	Path    string `json:"path,omitempty"`
	Rule    string `json:"rule,omitempty"`
}

Issue represents a detected drift issue.

type Report

type Report struct {
	Warnings   []Issue  `json:"warnings"`
	Violations []Issue  `json:"violations"`
	Passed     []string `json:"passed"`
}

Report represents the complete drift detection report.

func Detect

func Detect(ctx *context.Context) *Report

Detect runs all drift detection checks on the given context.

func (*Report) Status

func (r *Report) Status() string

Status returns the overall status of the report.

Jump to

Keyboard shortcuts

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