1
0
mirror of https://github.com/drone/drone-cli.git synced 2026-01-25 12:28:02 +01:00
drone-cli/vendor/docker.io/go-docker/checkpoint_create.go
2018-10-09 11:18:46 -07:00

14 lines
457 B
Go

package docker // import "docker.io/go-docker"
import (
"docker.io/go-docker/api/types"
"golang.org/x/net/context"
)
// CheckpointCreate creates a checkpoint from the given container with the given name
func (cli *Client) CheckpointCreate(ctx context.Context, container string, options types.CheckpointCreateOptions) error {
resp, err := cli.post(ctx, "/containers/"+container+"/checkpoints", nil, options, nil)
ensureReaderClosed(resp)
return err
}