code: func (c *Cluster) GetService(input string, insertDefaults bool) (types.Service, error) {
  	var service *swarmapi.Service
  	if err := c.lockedManagerAction(func(ctx context.Context, state nodeState) error {
  		s, err := getService(ctx, state.controlClient, input, insertDefaults)
  		if err != nil {
  			return err
  		}
  		service = s
  		return nil
  	}); err != nil {
  		return types.Service{}, err
  	}
  	svc, err := convert.ServiceFromGRPC(*service)
  	if err != nil {
  		return types.Service{}, err
  	}
  	return svc, nil
  }
docs: // GetService returns a service based on an ID or name.