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)
|
||||
|
||||
|
||||
@@ -110,7 +110,7 @@ type DistributionAPIClient interface {
|
||||
type ImageAPIClient interface {
|
||||
ImageBuild(ctx context.Context, context io.Reader, options ImageBuildOptions) (ImageBuildResponse, error)
|
||||
BuildCachePrune(ctx context.Context, opts BuildCachePruneOptions) (*build.CachePruneReport, error)
|
||||
BuildCancel(ctx context.Context, id string) error
|
||||
BuildCancel(ctx context.Context, id string, opts BuildCancelOptions) error
|
||||
ImageCreate(ctx context.Context, parentReference string, options ImageCreateOptions) (io.ReadCloser, error)
|
||||
ImageImport(ctx context.Context, source ImageImportSource, ref string, options ImageImportOptions) (io.ReadCloser, error)
|
||||
|
||||
|
||||
4
vendor/github.com/moby/moby/client/build_cancel.go
generated
vendored
4
vendor/github.com/moby/moby/client/build_cancel.go
generated
vendored
@@ -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)
|
||||
|
||||
|
||||
2
vendor/github.com/moby/moby/client/client_interfaces.go
generated
vendored
2
vendor/github.com/moby/moby/client/client_interfaces.go
generated
vendored
@@ -110,7 +110,7 @@ type DistributionAPIClient interface {
|
||||
type ImageAPIClient interface {
|
||||
ImageBuild(ctx context.Context, context io.Reader, options ImageBuildOptions) (ImageBuildResponse, error)
|
||||
BuildCachePrune(ctx context.Context, opts BuildCachePruneOptions) (*build.CachePruneReport, error)
|
||||
BuildCancel(ctx context.Context, id string) error
|
||||
BuildCancel(ctx context.Context, id string, opts BuildCancelOptions) error
|
||||
ImageCreate(ctx context.Context, parentReference string, options ImageCreateOptions) (io.ReadCloser, error)
|
||||
ImageImport(ctx context.Context, source ImageImportSource, ref string, options ImageImportOptions) (io.ReadCloser, error)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user