mirror of
https://github.com/moby/moby.git
synced 2026-08-04 15:11:00 +00:00
The CommonAPIClient was used to define all the stable interfaces, and combined with the experimental ones through APIClient. In theory, this would allow someone to make sure they only depended on non-experimental methods or to implement an alternative client that only implements the stable methods. While there are users currently using this interface, all those uses depend on the actual client implementation, not a custom one, so they should be able to switch to use APIClient instead. In the meantime, start with deprecating, but keeping the interface the same for now, scheduling it to become an alias, and removed in a future release. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
19 lines
717 B
Go
19 lines
717 B
Go
package client // import "github.com/docker/docker/client"
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/docker/docker/api/types/checkpoint"
|
|
)
|
|
|
|
// CheckpointAPIClient defines API client methods for the checkpoints.
|
|
//
|
|
// Experimental: checkpoint and restore is still an experimental feature,
|
|
// and only available if the daemon is running with experimental features
|
|
// enabled.
|
|
type CheckpointAPIClient interface {
|
|
CheckpointCreate(ctx context.Context, container string, options checkpoint.CreateOptions) error
|
|
CheckpointDelete(ctx context.Context, container string, options checkpoint.DeleteOptions) error
|
|
CheckpointList(ctx context.Context, container string, options checkpoint.ListOptions) ([]checkpoint.Summary, error)
|
|
}
|