Merge pull request #9324 from thaJeztah/checkpoint_errs
client: remove obsolete ErrCheckpointRWUnsupported
This commit is contained in:
commit
186075d554
@ -36,12 +36,8 @@ import (
|
|||||||
imagespec "github.com/opencontainers/image-spec/specs-go/v1"
|
imagespec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
// ErrMediaTypeNotFound returns an error when a media type in the manifest is unknown
|
||||||
// ErrCheckpointRWUnsupported is returned if the container runtime does not support checkpoint
|
var ErrMediaTypeNotFound = errors.New("media type not found")
|
||||||
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")
|
|
||||||
)
|
|
||||||
|
|
||||||
// CheckpointOpts are options to manage the checkpoint operation
|
// CheckpointOpts are options to manage the checkpoint operation
|
||||||
type CheckpointOpts func(context.Context, *Client, *containers.Container, *imagespec.Index, *options.CheckpointOptions) error
|
type CheckpointOpts func(context.Context, *Client, *containers.Container, *imagespec.Index, *options.CheckpointOptions) error
|
||||||
|
Loading…
Reference in New Issue
Block a user