Versions in this module Expand all Collapse all v0 v0.2.0 Oct 14, 2026 Changes in this version + const ResourceGPUShared + const ResourceMIGPrefix v0.1.0 Oct 12, 2026 Changes in this version + const DRADriverName + const LabelGPUPresent + const LabelPCIVendor + const ResourceGPU + var ErrNotInstalled = errors.New(...) + type Bundle struct + func NewBundle(dir string) (*Bundle, error) + func (b *Bundle) ClassifyNodes(ctx context.Context) (gpu, hinted []corev1.Node, err error) + func (b *Bundle) ClusterPolicies(ctx context.Context) ([]unstructured.Unstructured, error) + func (b *Bundle) HintedNodes(ctx context.Context) ([]corev1.Node, error) + func (b *Bundle) Nodes(ctx context.Context) ([]corev1.Node, error) + func (b *Bundle) Pods(ctx context.Context, namespace, selector string) ([]corev1.Pod, error) + func (b *Bundle) ResourceSlices(ctx context.Context) ([]resourcev1.ResourceSlice, error) + type BundleFileTooLargeError struct + Limit int64 + Name string + func (e *BundleFileTooLargeError) Error() string + type LegacyBundleError struct + Name string + func (e *LegacyBundleError) Error() string + type Live struct + func NewLive(clientset kubernetes.Interface, dyn dynamic.Interface) *Live + func (l *Live) ClassifyNodes(ctx context.Context) (gpu, hinted []corev1.Node, err error) + func (l *Live) ClusterPolicies(ctx context.Context) ([]unstructured.Unstructured, error) + func (l *Live) HintedNodes(ctx context.Context) ([]corev1.Node, error) + func (l *Live) Nodes(ctx context.Context) ([]corev1.Node, error) + func (l *Live) Pods(ctx context.Context, namespace, selector string) ([]corev1.Pod, error) + func (l *Live) ResourceSlices(ctx context.Context) ([]resourcev1.ResourceSlice, error) + type MissingBundleError struct + Dir string + Err error + func (e *MissingBundleError) Error() string + func (e *MissingBundleError) Unwrap() error + type PartialError struct + Err error + Resource string + func (e *PartialError) Error() string + func (e *PartialError) ExitCode() int + func (e *PartialError) Unwrap() error + type Source interface + ClassifyNodes func(ctx context.Context) (gpu, hinted []corev1.Node, err error) + ClusterPolicies func(ctx context.Context) ([]unstructured.Unstructured, error) + HintedNodes func(ctx context.Context) ([]corev1.Node, error) + Nodes func(ctx context.Context) ([]corev1.Node, error) + Pods func(ctx context.Context, namespace, selector string) ([]corev1.Pod, error) + ResourceSlices func(ctx context.Context) ([]resourcev1.ResourceSlice, error) + type UnsafeBundleFileError struct + Mode fs.FileMode + Name string + func (e *UnsafeBundleFileError) Error() string