drift

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 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 Detector

type Detector struct {
	// contains filtered or unexported fields
}

Detector handles drift detection for resources

func NewDetector

func NewDetector(providerRegistry *providers.ProviderRegistry) *Detector

NewDetector creates a new drift detector

func (*Detector) AutoHeal

func (d *Detector) AutoHeal(ctx context.Context, instance config.ResourceInstance, driftResult *providers.DriftResult) error

AutoHeal attempts to automatically heal drift for resources with auto-heal enabled

func (*Detector) DetectDrift

func (d *Detector) DetectDrift(ctx context.Context, instance config.ResourceInstance) (*providers.DriftResult, error)

DetectDrift detects drift for a single resource instance

func (*Detector) DetectDriftBatch

func (d *Detector) DetectDriftBatch(ctx context.Context, instances []config.ResourceInstance) (map[string]*providers.DriftResult, error)

DetectDriftBatch detects drift for multiple resource instances

func (*Detector) GenerateDriftSummary

func (d *Detector) GenerateDriftSummary(results map[string]*providers.DriftResult) *DriftSummary

GenerateDriftSummary generates a summary of drift detection results

type DriftSummary

type DriftSummary struct {
	TotalResources     int
	ResourcesWithDrift int
	DriftResults       map[string]*providers.DriftResult
}

DriftSummary represents a summary of drift detection results

Jump to

Keyboard shortcuts

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