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