code: func ConfigSpecToGRPC(s swarmtypes.ConfigSpec) swarmapi.ConfigSpec {
  	spec := swarmapi.ConfigSpec{
  		Annotations: swarmapi.Annotations{
  			Name:   s.Name,
  			Labels: s.Labels,
  		},
  		Data: s.Data,
  	}
  
  	if s.Templating != nil {
  		spec.Templating = &swarmapi.Driver{
  			Name:    s.Templating.Name,
  			Options: s.Templating.Options,
  		}
  	}
  
  	return spec
  }
docs: // ConfigSpecToGRPC converts Config to a grpc Config.