func TestNodeAuthorizer(t *testing.T) { … }
func TestNodeAuthorizerSharedResources(t *testing.T) { … }
type sampleDataOpts …
func mustParseFields(s string) fields.Requirements { … }
func BenchmarkPopulationAllocation(b *testing.B) { … }
func BenchmarkPopulationRetention(b *testing.B) { … }
func BenchmarkWriteIndexMaintenance(b *testing.B) { … }
func BenchmarkUnauthorizedRequests(b *testing.B) { … }
func BenchmarkAuthorization(b *testing.B) { … }
func populate(graph *Graph, nodes []*corev1.Node, pods []*corev1.Pod, pvs []*corev1.PersistentVolume, attachments []*storagev1.VolumeAttachment, slices []*resourceapi.ResourceSlice) { … }
func randomSubset(a, b int) []int { … }
func generate(opts *sampleDataOpts) ([]*corev1.Node, []*corev1.Pod, []*corev1.PersistentVolume, []*storagev1.VolumeAttachment, []*resourceapi.ResourceSlice) { … }
func generatePod(name, namespace, nodeName, svcAccountName string, opts *sampleDataOpts) (*corev1.Pod, []*corev1.PersistentVolume) { … }