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