|
@@ -40,11 +40,11 @@ func (c *Cluster) GetServices(options apitypes.ServiceListOptions) ([]types.Serv
|
|
// be good to have accepted file check in the same file as
|
|
// be good to have accepted file check in the same file as
|
|
// the filter processing (in the for loop below).
|
|
// the filter processing (in the for loop below).
|
|
accepted := map[string]bool{
|
|
accepted := map[string]bool{
|
|
- "name": true,
|
|
|
|
- "id": true,
|
|
|
|
- "label": true,
|
|
|
|
- "mode": true,
|
|
|
|
- "runtimes": true,
|
|
|
|
|
|
+ "name": true,
|
|
|
|
+ "id": true,
|
|
|
|
+ "label": true,
|
|
|
|
+ "mode": true,
|
|
|
|
+ "runtime": true,
|
|
}
|
|
}
|
|
if err := options.Filters.Validate(accepted); err != nil {
|
|
if err := options.Filters.Validate(accepted); err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
@@ -54,7 +54,7 @@ func (c *Cluster) GetServices(options apitypes.ServiceListOptions) ([]types.Serv
|
|
NamePrefixes: options.Filters.Get("name"),
|
|
NamePrefixes: options.Filters.Get("name"),
|
|
IDPrefixes: options.Filters.Get("id"),
|
|
IDPrefixes: options.Filters.Get("id"),
|
|
Labels: runconfigopts.ConvertKVStringsToMap(options.Filters.Get("label")),
|
|
Labels: runconfigopts.ConvertKVStringsToMap(options.Filters.Get("label")),
|
|
- Runtimes: options.Filters.Get("runtimes"),
|
|
|
|
|
|
+ Runtimes: options.Filters.Get("runtime"),
|
|
}
|
|
}
|
|
|
|
|
|
ctx, cancel := c.getRequestContext()
|
|
ctx, cancel := c.getRequestContext()
|