const region1 …
const region2 …
const node1 …
const node2 …
const classA …
const classB …
const driverA …
const driverB …
const pool1 …
const pool2 …
const pool3 …
const pool4 …
const req0 …
const req1 …
const req2 …
const req3 …
const claim0 …
const claim1 …
const slice1 …
const slice2 …
const device1 …
const device2 …
const device3 …
func init() { … }
const fieldNameKey …
const regionKey …
const planetKey …
const planetValueEarth …
func node(name, region string) *v1.Node { … }
func class(name, driver string) *resourceapi.DeviceClass { … }
func deviceConfiguration(driver, attribute string) resourceapi.DeviceConfiguration { … }
func classWithConfig(name, driver, attribute string) *resourceapi.DeviceClass { … }
func claimWithRequests(name string, constraints []resourceapi.DeviceConstraint, requests ...resourceapi.DeviceRequest) *resourceapi.ResourceClaim { … }
func request(name, class string, count int64, selectors ...resourceapi.DeviceSelector) resourceapi.DeviceRequest { … }
func claim(name, req, class string, constraints ...resourceapi.DeviceConstraint) *resourceapi.ResourceClaim { … }
func claimWithDeviceConfig(name, request, class, driver, attribute string) *resourceapi.ResourceClaim { … }
func allocatedClaim(name, request, class string, results ...resourceapi.DeviceRequestAllocationResult) *resourceapi.ResourceClaim { … }
func device(name string, capacity map[resourceapi.QualifiedName]resource.Quantity, attributes map[resourceapi.QualifiedName]resourceapi.DeviceAttribute) resourceapi.Device { … }
func slice(name string, nodeSelection any, pool, driver string, devices ...resourceapi.Device) *resourceapi.ResourceSlice { … }
func deviceAllocationResult(request, driver, pool, device string, adminAccess bool) resourceapi.DeviceRequestAllocationResult { … }
func nodeLabelSelector(key string, values ...string) *v1.NodeSelector { … }
func localNodeSelector(nodeName string) *v1.NodeSelector { … }
func allocationResult(selector *v1.NodeSelector, results ...resourceapi.DeviceRequestAllocationResult) types.GomegaMatcher { … }
func matchNodeSelector(selector *v1.NodeSelector) types.GomegaMatcher { … }
func matchNodeSelectorTerms(terms []v1.NodeSelectorTerm) types.GomegaMatcher { … }
func matchNodeSelectorTerm(term v1.NodeSelectorTerm) types.GomegaMatcher { … }
func matchNodeSelectorRequirements(requirements []v1.NodeSelectorRequirement) types.GomegaMatcher { … }
func matchNodeSelectorRequirement(requirement v1.NodeSelectorRequirement) types.GomegaMatcher { … }
func allocationResultWithConfig(selector *v1.NodeSelector, driver string, source resourceapi.AllocationConfigSource, attribute string, results ...resourceapi.DeviceRequestAllocationResult) *resourceapi.AllocationResult { … }
func objects[T any](objs ...T) []T { … }
func sliceWithOneDevice(name string, nodeSelection any, pool, driver string) *resourceapi.ResourceSlice { … }
func TestAllocator(t *testing.T) { … }
type claimLister …
func (l claimLister) ListAllAllocated() ([]*resourceapi.ResourceClaim, error) { … }
type informerLister …
func (l informerLister[T]) List(selector labels.Selector) (ret []*T, err error) { … }
func (l informerLister[T]) Get(name string) (*T, error) { … }