mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-27 20:31:10 +00:00
75513575be
* store dependency's in git * since we vendor ... rm tech-depts * aad make target 'vendor' to update vendor folder (manual task)
20 lines
595 B
Go
20 lines
595 B
Go
package docker // import "docker.io/go-docker"
|
|
|
|
import (
|
|
"net/url"
|
|
|
|
"docker.io/go-docker/api/types"
|
|
"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, options types.CheckpointDeleteOptions) error {
|
|
query := url.Values{}
|
|
if options.CheckpointDir != "" {
|
|
query.Set("dir", options.CheckpointDir)
|
|
}
|
|
|
|
resp, err := cli.delete(ctx, "/containers/"+containerID+"/checkpoints/"+options.CheckpointID, query, nil)
|
|
ensureReaderClosed(resp)
|
|
return err
|
|
}
|