Documentation
¶
Index ¶
- func DuplicateRequest(request *http.Request) (request1 *http.Request, request2 *http.Request)
- func GetLink(links []*types.Link, rel string) (*types.Link, error)
- func GetSdcLocalGUID() (sdcGUID string, err error)
- type Client
- func (client *Client) Authenticate(configConnect *ConfigConnect) (Cluster, error)
- func (client *Client) CreateVolume(volume *types.VolumeParam, storagePoolName string) (volumeResp *types.VolumeResp, err error)
- func (client *Client) FindStoragePool(id, name, href string) (storagePool *types.StoragePool, err error)
- func (client *Client) FindSystem(instanceID, name, href string) (*System, error)
- func (client *Client) FindVolumeID(volumename string) (volumeID string, err error)
- func (client *Client) GetInstance(systemhref string) (systems []*types.System, err error)
- func (client *Client) GetStoragePool(storagepoolhref string) (storagePools []*types.StoragePool, err error)
- func (client *Client) GetVolume(volumehref, volumeid, ancestorvolumeid, volumename string, getSnapshots bool) (volumes []*types.Volume, err error)
- func (c *Client) NewRequest(params map[string]string, method string, u url.URL, body io.Reader) *http.Request
- type ClientPersistent
- type Cluster
- type ConfigConnect
- type Device
- type ProtectionDomain
- func (protectionDomain *ProtectionDomain) CreateSds(name string, ipList []string) (string, error)
- func (protectionDomain *ProtectionDomain) CreateStoragePool(name string) (string, error)
- func (protectionDomain *ProtectionDomain) FindSds(field, value string) (sds *types.Sds, err error)
- func (protectionDomain *ProtectionDomain) FindStoragePool(id, name, href string) (storagePool *types.StoragePool, err error)
- func (protectionDomain *ProtectionDomain) GetSds() (sdss []types.Sds, err error)
- func (protectionDomain *ProtectionDomain) GetStoragePool(storagepoolhref string) (storagePools []*types.StoragePool, err error)
- type Sdc
- type SdcMappedVolume
- type Sds
- type StoragePool
- func (storagePool *StoragePool) AttachDevice(path string, sdsID string) (string, error)
- func (storagePool *StoragePool) CreateVolume(volume *types.VolumeParam) (volumeResp *types.VolumeResp, err error)
- func (storagePool *StoragePool) FindDevice(field, value string) (device *types.Device, err error)
- func (storagePool *StoragePool) FindVolumeID(volumename string) (volumeID string, err error)
- func (storagePool *StoragePool) GetDevice() (devices []types.Device, err error)
- func (storagePool *StoragePool) GetStatistics() (statistics *types.Statistics, err error)
- func (storagePool *StoragePool) GetVolume(volumehref, volumeid, ancestorvolumeid, volumename string, getSnapshots bool) (volumes []*types.Volume, err error)
- type System
- func (system *System) CreateProtectionDomain(name string) (string, error)
- func (system *System) CreateSnapshotConsistencyGroup(snapshotVolumesParam *types.SnapshotVolumesParam) (snapshotVolumesResp *types.SnapshotVolumesResp, err error)
- func (system *System) FindProtectionDomain(id, name, href string) (protectionDomain *types.ProtectionDomain, err error)
- func (system *System) FindSdc(field, value string) (sdc *Sdc, err error)
- func (system *System) GetProtectionDomain(protectiondomainhref string) (protectionDomains []*types.ProtectionDomain, err error)
- func (system *System) GetScsiInitiator() (scsiInitiators []types.ScsiInitiator, err error)
- func (system *System) GetSdc() (sdcs []types.Sdc, err error)
- func (system *System) GetStatistics() (statistics *types.Statistics, err error)
- func (system *System) GetUser() (user []types.User, err error)
- type Volume
- func (volume *Volume) GetVTree() (vtree *types.VTree, err error)
- func (volume *Volume) MapVolumeSdc(mapVolumeSdcParam *types.MapVolumeSdcParam) (err error)
- func (volume *Volume) RemoveVolume(removeMode string) (err error)
- func (volume *Volume) UnmapVolumeSdc(unmapVolumeSdcParam *types.UnmapVolumeSdcParam) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DuplicateRequest ¶
func GetSdcLocalGUID ¶
Types ¶
type Client ¶
type Client struct { Token string SIOEndpoint url.URL Http http.Client Insecure string ShowBody bool // contains filtered or unexported fields }
func NewClientWithArgs ¶
func (*Client) Authenticate ¶
func (client *Client) Authenticate(configConnect *ConfigConnect) (Cluster, error)
func (*Client) CreateVolume ¶
func (client *Client) CreateVolume(volume *types.VolumeParam, storagePoolName string) (volumeResp *types.VolumeResp, err error)
func (*Client) FindStoragePool ¶
func (client *Client) FindStoragePool(id, name, href string) (storagePool *types.StoragePool, err error)
func (*Client) FindSystem ¶
func (*Client) FindVolumeID ¶
func (*Client) GetInstance ¶
func (*Client) GetStoragePool ¶
func (client *Client) GetStoragePool(storagepoolhref string) (storagePools []*types.StoragePool, err error)
type ClientPersistent ¶
type ClientPersistent struct {
// contains filtered or unexported fields
}
type ConfigConnect ¶
type ProtectionDomain ¶
type ProtectionDomain struct { ProtectionDomain *types.ProtectionDomain // contains filtered or unexported fields }
func NewProtectionDomain ¶
func NewProtectionDomain(client *Client) *ProtectionDomain
func NewProtectionDomainEx ¶
func NewProtectionDomainEx(client *Client, pd *types.ProtectionDomain) *ProtectionDomain
func (*ProtectionDomain) CreateSds ¶
func (protectionDomain *ProtectionDomain) CreateSds(name string, ipList []string) (string, error)
func (*ProtectionDomain) CreateStoragePool ¶
func (protectionDomain *ProtectionDomain) CreateStoragePool(name string) (string, error)
func (*ProtectionDomain) FindSds ¶
func (protectionDomain *ProtectionDomain) FindSds(field, value string) (sds *types.Sds, err error)
func (*ProtectionDomain) FindStoragePool ¶
func (protectionDomain *ProtectionDomain) FindStoragePool(id, name, href string) (storagePool *types.StoragePool, err error)
func (*ProtectionDomain) GetSds ¶
func (protectionDomain *ProtectionDomain) GetSds() (sdss []types.Sds, err error)
func (*ProtectionDomain) GetStoragePool ¶
func (protectionDomain *ProtectionDomain) GetStoragePool(storagepoolhref string) (storagePools []*types.StoragePool, err error)
type Sdc ¶
func (*Sdc) GetStatistics ¶
func (sdc *Sdc) GetStatistics() (statistics *types.Statistics, err error)
type SdcMappedVolume ¶
func GetLocalVolumeMap ¶
func GetLocalVolumeMap() (mappedVolumes []*SdcMappedVolume, err error)
type StoragePool ¶
type StoragePool struct { StoragePool *types.StoragePool // contains filtered or unexported fields }
func NewStoragePool ¶
func NewStoragePool(client *Client) *StoragePool
func NewStoragePoolEx ¶
func NewStoragePoolEx(client *Client, pool *types.StoragePool) *StoragePool
func (*StoragePool) AttachDevice ¶
func (storagePool *StoragePool) AttachDevice(path string, sdsID string) (string, error)
func (*StoragePool) CreateVolume ¶
func (storagePool *StoragePool) CreateVolume(volume *types.VolumeParam) (volumeResp *types.VolumeResp, err error)
func (*StoragePool) FindDevice ¶
func (storagePool *StoragePool) FindDevice(field, value string) (device *types.Device, err error)
func (*StoragePool) FindVolumeID ¶
func (storagePool *StoragePool) FindVolumeID(volumename string) (volumeID string, err error)
func (*StoragePool) GetDevice ¶
func (storagePool *StoragePool) GetDevice() (devices []types.Device, err error)
func (*StoragePool) GetStatistics ¶
func (storagePool *StoragePool) GetStatistics() (statistics *types.Statistics, err error)
type System ¶
func (*System) CreateProtectionDomain ¶
func (*System) CreateSnapshotConsistencyGroup ¶
func (system *System) CreateSnapshotConsistencyGroup(snapshotVolumesParam *types.SnapshotVolumesParam) (snapshotVolumesResp *types.SnapshotVolumesResp, err error)
func (*System) FindProtectionDomain ¶
func (system *System) FindProtectionDomain(id, name, href string) (protectionDomain *types.ProtectionDomain, err error)
func (*System) GetProtectionDomain ¶
func (system *System) GetProtectionDomain(protectiondomainhref string) (protectionDomains []*types.ProtectionDomain, err error)
func (*System) GetScsiInitiator ¶
func (system *System) GetScsiInitiator() (scsiInitiators []types.ScsiInitiator, err error)
func (*System) GetStatistics ¶
func (system *System) GetStatistics() (statistics *types.Statistics, err error)
type Volume ¶
func (*Volume) MapVolumeSdc ¶
func (volume *Volume) MapVolumeSdc(mapVolumeSdcParam *types.MapVolumeSdcParam) (err error)
func (*Volume) RemoveVolume ¶
func (*Volume) UnmapVolumeSdc ¶
func (volume *Volume) UnmapVolumeSdc(unmapVolumeSdcParam *types.UnmapVolumeSdcParam) (err error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.