vendor: github.com/moby/moby/api, moby/moby/client master

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-10-24 22:08:17 +02:00
parent f74cd147bb
commit 056e314645
92 changed files with 639 additions and 580 deletions

View File

@ -31,7 +31,7 @@ type fakeClient struct {
nodeListFunc func(options client.NodeListOptions) (client.NodeListResult, error)
taskListFunc func(options client.TaskListOptions) (client.TaskListResult, error)
nodeInspectFunc func(ref string) (client.NodeInspectResult, error)
serviceUpdateFunc func(serviceID string, version swarm.Version, service swarm.ServiceSpec, options client.ServiceUpdateOptions) (client.ServiceUpdateResult, error)
serviceUpdateFunc func(serviceID string, options client.ServiceUpdateOptions) (client.ServiceUpdateResult, error)
serviceRemoveFunc func(serviceID string) (client.ServiceRemoveResult, error)
networkRemoveFunc func(networkID string) error
secretRemoveFunc func(secretID string) (client.SecretRemoveResult, error)
@ -130,9 +130,9 @@ func (cli *fakeClient) NodeInspect(_ context.Context, ref string, _ client.NodeI
return client.NodeInspectResult{}, nil
}
func (cli *fakeClient) ServiceUpdate(_ context.Context, serviceID string, version swarm.Version, service swarm.ServiceSpec, options client.ServiceUpdateOptions) (client.ServiceUpdateResult, error) {
func (cli *fakeClient) ServiceUpdate(_ context.Context, serviceID string, options client.ServiceUpdateOptions) (client.ServiceUpdateResult, error) {
if cli.serviceUpdateFunc != nil {
return cli.serviceUpdateFunc(serviceID, version, service, options)
return cli.serviceUpdateFunc(serviceID, options)
}
return client.ServiceUpdateResult{}, nil