We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent4d4c01c commitd2faab0Copy full SHA for d2faab0
libpod/runtime.go
@@ -531,7 +531,15 @@ func makeRuntime(ctx context.Context, runtime *Runtime) (retErr error) {
531
532
// Using sync once value to only init the store exactly once and only when it will be actually be used.
533
runtime.ArtifactStore=sync.OnceValues(func() (*artStore.ArtifactStore,error) {
534
-returnartStore.NewArtifactStore(filepath.Join(runtime.storageConfig.GraphRoot,"artifacts"),runtime.SystemContext())
+artifactEventCallBack:=func(status,name,digeststring,attributesmap[string]string) {
535
+eventStatus,err:=events.StringToStatus(status)
536
+iferr!=nil {
537
+logrus.Errorf("Unknown artifact event status %q: %v",status,err)
538
+return
539
+}
540
+runtime.NewArtifactEvent(eventStatus,name,digest,attributes)
541
542
+returnartStore.NewArtifactStoreWithEventCallback(filepath.Join(runtime.storageConfig.GraphRoot,"artifacts"),runtime.SystemContext(),artifactEventCallBack)
543
})
544
}
545