8128a9a478
Changes certain words and adds punctuation to the comments of functions in the client package, which end up in the GoDoc documentation. Areas where only periods were needed were ignored to prevent excessive code churn. Signed-off-by: Levi Harrison <levisamuelharrison@gmail.com>
16 lines
396 B
Go
16 lines
396 B
Go
package client // import "github.com/docker/docker/client"
|
|
|
|
import (
|
|
"context"
|
|
"net/url"
|
|
)
|
|
|
|
// BuildCancel requests the daemon to cancel the ongoing build request.
|
|
func (cli *Client) BuildCancel(ctx context.Context, id string) error {
|
|
query := url.Values{}
|
|
query.Set("id", id)
|
|
|
|
serverResp, err := cli.post(ctx, "/build/cancel", query, nil, nil)
|
|
ensureReaderClosed(serverResp)
|
|
return err
|
|
}
|