client: un-export NewVersionError, rename to requiresVersion

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-10-29 12:43:08 +01:00
parent 7041c02abd
commit 2d6bf9332b
12 changed files with 20 additions and 20 deletions

View File

@@ -50,7 +50,7 @@ func (cli *Client) ImagePush(ctx context.Context, image string, options ImagePus
}
if options.Platform != nil {
if err := cli.NewVersionError(ctx, "1.46", "platform"); err != nil {
if err := cli.requiresVersion(ctx, "1.46", "platform"); err != nil {
return nil, err
}