Versions in this module Expand all Collapse all v1 v1.6.0 Feb 17, 2025 v1.5.0 Jun 3, 2024 Changes in this version + const NeedSyncForGPUModelMsgFmt + const NeedSyncForResourceDiffMsg + const PluginName + const ResetResourcesMsg + const UpdateLabelsMsg + const UpdateResourcesMsg + var Labels = []string + var ResourceNames = []corev1.ResourceName + type DeviceHandler struct + func (d *DeviceHandler) Create(ctx context.Context, e event.CreateEvent, q workqueue.RateLimitingInterface) + func (d *DeviceHandler) Delete(ctx context.Context, e event.DeleteEvent, q workqueue.RateLimitingInterface) + func (d *DeviceHandler) Generic(ctx context.Context, e event.GenericEvent, q workqueue.RateLimitingInterface) + func (d *DeviceHandler) Update(ctx context.Context, e event.UpdateEvent, q workqueue.RateLimitingInterface) + type Plugin struct + func (p *Plugin) Calculate(_ *configuration.ColocationStrategy, node *corev1.Node, _ *corev1.PodList, ...) ([]framework.ResourceItem, error) + func (p *Plugin) Name() string + func (p *Plugin) NeedSync(strategy *configuration.ColocationStrategy, oldNode, newNode *corev1.Node) (bool, string) + func (p *Plugin) NeedSyncMeta(_ *configuration.ColocationStrategy, oldNode, newNode *corev1.Node) (bool, string) + func (p *Plugin) Prepare(_ *configuration.ColocationStrategy, node *corev1.Node, ...) error + func (p *Plugin) Reset(node *corev1.Node, message string) []framework.ResourceItem + func (p *Plugin) Setup(opt *framework.Option) error