traefik/integration/vendor/github.com/docker/engine-api/client/checkpoint_delete.go

13 lines
387 B
Go
Raw Normal View History

2017-02-07 21:33:23 +00:00
package client
import (
"golang.org/x/net/context"
)
// CheckpointDelete deletes the checkpoint with the given name from the given container
func (cli *Client) CheckpointDelete(ctx context.Context, containerID string, checkpointID string) error {
resp, err := cli.delete(ctx, "/containers/"+containerID+"/checkpoints/"+checkpointID, nil, nil)
ensureReaderClosed(resp)
return err
}