pullImage does not need to be exported

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh 2024-02-22 07:33:21 -05:00
parent 2c9c7273ca
commit e5ee0bb5f3
No known key found for this signature in database
GPG Key ID: A2DF901DABE2C028
3 changed files with 4 additions and 4 deletions

View File

@ -63,7 +63,7 @@ func clone(cmd *cobra.Command, args []string) error {
ctrClone.Image = args[2]
if !cliVals.RootFS {
rawImageName := args[0]
name, err := PullImage(ctrClone.Image, &ctrClone.CreateOpts)
name, err := pullImage(ctrClone.Image, &ctrClone.CreateOpts)
if err != nil {
return err
}

View File

@ -142,7 +142,7 @@ func create(cmd *cobra.Command, args []string) error {
rawImageName := ""
if !cliVals.RootFS {
rawImageName = args[0]
name, err := PullImage(args[0], &cliVals)
name, err := pullImage(args[0], &cliVals)
if err != nil {
return err
}
@ -336,7 +336,7 @@ func CreateInit(c *cobra.Command, vals entities.ContainerCreateOptions, isInfra
}
// Pulls image if any also parses and populates OS, Arch and Variant in specified container create options
func PullImage(imageName string, cliVals *entities.ContainerCreateOptions) (string, error) {
func pullImage(imageName string, cliVals *entities.ContainerCreateOptions) (string, error) {
pullPolicy, err := config.ParsePullPolicy(cliVals.Pull)
if err != nil {
return "", err

View File

@ -150,7 +150,7 @@ func run(cmd *cobra.Command, args []string) error {
rawImageName := ""
if !cliVals.RootFS {
rawImageName = args[0]
name, err := PullImage(args[0], &cliVals)
name, err := pullImage(args[0], &cliVals)
if err != nil {
return err
}