Versions in this module Expand all Collapse all v1 v1.6.0 Jul 29, 2026 Changes in this version + func CreateDeviceClass(ctx context.Context, client kubernetes.Interface, ...) error + func CreateResourceClaim(ctx context.Context, client kubernetes.Interface, namespace string, ...) error + func CreateResourceClaimTemplate(ctx context.Context, client kubernetes.Interface, namespace string, ...) error + func DeleteDeviceClass(ctx context.Context, client kubernetes.Interface, name string) error + func DeleteResourceClaim(ctx context.Context, client kubernetes.Interface, namespace, name string) error + func DeleteResourceClaimTemplate(ctx context.Context, client kubernetes.Interface, namespace, name string) error + type CounterValidator struct + func NewCounterValidator(client kubernetes.Interface, driverName string) *CounterValidator + func (cv *CounterValidator) CountPartitionDevices(ctx context.Context) (int, error) + func (cv *CounterValidator) GetNodeWithDevices(ctx context.Context) (string, error) + func (cv *CounterValidator) GetResourceSlicesByType(ctx context.Context) (counterSlices, deviceSlices []resourceapi.ResourceSlice, err error) + func (cv *CounterValidator) HasSharedCounters(ctx context.Context) bool + func (cv *CounterValidator) ValidateDeviceConsumesCounters(ctx context.Context) error + func (cv *CounterValidator) ValidateSharedCounters(ctx context.Context, expectedCounters []string) error + type DriverConfig struct + ContainerCommand []string + ContainerImage string + DefaultClass string + DriverName string + LongRunCommand []string + RequestName string + type ResourceBuilder struct + func NewResourceBuilder(namespace string, config DriverConfig) *ResourceBuilder + func (rb *ResourceBuilder) BuildDeviceClass(name string) *resourceapi.DeviceClass + func (rb *ResourceBuilder) BuildLongRunningPodWithClaim(name, claimName, img string) *corev1.Pod + func (rb *ResourceBuilder) BuildPodWithClaim(name, claimName, img string) *corev1.Pod + func (rb *ResourceBuilder) BuildPodWithInlineClaim(name string) *corev1.Pod + func (rb *ResourceBuilder) BuildResourceClaim(name, deviceClassName string, count int) *resourceapi.ResourceClaim + func (rb *ResourceBuilder) BuildResourceClaimTemplate(name, deviceClassName string, count int) *resourceapi.ResourceClaimTemplate