(ctx context.Context, imageFull string)
| 591 | } |
| 592 | |
| 593 | func getImageSizeFromRegistryAsync(ctx context.Context, imageFull string) (<-chan string, <-chan error) { |
| 594 | retValCh := make(chan string) |
| 595 | errCh := make(chan error) |
| 596 | |
| 597 | go func() { |
| 598 | imageSize, err := getImageSizeFromRegistry(ctx, imageFull) |
| 599 | if err != nil { |
| 600 | errCh <- err |
| 601 | return |
| 602 | } |
| 603 | |
| 604 | retValCh <- imageSize |
| 605 | }() |
| 606 | |
| 607 | return retValCh, errCh |
| 608 | } |
| 609 | |
| 610 | func getServiceSocket(serviceName string, unitName string) (string, error) { |
| 611 | logrus.Debugf("Resolving path to the %s socket", serviceName) |
no test coverage detected
searching dependent graphs…