Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DependencyDriftRecommendation ¶ added in v0.6.2
type DependencyDriftRecommendation string
DependencyDriftRecommendation describes the suggested action for dependency updates.
const ( DependencyDriftRecommendationSuggestUpdate DependencyDriftRecommendation = "suggest_update" DependencyDriftRecommendationAlertReview DependencyDriftRecommendation = "alert_review" )
type DependencyDriftStatus ¶ added in v0.6.2
type DependencyDriftStatus struct {
DependencyName string
CurrentTag string
TargetTag string
Severity DriftSeverity
Recommendation DependencyDriftRecommendation
}
DependencyDriftStatus describes drift status for a dependency update candidate.
type DriftDetectionResult ¶ added in v0.6.0
type DriftDetectionResult struct {
TagID string
ModuleID string
Added []DriftEvent
Modified []DriftEvent
Deleted []DriftEvent
}
DriftDetectionResult holds the results of drift detection for a tag
func (*DriftDetectionResult) HasDrift ¶ added in v0.6.0
func (r *DriftDetectionResult) HasDrift() bool
HasDrift returns true if any drift was detected
func (*DriftDetectionResult) TotalChanges ¶ added in v0.6.0
func (r *DriftDetectionResult) TotalChanges() int
TotalChanges returns the total number of changes detected
type DriftEvent ¶ added in v0.6.0
type DriftEvent struct {
ID string
ModuleID string
ModuleName string
TagID string
TagName string
Filename string
EventType DriftEventType
PreviousHash string
CurrentHash string
Severity DriftSeverity
DetectedAt time.Time
Acknowledged bool
AcknowledgedAt *time.Time
AcknowledgedBy string
}
DriftEvent represents a detected change in a proto file
type DriftEventType ¶ added in v0.6.0
type DriftEventType string
DriftEventType represents the type of drift event
const ( DriftEventTypeAdded DriftEventType = "added" DriftEventTypeModified DriftEventType = "modified" DriftEventTypeDeleted DriftEventType = "deleted" )
type DriftSeverity ¶ added in v0.6.0
type DriftSeverity string
DriftSeverity represents the severity level of a drift event
const ( DriftSeverityInfo DriftSeverity = "info" DriftSeverityWarning DriftSeverity = "warning" DriftSeverityCritical DriftSeverity = "critical" )
type ParsedProtoFile ¶
type Permission ¶ added in v0.5.0
type Permission string
const ( PermissionRead Permission = "read" PermissionWrite Permission = "write" PermissionAdmin Permission = "admin" )
type ProtoFileHash ¶ added in v0.6.0
ProtoFileHash represents a proto file with its content hash
Click to show internal directories.
Click to hide internal directories.