MCPcopy
hub / github.com/containers/toolbox / getImageSizeFromRegistryAsync

Function getImageSizeFromRegistryAsync

src/cmd/create.go:593–608  ·  view source on GitHub ↗
(ctx context.Context, imageFull string)

Source from the content-addressed store, hash-verified

591}
592
593func 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
610func getServiceSocket(serviceName string, unitName string) (string, error) {
611 logrus.Debugf("Resolving path to the %s socket", serviceName)

Callers 1

Calls 1

getImageSizeFromRegistryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…