(ctx context.Context, project *types.Project)
| 153 | } |
| 154 | |
| 155 | func (s *composeService) ensureProjectVolumes(ctx context.Context, project *types.Project) (map[string]string, error) { |
| 156 | ids := map[string]string{} |
| 157 | for k, volume := range project.Volumes { |
| 158 | volume.CustomLabels = volume.CustomLabels.Add(api.VolumeLabel, k) |
| 159 | volume.CustomLabels = volume.CustomLabels.Add(api.ProjectLabel, project.Name) |
| 160 | volume.CustomLabels = volume.CustomLabels.Add(api.VersionLabel, api.ComposeVersion) |
| 161 | id, err := s.ensureVolume(ctx, k, volume, project) |
| 162 | if err != nil { |
| 163 | return nil, err |
| 164 | } |
| 165 | ids[k] = id |
| 166 | } |
| 167 | |
| 168 | return ids, nil |
| 169 | } |
| 170 | |
| 171 | //nolint:gocyclo |
| 172 | func (s *composeService) getCreateConfigs(ctx context.Context, |
no test coverage detected