Versions in this module Expand all Collapse all v0 v0.1.0 Oct 27, 2017 Changes in this version + 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 struct + Http http.Client + Insecure string + SIOEndpoint url.URL + ShowBody bool + Token string + func NewClient() (client *Client, err error) + func NewClientWithArgs(endpoint string, version string, insecure, useCerts bool) (client *Client, err error) + func (c *Client) NewRequest(params map[string]string, method string, u url.URL, body io.Reader) *http.Request + 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) + type ClientPersistent struct + type Cluster struct + type ConfigConnect struct + Endpoint string + Password string + Username string + Version string + type Device struct + Device *types.Device + func NewDevice(client *Client) *Device + func NewDeviceEx(client *Client, device *types.Device) *Device + type ProtectionDomain struct + ProtectionDomain *types.ProtectionDomain + func NewProtectionDomain(client *Client) *ProtectionDomain + func NewProtectionDomainEx(client *Client, pd *types.ProtectionDomain) *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 struct + Sdc *types.Sdc + func NewSdc(client *Client, sdc *types.Sdc) *Sdc + func (sdc *Sdc) GetStatistics() (statistics *types.Statistics, err error) + func (sdc *Sdc) GetVolume() (volumes []*types.Volume, err error) + type SdcMappedVolume struct + MdmID string + SdcDevice string + VolumeID string + func GetLocalVolumeMap() (mappedVolumes []*SdcMappedVolume, err error) + type Sds struct + Sds *types.Sds + func NewSds(client *Client) *Sds + func NewSdsEx(client *Client, sds *types.Sds) *Sds + type StoragePool struct + StoragePool *types.StoragePool + func NewStoragePool(client *Client) *StoragePool + func NewStoragePoolEx(client *Client, pool *types.StoragePool) *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 struct + System *types.System + func NewSystem(client *Client) *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 struct + Volume *types.Volume + func NewVolume(client *Client) *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)