Documentation
¶
Index ¶
- type Detector
- func (d *Detector) AutoHeal(ctx context.Context, instance config.ResourceInstance, ...) error
- func (d *Detector) DetectDrift(ctx context.Context, instance config.ResourceInstance) (*providers.DriftResult, error)
- func (d *Detector) DetectDriftBatch(ctx context.Context, instances []config.ResourceInstance) (map[string]*providers.DriftResult, error)
- func (d *Detector) GenerateDriftSummary(results map[string]*providers.DriftResult) *DriftSummary
- type DriftSummary
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
Click to show internal directories.
Click to hide internal directories.