(ctx context.Context, po PullOptions, services []string)
| 33 | } |
| 34 | |
| 35 | func (c *Composer) Pull(ctx context.Context, po PullOptions, services []string) error { |
| 36 | return c.project.ForEachService(services, func(name string, svc *types.ServiceConfig) error { |
| 37 | ps, err := serviceparser.Parse(c.project, *svc) |
| 38 | if err != nil { |
| 39 | return err |
| 40 | } |
| 41 | return c.pullServiceImage(ctx, ps.Image, ps.Unparsed.Platform, ps, po) |
| 42 | }) |
| 43 | } |
| 44 | |
| 45 | func (c *Composer) pullServiceImage(ctx context.Context, image string, platform string, ps *serviceparser.Service, po PullOptions) error { |
| 46 | log.G(ctx).Infof("Pulling image %s", image) |
no test coverage detected