arraypure

package
v3.0.0-beta10 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Resize methods
	ResizeExact resizeMethod = iota
	ResizeUp
	ResizeDown
)

Variables

View Source
var (
	WWIDPrefix      = "624a9370"
	RenewStatus     = 403
	ItemsPerPage    = 100
	MaxPages        = 1000
	DayMilliseconds = 24 * 60 * 60 * 1000
	RequestTimeout  = 10
	Head            = "/api/2.8"
)

Functions

func NewDriver

func NewDriver() array.Driver

Types

type Array

type Array struct {
	*array.Array
	// contains filtered or unexported fields
}

func New

func New() *Array

func (*Array) AddDisk

func (t *Array) AddDisk(opt OptAddDisk) (array.Disk, error)

func (*Array) DelDisk

func (t *Array) DelDisk(opt OptDelDisk) (array.Disk, error)

func (*Array) Do

func (c *Array) Do(req *http.Request, v interface{}, reestablishSession bool) (*http.Response, error)

func (*Array) GetArrays

func (t *Array) GetArrays(opt OptGetItems) ([]pureArray, error)

func (*Array) GetConnections

func (t *Array) GetConnections(opt OptGetItems) ([]pureVolumeConnection, error)

func (*Array) GetControllers

func (t *Array) GetControllers(opt OptGetItems) (any, error)

func (*Array) GetDrives

func (t *Array) GetDrives(opt OptGetItems) (any, error)

func (*Array) GetHardware

func (t *Array) GetHardware(opt OptGetItems) ([]any, error)

func (*Array) GetHostGroups

func (t *Array) GetHostGroups(opt OptGetItems) (any, error)

func (*Array) GetHosts

func (t *Array) GetHosts(opt OptGetItems) ([]pureHost, error)

func (*Array) GetNetworkInterfaces

func (t *Array) GetNetworkInterfaces(opt OptGetItems) ([]pureNetworkInterface, error)

func (*Array) GetPods

func (t *Array) GetPods(opt OptGetItems) (any, error)

func (*Array) GetPorts

func (t *Array) GetPorts(opt OptGetItems) (any, error)

func (*Array) GetVolumeGroups

func (t *Array) GetVolumeGroups(opt OptGetItems) (any, error)

func (*Array) GetVolumes

func (t *Array) GetVolumes(opt OptGetItems) ([]pureVolume, error)

func (*Array) MapDisk

func (t *Array) MapDisk(opt OptMapDisk) (any, error)

func (*Array) ResizeDisk

func (t *Array) ResizeDisk(opt OptResizeDisk) (pureVolume, error)

func (*Array) Run

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

func (*Array) UnmapDisk

func (t *Array) UnmapDisk(opt OptUnmapDisk) ([]pureVolumeConnection, error)

type OptAddDisk

type OptAddDisk struct {
	Name     string
	Size     string
	Mappings []string
	LUN      int
}

type OptDelDisk

type OptDelDisk struct {
	Volume OptVolume
	Now    bool
}

type OptGetItems

type OptGetItems struct {
	Filter string
}

type OptHost

type OptHost struct {
	Host      string
	HostGroup string
}

type OptMapDisk

type OptMapDisk struct {
	Volume  OptVolume
	Mapping OptMapping
}

type OptMapping

type OptMapping struct {
	Mappings      []string
	HostName      string
	HostGroupName string
	LUN           int
}

type OptResizeDisk

type OptResizeDisk struct {
	Volume   OptVolume
	Size     string
	Truncate bool
}

type OptUnmapDisk

type OptUnmapDisk struct {
	Volume  OptVolume
	Mapping OptMapping
}

type OptVolume

type OptVolume struct {
	ID     string
	Name   string
	Serial string
}

Jump to

Keyboard shortcuts

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