NVIDIA GPU loadable plugin
Source
17
17
18
18
package plugin
19
19
20
20
import (
21
21
"golang.zabbix.com/sdk/conf"
22
22
"golang.zabbix.com/sdk/errs"
23
23
"golang.zabbix.com/sdk/plugin"
24
24
)
25
25
26
26
type pluginConfig struct {
27
-
System plugin.SystemOptions `conf:"optional"`
27
+
System plugin.SystemOptions `conf:"optional"` //nolint:staticcheck
28
28
// Timeout is plugin connection timeout.
29
29
Timeout int `conf:"optional,range=1:30"`
30
30
}
31
31
32
32
// Configure implements the Configurator interface.
33
33
// Initializes configuration structures.
34
34
func (p *nvmlPlugin) Configure(global *plugin.GlobalOptions, options any) {
35
35
pConfig := &pluginConfig{}
36
36
37
37
err := conf.UnmarshalStrict(options, pConfig)