From 68cac3f62fec24313fc8d59d00b741741f513b36 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 2 Nov 2023 09:49:14 +0100 Subject: [PATCH] client: remove obsolete ErrCheckpointRWUnsupported runtime v1 is deprecated, and this error appears to be unused. Signed-off-by: Sebastiaan van Stijn --- client/container_checkpoint_opts.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/client/container_checkpoint_opts.go b/client/container_checkpoint_opts.go index 50ba226b0..61aea49b2 100644 --- a/client/container_checkpoint_opts.go +++ b/client/container_checkpoint_opts.go @@ -36,12 +36,8 @@ import ( imagespec "github.com/opencontainers/image-spec/specs-go/v1" ) -var ( - // ErrCheckpointRWUnsupported is returned if the container runtime does not support checkpoint - ErrCheckpointRWUnsupported = errors.New("rw checkpoint is only supported on v2 runtimes") - // ErrMediaTypeNotFound returns an error when a media type in the manifest is unknown - ErrMediaTypeNotFound = errors.New("media type not found") -) +// ErrMediaTypeNotFound returns an error when a media type in the manifest is unknown +var ErrMediaTypeNotFound = errors.New("media type not found") // CheckpointOpts are options to manage the checkpoint operation type CheckpointOpts func(context.Context, *Client, *containers.Container, *imagespec.Index, *options.CheckpointOptions) error