func GetTestVolumeSpec(volumeName string, diskName v1.UniqueVolumeName) *volume.Spec { … }
func CreateTestClient() *fake.Clientset { … }
func NewPod(uid, name string) *v1.Pod { … }
func NewPodWithVolume(podName, volumeName, nodeName string) *v1.Pod { … }
func NewVolumeAttachment(vaName, pvName, nodeName string, status bool) *storagev1.VolumeAttachment { … }
func NewPV(pvName, volumeName string) *v1.PersistentVolume { … }
func NewNFSPV(pvName, volumeName string) *v1.PersistentVolume { … }
func attachVolumeToNode(nodes *v1.NodeList, volumeName, nodeName string, inUse bool) { … }