checkpoint_delete.go 387 B

123456789101112
  1. package client
  2. import (
  3. "golang.org/x/net/context"
  4. )
  5. // CheckpointDelete deletes the checkpoint with the given name from the given container
  6. func (cli *Client) CheckpointDelete(ctx context.Context, containerID string, checkpointID string) error {
  7. resp, err := cli.delete(ctx, "/containers/"+containerID+"/checkpoints/"+checkpointID, nil, nil)
  8. ensureReaderClosed(resp)
  9. return err
  10. }