1
0
mirror of https://github.com/docker/cli.git synced 2026-01-13 18:22:35 +03:00

cli/command/image: remove exported RunPull, PullOptions

These were exported in 812f113685, but
while the function and options are exported, the option-fields were
all un-exported, so these were not usable.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-08-23 03:35:51 +02:00
parent 1df8feb2e4
commit 9216f04eb6

View File

@@ -14,9 +14,6 @@ import (
"github.com/spf13/cobra"
)
// PullOptions defines what and how to pull
type PullOptions = pullOptions
// pullOptions defines what and how to pull.
type pullOptions struct {
remote string
@@ -58,11 +55,6 @@ func newPullCommand(dockerCLI command.Cli) *cobra.Command {
return cmd
}
// RunPull performs a pull against the engine based on the specified options
func RunPull(ctx context.Context, dockerCLI command.Cli, opts PullOptions) error {
return runPull(ctx, dockerCLI, opts)
}
// runPull performs a pull against the engine based on the specified options
func runPull(ctx context.Context, dockerCLI command.Cli, opts pullOptions) error {
distributionRef, err := reference.ParseNormalizedNamed(opts.remote)