code: func (pvIndex *persistentVolumeOrderedIndex) listByAccessModes(modes []v1.PersistentVolumeAccessMode) ([]*v1.PersistentVolume, error) {
  	pv := &v1.PersistentVolume{
  		Spec: v1.PersistentVolumeSpec{
  			AccessModes: modes,
  		},
  	}
  
  	objs, err := pvIndex.store.Index("accessmodes", pv)
  	if err != nil {
  		return nil, err
  	}
  
  	volumes := make([]*v1.PersistentVolume, len(objs))
  	for i, obj := range objs {
  		volumes[i] = obj.(*v1.PersistentVolume)
  	}
  
  	return volumes, nil
  }
docs: // listByAccessModes returns all volumes with the given set of
  // AccessModeTypes. The list is unsorted!