fixup! feat: backup revolution
This commit is contained in:
parent
9cab8b5e59
commit
daeba70dac
|
@ -16,7 +16,8 @@ import (
|
||||||
|
|
||||||
// GetService retrieves a service container based on a label. If prompt is true
|
// GetService retrieves a service container based on a label. If prompt is true
|
||||||
// and the retrievd count of service containers does not match 1, then a prompt
|
// and the retrievd count of service containers does not match 1, then a prompt
|
||||||
// is presented to let the user choose. A count of 0 is handled gracefully.
|
// is presented to let the user choose. An error is returned when no service is
|
||||||
|
// found.
|
||||||
func GetServiceByLabel(c context.Context, cl *client.Client, label string, prompt bool) (swarm.Service, error) {
|
func GetServiceByLabel(c context.Context, cl *client.Client, label string, prompt bool) (swarm.Service, error) {
|
||||||
services, err := cl.ServiceList(c, types.ServiceListOptions{})
|
services, err := cl.ServiceList(c, types.ServiceListOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue