client/build_cancel: Add options struct

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
Paweł Gronowski
2025-10-01 12:50:39 +02:00
parent 0b6c94aa7a
commit a35b3cd149
4 changed files with 8 additions and 4 deletions

View File

@@ -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)