Read publication inventory without execution snapshots

This commit is contained in:
2026-12-02 15:44:52 +00:00
parent 7ad8deb381
commit ebdf8b522f
14 changed files with 194 additions and 41 deletions

View File

@@ -24,6 +24,7 @@ type commandDependencies struct {
newAudita func(*config.Config) (audita.Runner, error)
newNotarius func() notarius.Runner
discoverRemoteCurrentState func(context.Context, *config.Config, storage.ObjectStore) (*RemoteCurrentState, error)
discoverRemotePublication func(context.Context, *config.Config, storage.ObjectStore) (*RemoteCurrentState, error)
buildRestorePlan func(context.Context, *config.Config, *RemoteCurrentState, storage.ObjectStore, RestorePlanOptions) (*RestorePlan, error)
executeRestorePlan func(context.Context, *config.Config, *RemoteCurrentState, *RestorePlan, *RestoreReport, storage.ObjectStore) (*RestoreExecutionResult, error)
}
@@ -55,6 +56,9 @@ func normalizeCommandDependencies(deps commandDependencies) commandDependencies
if deps.discoverRemoteCurrentState == nil {
deps.discoverRemoteCurrentState = discoverRemoteCurrentState
}
if deps.discoverRemotePublication == nil {
deps.discoverRemotePublication = discoverRemotePublication
}
if deps.buildRestorePlan == nil {
deps.buildRestorePlan = buildRestorePlan
}