Skip to content

Commit 59f7121

Browse files
committed
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 c990fb4 containers#1098
1 parent e6c9c0c commit 59f7121

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pkg/utils/utils.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ func GetCgroupsVersion() (int, error) {
231231
return version, nil
232232
}
233233

234-
func GetContainerNamePrefixForImage(image string) (string, error) {
234+
func getContainerNamePrefixForImage(image string) (string, error) {
235235
basename := ImageReferenceGetBasename(image)
236236
if basename == "" {
237237
return "", fmt.Errorf("failed to get the basename of image %s", image)
@@ -739,7 +739,7 @@ func ResolveContainerName(container, image, release string) (string, error) {
739739

740740
if container == "" {
741741
var err error
742-
container, err = GetContainerNamePrefixForImage(image)
742+
container, err = getContainerNamePrefixForImage(image)
743743
if err != nil {
744744
return "", err
745745
}

0 commit comments

Comments
 (0)