code: func GetSupportedVolumeFromSnapshotDataSpec(spec *VolumeSnapshotDataSpec) string {
  	if spec.HostPath != nil {
  		return "hostPath"
  	}
  	if spec.AWSElasticBlockStore != nil {
  		return "aws_ebs"
  	}
  	if spec.GCEPersistentDiskSnapshot != nil {
  		return "gce-pd"
  	}
  	if spec.CinderSnapshot != nil {
  		return "cinder"
  	}
  	if spec.GlusterSnapshotVolume != nil {
  		return "glusterfs"
  	}
  	return ""
  }
docs: // GetSupportedVolumeFromSnapshotDataSpec gets supported volume from snapshot data spec