mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
client/build_cancel: Add options struct
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
@@ -5,9 +5,11 @@ import (
|
||||
"net/url"
|
||||
)
|
||||
|
||||
type BuildCancelOptions struct{}
|
||||
|
||||
// BuildCancel requests the daemon to cancel the ongoing build request
|
||||
// with the given id.
|
||||
func (cli *Client) BuildCancel(ctx context.Context, id string) error {
|
||||
func (cli *Client) BuildCancel(ctx context.Context, id string, _ BuildCancelOptions) error {
|
||||
query := url.Values{}
|
||||
query.Set("id", id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user