MCPcopy Create free account
hub / github.com/ROCm/gpu-operator / DevicePluginAPI

Interface DevicePluginAPI

internal/plugin/plugin.go:64–67  ·  view source on GitHub ↗

go:generate mockgen -source=plugin.go -package=plugin -destination=mock_plugin.go DevicePluginAPI

Source from the content-addressed store, hash-verified

62
63//go:generate mockgen -source=plugin.go -package=plugin -destination=mock_plugin.go DevicePluginAPI
64type DevicePluginAPI interface {
65 SetDevicePluginAsDesired(ds *appsv1.DaemonSet, devConfig *amdv1alpha1.DeviceConfig) error
66 SetDRADriverAsDesired(ds *appsv1.DaemonSet, devConfig *amdv1alpha1.DeviceConfig) error
67}
68
69type devicePlugin struct {
70 client client.Client

Callers 3

handleDevicePluginMethod · 0.65
plugin_test.goFile · 0.65
handleDRADriverMethod · 0.65

Implementers 3

MockDevicePluginAPIinternal/plugin/mock_plugin.go
MockDevicePluginAPIMockRecorderinternal/plugin/mock_plugin.go
devicePlugininternal/plugin/plugin.go

Calls

no outgoing calls

Tested by

no test coverage detected