Documentation
¶
Overview ¶
Package arrayhp3par drives an HPE 3PAR array through its command line interface.
It is a port of the v2 agent driver, which reports the configuration of the array to the collector and reads it on the command line. The array is reached in one of three ways, as v2 reaches it: over ssh, through the cli binary installed on this node, or through a proxy serving the cli to nodes that cannot reach the array themselves.
Index ¶
- func NewDriver() array.Driver
- type Array
- func (t *Array) Actions() []array.Action
- func (t *Array) Reports() []array.Report
- func (t *Array) Run(args []string) error
- func (t *Array) ShowCPG(ctx context.Context) (any, error)
- func (t *Array) ShowNode(ctx context.Context) (any, error)
- func (t *Array) ShowPort(ctx context.Context) (any, error)
- func (t *Array) ShowSys(ctx context.Context) (any, error)
- func (t *Array) ShowVV(ctx context.Context) (any, error)
- func (t *Array) ShowVersion(ctx context.Context) (any, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Array ¶
Array is one 3PAR array, as the node or cluster configuration declares it.
func (*Array) Actions ¶
Actions returns what this array answers to.
v2 declares no action for a 3PAR: it reads the array to report it to the collector and no further. The same readings are commands here, so what is pushed can be looked at without pushing it.
func (*Array) Reports ¶
Reports returns the sections of its configuration this array pushes to the collector.
The section names are the ones v2 pushes for a 3par array, because the collector reads them to know what it was handed.
func (*Array) Run ¶
Run builds the command tree of this array and runs the arguments through it. What the tree holds is declared in Actions.