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 c990fb43ca

https://github.com/containers/toolbox/pull/1098
This commit is contained in:
Debarshi Ray 2022-08-31 21:05:33 +02:00
parent e6c9c0c925
commit 59f71219b7

View file

@ -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
}