(ref reference.Named, configFile authProvider)
| 278 | } |
| 279 | |
| 280 | func encodedAuth(ref reference.Named, configFile authProvider) (string, error) { |
| 281 | authConfig, err := configFile.GetAuthConfig(registry.GetAuthConfigKey(reference.Domain(ref))) |
| 282 | if err != nil { |
| 283 | return "", err |
| 284 | } |
| 285 | |
| 286 | buf, err := json.Marshal(authConfig) |
| 287 | if err != nil { |
| 288 | return "", err |
| 289 | } |
| 290 | return base64.URLEncoding.EncodeToString(buf), nil |
| 291 | } |
| 292 | |
| 293 | func (s *composeService) pullRequiredImages(ctx context.Context, project *types.Project, images map[string]api.ImageSummary, quietPull bool) error { |
| 294 | needPull := map[string]types.ServiceConfig{} |
no test coverage detected