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 (t *Array) Do(req *http.Request, v interface{}) (*http.Response, error)
- func (t *Array) DoJob(req *http.Request) (hocJob, error)
- func (t *Array) GetControllers(opt OptGetItems) (any, error)
- func (t *Array) GetDisks(opt OptGetItems) (any, error)
- func (t *Array) GetHostGroups(opt OptGetItems) (any, error)
- func (t *Array) GetJobs(opt OptGetItems) (any, error)
- func (t *Array) GetPortWithWWPN(wwpn string) (hocPort, error)
- func (t *Array) GetServerWithWWPN(wwpn string) (hocServer, error)
- func (t *Array) GetServers(opt OptGetItems) ([]hocServer, error)
- func (t *Array) GetStoragePools(opt OptGetItems) (any, error)
- func (t *Array) GetStoragePorts(opt OptGetItems) ([]hocPort, error)
- func (t *Array) GetStorageSystem() (hocStorageSystem, error)
- func (t *Array) GetStorageSystems(opt OptGetItems) ([]hocStorageSystem, error)
- func (t *Array) GetSystemTasks(opt OptGetItems) (any, error)
- func (t *Array) GetVolumeGroups(opt OptGetItems) (any, error)
- func (t *Array) GetVolumes(opt OptGetItems) ([]hocVolume, error)
- func (t *Array) MapDisk(opt OptMapDisk) (array.Disk, error)
- func (t *Array) ResizeDisk(opt OptResizeDisk) (hocVolume, error)
- func (t *Array) Run(args []string) error
- func (t *Array) UnmapDisk(opt OptUnmapDisk) (array.Disk, error)
- func (t *Array) WWN(id int) string
- type OptAddDisk
- type OptAddVolume
- type OptAttach
- type OptAttachPort
- type OptAttachVolume
- 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 ( HostModeOptionVeritasDatabaseEditionAdvancedCluster = 2 HostModeOptionVeritasClusterServer = 22 HostModeOptionSupportSPC3BehaviorOnPersistentReservation = 25 RenewStatus = 401 RequestTimeout = 10 * time.Second DefaultDelay = 1 * time.Second Head = "/v1" JobStatusInProgress = "IN_PROGRESS" JobStatusSuccess = "SUCCESS" JobStatusSuccessWithErrors = "SUCCESS_WITH_ERRORS" JobStatusFailed = "FAILED" )
Functions ¶
Types ¶
type Array ¶
func (*Array) GetControllers ¶
func (t *Array) GetControllers(opt OptGetItems) (any, error)
func (*Array) GetHostGroups ¶
func (t *Array) GetHostGroups(opt OptGetItems) (any, error)
func (*Array) GetPortWithWWPN ¶
func (*Array) GetServerWithWWPN ¶
func (*Array) GetServers ¶
func (t *Array) GetServers(opt OptGetItems) ([]hocServer, error)
func (*Array) GetStoragePools ¶
func (t *Array) GetStoragePools(opt OptGetItems) (any, error)
func (*Array) GetStoragePorts ¶
func (t *Array) GetStoragePorts(opt OptGetItems) ([]hocPort, error)
func (*Array) GetStorageSystem ¶
func (*Array) GetStorageSystems ¶
func (t *Array) GetStorageSystems(opt OptGetItems) ([]hocStorageSystem, error)
func (*Array) GetSystemTasks ¶
func (t *Array) GetSystemTasks(opt OptGetItems) (any, error)
func (*Array) GetVolumeGroups ¶
func (t *Array) GetVolumeGroups(opt OptGetItems) (any, error)
func (*Array) GetVolumes ¶
func (t *Array) GetVolumes(opt OptGetItems) ([]hocVolume, error)
func (*Array) ResizeDisk ¶
func (t *Array) ResizeDisk(opt OptResizeDisk) (hocVolume, error)
type OptAddDisk ¶
type OptAddDisk struct {
Volume OptAddVolume
Mapping OptMapping
}
type OptAddVolume ¶
type OptAttach ¶
type OptAttach struct {
StorageSystemId string `json:"storageSystemId,omitempty"`
IntendedImageType string `json:"intendedImageType,omitempty"`
Volumes []OptAttachVolume `json:"volumes,omitempty"`
Ports []OptAttachPort `json:"ports,omitempty"`
EnableLUNUnification bool `json:"enableLunUnification,omitempty"`
EnableZoning *bool `json:"enableZoning,omitempty"`
HostModeOptions []int `json:"hostModeOptions,omitempty"`
}
type OptAttachPort ¶
type OptAttachVolume ¶
type OptDelDisk ¶
type OptDelDisk struct {
Volume OptVolume
}
type OptGetItems ¶
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.