Files
moby/client/build_cancel.go
Poyraz KüçükarslanandCopilot e0e4afd325 client: add missing doc comments to image tag, build cancel, and info types
Add missing Go doc comments to exported option and result types in
image_tag.go, build_cancel.go, and system_info.go.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Poyraz Küçükarslan <83272398+PoyrazK@users.noreply.github.com>
2026-03-14 10:56:00 +01:00

24 lines
623 B
Go

package client
import (
"context"
"net/url"
)
// BuildCancelOptions holds options for [Client.BuildCancel].
type BuildCancelOptions struct{}
// BuildCancelResult holds the result of [Client.BuildCancel].
type BuildCancelResult struct{}
// BuildCancel requests the daemon to cancel the ongoing build request
// with the given id.
func (cli *Client) BuildCancel(ctx context.Context, id string, _ BuildCancelOptions) (BuildCancelResult, error) {
query := url.Values{}
query.Set("id", id)
resp, err := cli.post(ctx, "/build/cancel", query, nil, nil)
defer ensureReaderClosed(resp)
return BuildCancelResult{}, err
}