(ch chan<- prometheus.Metric)
| 65 | } |
| 66 | |
| 67 | func (c *netClassCollector) Update(ch chan<- prometheus.Metric) error { |
| 68 | if *netclassNetlink { |
| 69 | return c.netClassRTNLUpdate(ch) |
| 70 | } |
| 71 | return c.netClassSysfsUpdate(ch) |
| 72 | } |
| 73 | |
| 74 | func (c *netClassCollector) netClassSysfsUpdate(ch chan<- prometheus.Metric) error { |
| 75 | netClass, err := c.getNetClassInfo() |
nothing calls this directly
no test coverage detected