code: func Configs(namespace Namespace, configs map[string]composetypes.ConfigObjConfig) ([]swarm.ConfigSpec, error) {
  	result := []swarm.ConfigSpec{}
  	for name, config := range configs {
  		if config.External.External {
  			continue
  		}
  
  		obj, err := fileObjectConfig(namespace, name, composetypes.FileObjectConfig(config))
  		if err != nil {
  			return nil, err
  		}
  		spec := swarm.ConfigSpec{Annotations: obj.Annotations, Data: obj.Data}
  		if config.TemplateDriver != "" {
  			spec.Templating = &swarm.Driver{
  				Name: config.TemplateDriver,
  			}
  		}
  		result = append(result, spec)
  	}
  	return result, nil
  }
docs: // Configs converts config objects from the Compose type to the engine API type