github.com/quay/claircore@v1.5.28/indexer/controller/indexmanifest.go (about) 1 package controller 2 3 import ( 4 "context" 5 "fmt" 6 7 "github.com/quay/zlog" 8 ) 9 10 func indexManifest(ctx context.Context, c *Controller) (State, error) { 11 zlog.Info(ctx).Msg("starting index manifest") 12 13 if c.report == nil { 14 return Terminal, fmt.Errorf("reached IndexManifest state with a nil report field. cannot continue") 15 } 16 17 err := c.Store.IndexManifest(ctx, c.report) 18 if err != nil { 19 return Terminal, fmt.Errorf("indexing manifest contents failed: %w", err) 20 } 21 return IndexFinished, nil 22 }