arraypure

package
v3.0.0-rc16 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: Apache-2.0 Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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(ctx context.Context, opt OptAddDisk) (array.Disk, error)

func (*Array) DelDisk

func (t *Array) DelDisk(ctx context.Context, 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(ctx context.Context, opt OptGetItems) ([]pureArray, error)

func (*Array) GetConnections

func (t *Array) GetConnections(ctx context.Context, opt OptGetItems) ([]pureVolumeConnection, error)

func (*Array) GetControllers

func (t *Array) GetControllers(ctx context.Context, opt OptGetItems) (any, error)

func (*Array) GetDrives

func (t *Array) GetDrives(ctx context.Context, opt OptGetItems) (any, error)

func (*Array) GetHardware

func (t *Array) GetHardware(ctx context.Context, opt OptGetItems) ([]any, error)

func (*Array) GetHostGroups

func (t *Array) GetHostGroups(ctx context.Context, opt OptGetItems) (any, error)

func (*Array) GetHosts

func (t *Array) GetHosts(ctx context.Context, opt OptGetItems) ([]pureHost, error)

func (*Array) GetNetworkInterfaces

func (t *Array) GetNetworkInterfaces(ctx context.Context, opt OptGetItems) ([]pureNetworkInterface, error)

func (*Array) GetPods

func (t *Array) GetPods(ctx context.Context, opt OptGetItems) (any, error)

func (*Array) GetPorts

func (t *Array) GetPorts(ctx context.Context, opt OptGetItems) (any, error)

func (*Array) GetVolumeGroups

func (t *Array) GetVolumeGroups(ctx context.Context, opt OptGetItems) (any, error)

func (*Array) GetVolumes

func (t *Array) GetVolumes(ctx context.Context, opt OptGetItems) ([]pureVolume, error)

func (*Array) MapDisk

func (t *Array) MapDisk(ctx context.Context, opt OptMapDisk) (any, error)

func (*Array) ResizeDisk

func (t *Array) ResizeDisk(ctx context.Context, opt OptResizeDisk) (pureVolume, error)

func (*Array) Run

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

func (*Array) UnmapDisk

func (t *Array) UnmapDisk(ctx context.Context, 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