mirror of
https://github.com/moby/moby.git
synced 2026-08-09 17:39:58 +00:00
The CheckpointList method previously returned a raw slice of checkpoint.Summary, which made it difficult to extend the API response with additional metadata or fields in the future without breaking backward compatibility. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
17 lines
620 B
Go
17 lines
620 B
Go
package client
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
// 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 CheckpointCreateOptions) error
|
|
CheckpointDelete(ctx context.Context, container string, options CheckpointDeleteOptions) error
|
|
CheckpointList(ctx context.Context, container string, options CheckpointListOptions) (CheckpointListResult, error)
|
|
}
|