Documentation
¶
Overview ¶
Package sanswitch declares the drivers of the SAN switches a node inventories for the collector, as it does the storage arrays.
A switch is a "switch#<name>" section of the node or cluster configuration, whose type chooses the driver.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver interface {
// Name is the name of the section, "switch#<name>".
Name() string
SetName(string)
SetConfig(*xconfig.T)
Config() *xconfig.T
// Report returns the raw output of each command the configuration
// of the switch is read from, by command name, for the collector
// to parse.
Report(ctx context.Context) (map[string]string, error)
// ReportName is the name the collector knows the switch by.
ReportName() string
}
Driver reads the configuration of a switch.