kubernetes/pkg/controller/volume/attachdetach/testing/testvolumespec.go

// GetTestVolumeSpec returns a test volume spec
func GetTestVolumeSpec(volumeName string, diskName v1.UniqueVolumeName) *volume.Spec {}

func CreateTestClient() *fake.Clientset {}

// NewPod returns a test pod object
func NewPod(uid, name string) *v1.Pod {}

// NewPodWithVolume returns a test pod object
func NewPodWithVolume(podName, volumeName, nodeName string) *v1.Pod {}

// Returns a volumeAttachment object
func NewVolumeAttachment(vaName, pvName, nodeName string, status bool) *storagev1.VolumeAttachment {}

// Returns a persistentVolume object
func NewPV(pvName, volumeName string) *v1.PersistentVolume {}

// Returns an NFS PV. This can be used for an in-tree volume that is not migrated (unlike NewPV, which uses the GCE persistent disk).
func NewNFSPV(pvName, volumeName string) *v1.PersistentVolume {}

func attachVolumeToNode(nodes *v1.NodeList, volumeName, nodeName string, inUse bool) {}