Documentation
¶
Index ¶
- Constants
- Variables
- func NewDriver() array.Driver
- type Array
- func (t *Array) Actions() []array.Action
- 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 (t *Array) Do(req *http.Request, v interface{}) (*http.Response, error)
- func (t *Array) DoJob(ctx context.Context, req *http.Request) (hocJob, error)
- func (t *Array) GetControllers(ctx context.Context, opt OptGetItems) (any, error)
- func (t *Array) GetDisks(ctx context.Context, opt OptGetItems) (any, error)
- func (t *Array) GetHostGroups(ctx context.Context, opt OptGetItems) (any, error)
- func (t *Array) GetJobs(ctx context.Context, opt OptGetItems) (any, error)
- func (t *Array) GetPortWithWWPN(ctx context.Context, wwpn string) (hocPort, error)
- func (t *Array) GetServerWithWWPN(ctx context.Context, wwpn string) (hocServer, error)
- func (t *Array) GetServers(ctx context.Context, opt OptGetItems) ([]hocServer, error)
- func (t *Array) GetStoragePools(ctx context.Context, opt OptGetItems) (any, error)
- func (t *Array) GetStoragePorts(ctx context.Context, opt OptGetItems) ([]hocPort, error)
- func (t *Array) GetStorageSystem(ctx context.Context) (hocStorageSystem, error)
- func (t *Array) GetStorageSystems(ctx context.Context, opt OptGetItems) ([]hocStorageSystem, error)
- func (t *Array) GetSystemTasks(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) ([]hocVolume, error)
- func (t *Array) MapDisk(ctx context.Context, opt OptMapDisk) (array.Disk, error)
- func (t *Array) Reports() []array.Report
- func (t *Array) ResizeDisk(ctx context.Context, opt OptResizeDisk) (hocVolume, error)
- func (t *Array) Run(args []string) error
- func (t *Array) UnmapDisk(ctx context.Context, 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 (*Array) GetHostGroups ¶
func (*Array) GetPortWithWWPN ¶
func (*Array) GetServerWithWWPN ¶
func (*Array) GetServers ¶
func (t *Array) GetServers(ctx context.Context, opt OptGetItems) ([]hocServer, error)
func (*Array) GetStoragePools ¶
func (*Array) GetStoragePorts ¶
func (t *Array) GetStoragePorts(ctx context.Context, opt OptGetItems) ([]hocPort, error)
func (*Array) GetStorageSystem ¶
func (*Array) GetStorageSystems ¶
func (t *Array) GetStorageSystems(ctx context.Context, opt OptGetItems) ([]hocStorageSystem, error)
func (*Array) GetSystemTasks ¶
func (*Array) GetVolumeGroups ¶
func (*Array) GetVolumes ¶
func (t *Array) GetVolumes(ctx context.Context, opt OptGetItems) ([]hocVolume, error)
func (*Array) Reports ¶
Reports returns the sections of its configuration this array pushes to the collector.
The section names are the ones v2 pushes for an hcs array, because the collector reads them to know what it was handed: a collector serving both agents stores what either of them pushes in the same place.
func (*Array) ResizeDisk ¶
func (t *Array) ResizeDisk(ctx context.Context, opt OptResizeDisk) (hocVolume, error)
func (*Array) Run ¶
Run builds the command tree of this array and runs the arguments through it. What the tree holds is declared in Actions.
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.