Documentation
¶
Index ¶
- Constants
- Variables
- func NewDriver() array.Driver
- type Array
- func (t *Array) AddDisk(opt OptAddDisk) (array.Disk, error)
- func (t *Array) DelDisk(opt OptDelDisk) (array.Disk, error)
- func (c *Array) Do(req *http.Request, v interface{}, reestablishSession bool) (*http.Response, error)
- func (t *Array) GetArrays(opt OptGetItems) ([]pureArray, error)
- func (t *Array) GetConnections(opt OptGetItems) ([]pureVolumeConnection, error)
- func (t *Array) GetControllers(opt OptGetItems) (any, error)
- func (t *Array) GetDrives(opt OptGetItems) (any, error)
- func (t *Array) GetHardware(opt OptGetItems) ([]any, error)
- func (t *Array) GetHostGroups(opt OptGetItems) (any, error)
- func (t *Array) GetHosts(opt OptGetItems) ([]pureHost, error)
- func (t *Array) GetNetworkInterfaces(opt OptGetItems) ([]pureNetworkInterface, error)
- func (t *Array) GetPods(opt OptGetItems) (any, error)
- func (t *Array) GetPorts(opt OptGetItems) (any, error)
- func (t *Array) GetVolumeGroups(opt OptGetItems) (any, error)
- func (t *Array) GetVolumes(opt OptGetItems) ([]pureVolume, error)
- func (t *Array) MapDisk(opt OptMapDisk) (any, error)
- func (t *Array) ResizeDisk(opt OptResizeDisk) (pureVolume, error)
- func (t *Array) Run(args []string) error
- func (t *Array) UnmapDisk(opt OptUnmapDisk) ([]pureVolumeConnection, error)
- type OptAddDisk
- type OptDelDisk
- type OptGetItems
- type OptHost
- type OptMapDisk
- type OptMapping
- type OptResizeDisk
- type OptUnmapDisk
- type OptVolume
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 ¶
Types ¶
type Array ¶
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) 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) GetVolumeGroups ¶
func (t *Array) GetVolumeGroups(opt OptGetItems) (any, error)
func (*Array) GetVolumes ¶
func (t *Array) GetVolumes(opt OptGetItems) ([]pureVolume, error)
func (*Array) ResizeDisk ¶
func (t *Array) ResizeDisk(opt OptResizeDisk) (pureVolume, error)
func (*Array) UnmapDisk ¶
func (t *Array) UnmapDisk(opt OptUnmapDisk) ([]pureVolumeConnection, error)
type OptDelDisk ¶
type OptGetItems ¶
type OptGetItems struct {
Filter string
}
type OptMapDisk ¶
type OptMapDisk struct {
Volume OptVolume
Mapping OptMapping
}
type OptMapping ¶
type OptResizeDisk ¶
type OptUnmapDisk ¶
type OptUnmapDisk struct {
Volume OptVolume
Mapping OptMapping
}
Click to show internal directories.
Click to hide internal directories.