Documentation
¶
Overview ¶
Package arrayxtremio drives a Dell EMC XtremIO array through its rest api.
It is a port of the v2 agent driver, and answers to the same commands with the same options, because the collector drives an array by running them.
Index ¶
- func NewDriver() array.Driver
- type Array
- func (t *Array) Actions() []array.Action
- func (t *Array) AddDisk(ctx context.Context, opt OptAddDisk) (any, error)
- func (t *Array) AddMap(ctx context.Context, opt OptAddMap) (any, error)
- func (t *Array) DelDisk(ctx context.Context, volume string) (any, error)
- func (t *Array) DelMap(ctx context.Context, mapping string) error
- func (t *Array) DelVolumeMappings(ctx context.Context, volume string) error
- func (t *Array) GetVolume(ctx context.Context, volume string) (*volumeContent, error)
- func (t *Array) GetVolumeMappings(ctx context.Context, volume string) (lunMapsAnswer, error)
- func (t *Array) Reports() []array.Report
- func (t *Array) ResizeDisk(ctx context.Context, volume, size string) (any, error)
- func (t *Array) Run(args []string) error
- type OptAddDisk
- type OptAddMap
- type OptDelMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Array ¶
Array is one XtremIO array, as the node or cluster configuration declares it.
func (*Array) AddMap ¶
AddMap exports a volume.
Naming the mappings asks the array which groups the ports belong to, and one mapping is made per pair of groups. Naming an initiator group instead makes the one mapping it names.
func (*Array) DelVolumeMappings ¶
DelVolumeMappings unexports a volume from everything it is exported to.
func (*Array) GetVolume ¶
GetVolume returns what the array says about one volume, named by index or by name.
func (*Array) GetVolumeMappings ¶
GetVolumeMappings returns the mappings of a volume.
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 an xtremio array, because the collector reads them to know what it was handed.
func (*Array) ResizeDisk ¶
ResizeDisk grows a volume. A size beginning with a plus is added to the size the volume has.
type OptAddDisk ¶
type OptAddDisk struct {
Name string
Size string
Blocksize int
Tags []string
AlignmentOffset int
SmallIOAlerts string
UnalignedIOAlerts string
VAAITPAlerts string
Access string
Mappings []string
LUN int
}
OptAddDisk is what "add disk" was asked for.