code: func NewVolume(projectName, name string, config *config.VolumeConfig, client client.VolumeAPIClient) *Volume {
  	vol := &Volume{
  		client:      client,
  		projectName: projectName,
  		name:        name,
  	}
  	if config != nil {
  		vol.driver = config.Driver
  		vol.driverOptions = config.DriverOpts
  		vol.external = config.External.External
  
  	}
  	return vol
  }
docs: // NewVolume creates a new volume from the specified name and config.