arrayhp3par

package
v3.0.0-rc45 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDriver

func NewDriver() array.Driver

NewDriver returns a 3PAR array driver.

Types

type Array

type Array struct {
	array.Array
}

Array is one 3PAR array, as the node or cluster configuration declares it.

func New

func New() *Array

New returns a 3PAR array.

func (*Array) Actions

func (t *Array) Actions() []array.Action

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

func (t *Array) Reports() []array.Report

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

func (t *Array) Run(args []string) error

Run builds the command tree of this array and runs the arguments through it. What the tree holds is declared in Actions.

func (*Array) ShowCPG

func (t *Array) ShowCPG(ctx context.Context) (any, error)

ShowCPG returns the common provisioning groups of the array.

func (*Array) ShowNode

func (t *Array) ShowNode(ctx context.Context) (any, error)

ShowNode returns the controller nodes of the array.

func (*Array) ShowPort

func (t *Array) ShowPort(ctx context.Context) (any, error)

ShowPort returns the ports of the array.

func (*Array) ShowSys

func (t *Array) ShowSys(ctx context.Context) (any, error)

ShowSys returns what the array says about itself.

func (*Array) ShowVV

func (t *Array) ShowVV(ctx context.Context) (any, error)

ShowVV returns the virtual volumes of the array.

The remote copy columns are asked for only when the array is licensed for it: a column the array does not know makes the whole command fail.

func (*Array) ShowVersion

func (t *Array) ShowVersion(ctx context.Context) (any, error)

ShowVersion returns the version the array runs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL