Versions in this module Expand all Collapse all v0 v0.1.0 Oct 18, 2025 Changes in this version + type ApplyStage interface + Apply func(ctx context.Context, p Processor) error + type BaseProcessor struct + Changes []Change + Config *melange.Configuration + Context map[string]any + CurrentEpoch int64 + CurrentVersion string + CurrentYAML []byte + EpochChanged bool + Errors []error + FilePath string + LatestVersion string + Logger *slog.Logger + Messages []string + NewEpoch int64 + NewVersion string + OldEpoch int64 + OldVersion string + Options ProcessorOptions + OriginalYAML []byte + PackageName string + VersionChanged bool + func NewBaseProcessor(filePath, packageName, currentVersion string, currentEpoch int64) *BaseProcessor + func (bp *BaseProcessor) AddChange(change Change) + func (bp *BaseProcessor) AddError(err error) + func (bp *BaseProcessor) AddMessage(message string) + func (bp *BaseProcessor) GetChanges() []Change + func (bp *BaseProcessor) GetConfig() *melange.Configuration + func (bp *BaseProcessor) GetContext(key string) any + func (bp *BaseProcessor) GetCurrentEpoch() int64 + func (bp *BaseProcessor) GetCurrentVersion() string + func (bp *BaseProcessor) GetCurrentYAML() []byte + func (bp *BaseProcessor) GetErrors() []error + func (bp *BaseProcessor) GetFilePath() string + func (bp *BaseProcessor) GetLatestVersion() string + func (bp *BaseProcessor) GetLogger() *slog.Logger + func (bp *BaseProcessor) GetMessages() []string + func (bp *BaseProcessor) GetNewEpoch() int64 + func (bp *BaseProcessor) GetOptions() ProcessorOptions + func (bp *BaseProcessor) GetOriginalYAML() []byte + func (bp *BaseProcessor) GetPackageName() string + func (bp *BaseProcessor) HasChanges() bool + func (bp *BaseProcessor) HasFileChanges() bool + func (bp *BaseProcessor) IsEpochChanged() bool + func (bp *BaseProcessor) IsVersionChanged() bool + func (bp *BaseProcessor) SetContext(key string, value any) + func (bp *BaseProcessor) SetCurrentYAML(yaml []byte) + func (bp *BaseProcessor) SetEpochUpdate(old, new int64) + func (bp *BaseProcessor) SetOptions(opts ProcessorOptions) + func (bp *BaseProcessor) SetVersionUpdate(old, new string) + type BaseStage struct + StageDescription string + StageName string + func (bs *BaseStage) Description() string + func (bs *BaseStage) Name() string + func (bs *BaseStage) ShouldRun(ctx context.Context, p Processor) (bool, error) + type Change struct + Description string + Field string + NewValue string + OldValue string + Reason string + Type string + type CheckStage interface + Check func(ctx context.Context, p Processor) error + type ExecutableStage interface + Execute func(ctx context.Context, p Processor) error + type Pipeline struct + Name string + Options PipelineOptions + Registry *StageRegistry + Stages []Stage + func NewPipeline(name string) *Pipeline + func (p *Pipeline) AddStage(stage Stage) + func (p *Pipeline) AddStages(stages ...Stage) + func (p *Pipeline) Execute(ctx context.Context, processor Processor) error + func (p *Pipeline) SetOptions(opts PipelineOptions) + type PipelineOptions struct + ParallelExecution bool + SkipValidation bool + StopOnError bool + type Processor interface + AddChange func(Change) + AddError func(error) + AddMessage func(string) + GetChanges func() []Change + GetConfig func() *melange.Configuration + GetContext func(key string) any + GetCurrentEpoch func() int64 + GetCurrentVersion func() string + GetCurrentYAML func() []byte + GetErrors func() []error + GetFilePath func() string + GetLatestVersion func() string + GetLogger func() *slog.Logger + GetMessages func() []string + GetNewEpoch func() int64 + GetOptions func() ProcessorOptions + GetOriginalYAML func() []byte + GetPackageName func() string + HasChanges func() bool + HasFileChanges func() bool + IsEpochChanged func() bool + IsVersionChanged func() bool + SetContext func(key string, value any) + SetCurrentYAML func([]byte) + SetEpochUpdate func(old, new int64) + SetOptions func(ProcessorOptions) + SetVersionUpdate func(old, new string) + type ProcessorOptions struct + BackupSuffix string + DryRun bool + Force bool + SharedUpdates bool + TempDir string + type Stage interface + Description func() string + Name func() string + ShouldRun func(ctx context.Context, p Processor) (bool, error) + type StageRegistry struct + func NewStageRegistry() *StageRegistry + func (r *StageRegistry) Create(name string) (Stage, error) + func (r *StageRegistry) ListStages() []string + func (r *StageRegistry) Register(name string, constructor func() Stage) + type ValidatingStage interface + Validate func(ctx context.Context, p Processor) error