From 59f71219b7c5887ef2506e03fde45f2cf1f8b375 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Wed, 31 Aug 2022 21:05:33 +0200 Subject: [PATCH] pkg/utils: Mark a private function as such Figuring out the container name prefix for a given image only needs to happen as part of resolving the final Toolbox container name from the given command line and configuration options. Fallout from c990fb43cad5f1704584f119ba4f57074c1d0bc9 https://github.com/containers/toolbox/pull/1098 --- src/pkg/utils/utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkg/utils/utils.go b/src/pkg/utils/utils.go index 00b94d7..28a27e0 100644 --- a/src/pkg/utils/utils.go +++ b/src/pkg/utils/utils.go @@ -231,7 +231,7 @@ func GetCgroupsVersion() (int, error) { return version, nil } -func GetContainerNamePrefixForImage(image string) (string, error) { +func getContainerNamePrefixForImage(image string) (string, error) { basename := ImageReferenceGetBasename(image) if basename == "" { return "", fmt.Errorf("failed to get the basename of image %s", image) @@ -739,7 +739,7 @@ func ResolveContainerName(container, image, release string) (string, error) { if container == "" { var err error - container, err = GetContainerNamePrefixForImage(image) + container, err = getContainerNamePrefixForImage(image) if err != nil { return "", err }