Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BumpOnFileChangeStrategy ¶
BumpOnFileChangeStrategy bumps epoch only when actual file changes are made
func (*BumpOnFileChangeStrategy) CalculateNewEpoch ¶
func (b *BumpOnFileChangeStrategy) CalculateNewEpoch(p processor.Processor) int64
func (*BumpOnFileChangeStrategy) GetReason ¶
func (b *BumpOnFileChangeStrategy) GetReason() string
func (*BumpOnFileChangeStrategy) ShouldUpdateEpoch ¶
func (b *BumpOnFileChangeStrategy) ShouldUpdateEpoch(p processor.Processor) bool
type BumpOnSecurityFixStrategy ¶
BumpOnSecurityFixStrategy bumps epoch by 1 for security fixes
func (*BumpOnSecurityFixStrategy) CalculateNewEpoch ¶
func (b *BumpOnSecurityFixStrategy) CalculateNewEpoch(p processor.Processor) int64
func (*BumpOnSecurityFixStrategy) GetReason ¶
func (b *BumpOnSecurityFixStrategy) GetReason() string
func (*BumpOnSecurityFixStrategy) ShouldUpdateEpoch ¶
func (b *BumpOnSecurityFixStrategy) ShouldUpdateEpoch(p processor.Processor) bool
type CompositeEpochStrategy ¶
type CompositeEpochStrategy struct {
Strategies []EpochStrategy
}
CompositeEpochStrategy combines multiple strategies with priority order
func (*CompositeEpochStrategy) CalculateNewEpoch ¶
func (c *CompositeEpochStrategy) CalculateNewEpoch(p processor.Processor) int64
func (*CompositeEpochStrategy) GetReason ¶
func (c *CompositeEpochStrategy) GetReason() string
func (*CompositeEpochStrategy) ShouldUpdateEpoch ¶
func (c *CompositeEpochStrategy) ShouldUpdateEpoch(p processor.Processor) bool
type EpochStage ¶
type EpochStage struct {
processor.BaseStage
Strategy EpochStrategy
}
EpochStage handles epoch updates using a configurable strategy
func NewEpochStage ¶
func NewEpochStage(strategy EpochStrategy) *EpochStage
NewEpochStage creates a new epoch stage with the given strategy
type EpochStrategy ¶
type EpochStrategy interface {
ShouldUpdateEpoch(p processor.Processor) bool
CalculateNewEpoch(p processor.Processor) int64
GetReason() string
}
EpochStrategy defines how epoch should be handled
type FileWriterStage ¶
FileWriterStage handles writing changes to disk
func NewFileWriterStage ¶
func NewFileWriterStage(createBackup bool, backupSuffix string) *FileWriterStage
NewFileWriterStage creates a new file writer stage
type ResetOnVersionChangeStrategy ¶
type ResetOnVersionChangeStrategy struct{}
ResetOnVersionChangeStrategy resets epoch to 0 when version changes
func (*ResetOnVersionChangeStrategy) CalculateNewEpoch ¶
func (r *ResetOnVersionChangeStrategy) CalculateNewEpoch(p processor.Processor) int64
func (*ResetOnVersionChangeStrategy) GetReason ¶
func (r *ResetOnVersionChangeStrategy) GetReason() string
func (*ResetOnVersionChangeStrategy) ShouldUpdateEpoch ¶
func (r *ResetOnVersionChangeStrategy) ShouldUpdateEpoch(p processor.Processor) bool
type ValidationStage ¶
type ValidationStage struct {
processor.BaseStage
ValidateOriginal bool // Also validate original YAML
ValidateCurrent bool // Validate current YAML
}
ValidationStage validates YAML syntax and structure
func NewValidationStage ¶
func NewValidationStage(validateOriginal, validateCurrent bool) *ValidationStage
NewValidationStage creates a new validation stage