func scanLayers(ctx context.Context, c *Controller) (State, error) {
	log := zerolog.Ctx(ctx)
	log.Info().Msg("layers scan start")
	defer log.Info().Msg("layers scan done")
	err := c.LayerScanner.Scan(ctx, c.manifest.Hash, c.manifest.Layers)
	if err != nil {
		return Terminal, fmt.Errorf("failed to scan all layer contents: %v", err)
	}
	log.Debug().Msg("layers scan ok")
	return Coalesce, nil
}
// scanLayers will run all scanner types against all layers if deemed necssary to scan
scanLayers will run all scanner types against all layers if deemed necssary to scan
// scanLayers will run all scanner types against all layers if deemed necssary to scan
func scanLayers(ctx context.Context, c *Controller) (State, error) {
	log := zerolog.Ctx(ctx)
	log.Info().Msg("layers scan start")
	defer log.Info().Msg("layers scan done")
	err := c.LayerScanner.Scan(ctx, c.manifest.Hash, c.manifest.Layers)
	if err != nil {
		return Terminal, fmt.Errorf("failed to scan all layer contents: %v", err)
	}
	log.Debug().Msg("layers scan ok")
	return Coalesce, nil
}
func scanLayers ( ctx context . Context , c * Controller ) ( State , error ) { log := zerolog . Ctx ( ctx ) log . Info ( ) . Msg ( " " ) defer log . Info ( ) . Msg ( " " ) err := c . LayerScanner . Scan ( ctx , c . manifest . Hash , c . manifest . Layers ) if err != nil { return Terminal , fmt . Errorf ( " " , err ) } log . Debug ( ) . Msg ( " " ) return Coalesce , nil }
scanLayers will run all scanner types against all layers if deemed necssary to scan
scanLayers will run all scanner types against all layers if deemed necssary to scan