Integrate artifact locks into publish
This commit is contained in:
@@ -15,17 +15,15 @@ import (
|
||||
)
|
||||
|
||||
type invocationDependencies struct {
|
||||
now func() time.Time
|
||||
newRunID func() (string, error)
|
||||
newWhisperX func(*config.Config) (whisperx.Client, error)
|
||||
newSeriatim func(*config.Config) (seriatim.Runner, error)
|
||||
newAudita func(*config.Config) (audita.Runner, error)
|
||||
newNotarius func() notarius.Runner
|
||||
newScriptorium func() scriptorium.Runner
|
||||
newObjectStore func(context.Context, *config.Config) (storage.ObjectStore, error)
|
||||
loadEffectiveLocks func(context.Context, *config.Config, storage.ObjectStore) (*effectiveLocks, error)
|
||||
loadRemoteLockStore func(context.Context, *config.Config, storage.ObjectStore) (*config.PublishLockStore, string, string, error)
|
||||
removeScopedDir func(root, target, policy string) error
|
||||
now func() time.Time
|
||||
newRunID func() (string, error)
|
||||
newWhisperX func(*config.Config) (whisperx.Client, error)
|
||||
newSeriatim func(*config.Config) (seriatim.Runner, error)
|
||||
newAudita func(*config.Config) (audita.Runner, error)
|
||||
newNotarius func() notarius.Runner
|
||||
newScriptorium func() scriptorium.Runner
|
||||
newObjectStore func(context.Context, *config.Config) (storage.ObjectStore, error)
|
||||
removeScopedDir func(root, target, policy string) error
|
||||
}
|
||||
|
||||
func (dependencies invocationDependencies) normalized() invocationDependencies {
|
||||
@@ -55,12 +53,6 @@ func (dependencies invocationDependencies) normalized() invocationDependencies {
|
||||
return initializeObjectStoreBackend(ctx, cfg, storage.NewObjectStoreFromConfig)
|
||||
}
|
||||
}
|
||||
if dependencies.loadEffectiveLocks == nil {
|
||||
dependencies.loadEffectiveLocks = loadEffectiveLocks
|
||||
}
|
||||
if dependencies.loadRemoteLockStore == nil {
|
||||
dependencies.loadRemoteLockStore = loadRemoteLockStore
|
||||
}
|
||||
if dependencies.removeScopedDir == nil {
|
||||
dependencies.removeScopedDir = removeRunScopedDir
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user