Merge pull request #6355 from thaJeztah/rm_image_pull
cli/command/image: remove exported RunPull, PullOptions
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user