mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Merge pull request #51399 from thaJeztah/swarm_enums
api/types/swarm: create types for enum-consts
This commit is contained in:
@@ -28,7 +28,7 @@ type ServiceUpdateOptions struct {
|
||||
// RegistryAuthFrom specifies where to find the registry authorization
|
||||
// credentials if they are not given in EncodedRegistryAuth. Valid
|
||||
// values are "spec" and "previous-spec".
|
||||
RegistryAuthFrom string
|
||||
RegistryAuthFrom swarm.RegistryAuthSource
|
||||
|
||||
// Rollback indicates whether a server-side rollback should be
|
||||
// performed. When this is set, the provided spec will be ignored.
|
||||
@@ -65,7 +65,7 @@ func (cli *Client) ServiceUpdate(ctx context.Context, serviceID string, options
|
||||
|
||||
query := url.Values{}
|
||||
if options.RegistryAuthFrom != "" {
|
||||
query.Set("registryAuthFrom", options.RegistryAuthFrom)
|
||||
query.Set("registryAuthFrom", string(options.RegistryAuthFrom))
|
||||
}
|
||||
|
||||
if options.Rollback != "" {
|
||||
|
||||
Reference in New Issue
Block a user