diff --git a/client/image_load.go b/client/image_load.go index 2be1869297..23a7d940d8 100644 --- a/client/image_load.go +++ b/client/image_load.go @@ -7,13 +7,9 @@ import ( "net/url" ) -// ImageLoad loads an image in the docker host from the client host. -// It's up to the caller to close the [io.ReadCloser] in the -// [ImageLoadResult] returned by this function. -// -// Platform is an optional parameter that specifies the platform to load from -// the provided multi-platform image. Passing a platform only has an effect -// if the input image is a multi-platform image. +// ImageLoad loads an image in the docker host from the client host. It's up +// to the caller to close the [io.ReadCloser] in the [ImageLoadResult] +// returned by this function. func (cli *Client) ImageLoad(ctx context.Context, input io.Reader, loadOpts ...ImageLoadOption) (ImageLoadResult, error) { var opts imageLoadOpts for _, opt := range loadOpts { diff --git a/client/image_load_opts.go b/client/image_load_opts.go index 8792f64a0c..aeb4fcf839 100644 --- a/client/image_load_opts.go +++ b/client/image_load_opts.go @@ -38,6 +38,10 @@ func ImageLoadWithQuiet(quiet bool) ImageLoadOption { } // ImageLoadWithPlatforms sets the platforms to be loaded from the image. +// +// Platform is an optional parameter that specifies the platform to load from +// the provided multi-platform image. Passing a platform only has an effect +// if the input image is a multi-platform image. func ImageLoadWithPlatforms(platforms ...ocispec.Platform) ImageLoadOption { return imageLoadOptionFunc(func(opt *imageLoadOpts) error { if opt.apiOptions.Platforms != nil { diff --git a/vendor/github.com/moby/moby/client/image_load.go b/vendor/github.com/moby/moby/client/image_load.go index 2be1869297..23a7d940d8 100644 --- a/vendor/github.com/moby/moby/client/image_load.go +++ b/vendor/github.com/moby/moby/client/image_load.go @@ -7,13 +7,9 @@ import ( "net/url" ) -// ImageLoad loads an image in the docker host from the client host. -// It's up to the caller to close the [io.ReadCloser] in the -// [ImageLoadResult] returned by this function. -// -// Platform is an optional parameter that specifies the platform to load from -// the provided multi-platform image. Passing a platform only has an effect -// if the input image is a multi-platform image. +// ImageLoad loads an image in the docker host from the client host. It's up +// to the caller to close the [io.ReadCloser] in the [ImageLoadResult] +// returned by this function. func (cli *Client) ImageLoad(ctx context.Context, input io.Reader, loadOpts ...ImageLoadOption) (ImageLoadResult, error) { var opts imageLoadOpts for _, opt := range loadOpts { diff --git a/vendor/github.com/moby/moby/client/image_load_opts.go b/vendor/github.com/moby/moby/client/image_load_opts.go index 8792f64a0c..aeb4fcf839 100644 --- a/vendor/github.com/moby/moby/client/image_load_opts.go +++ b/vendor/github.com/moby/moby/client/image_load_opts.go @@ -38,6 +38,10 @@ func ImageLoadWithQuiet(quiet bool) ImageLoadOption { } // ImageLoadWithPlatforms sets the platforms to be loaded from the image. +// +// Platform is an optional parameter that specifies the platform to load from +// the provided multi-platform image. Passing a platform only has an effect +// if the input image is a multi-platform image. func ImageLoadWithPlatforms(platforms ...ocispec.Platform) ImageLoadOption { return imageLoadOptionFunc(func(opt *imageLoadOpts) error { if opt.apiOptions.Platforms != nil {