package goscaleio
import "github.com/codedellemc/goscaleio"
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 NewClient() (client *Client, err error)
- func NewClientWithArgs( endpoint string, version string, insecure, useCerts bool) (client *Client, err error)
- 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
- func NewDevice(client *Client) *Device
- func NewDeviceEx(client *Client, device *types.Device) *Device
- type 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
- 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
- type Sds
- type 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
- 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
- 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)
Functions ¶
func DuplicateRequest ¶
func GetLink ¶
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 NewClient ¶
func NewClientWithArgs ¶
func NewClientWithArgs( endpoint string, version string, insecure, useCerts bool) (client *Client, err error)
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)
func (*Client) GetVolume ¶
func (client *Client) GetVolume(volumehref, volumeid, ancestorvolumeid, volumename string, getSnapshots bool) (volumes []*types.Volume, err error)
func (*Client) NewRequest ¶
func (c *Client) NewRequest(params map[string]string, method string, u url.URL, body io.Reader) *http.Request
type ClientPersistent ¶
type ClientPersistent struct {
// contains filtered or unexported fields
}
type Cluster ¶
type Cluster struct { }
type ConfigConnect ¶
type Device ¶
func NewDevice ¶
func NewDeviceEx ¶
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 NewSdc ¶
func (*Sdc) GetStatistics ¶
func (sdc *Sdc) GetStatistics() (statistics *types.Statistics, err error)
func (*Sdc) GetVolume ¶
type SdcMappedVolume ¶
func GetLocalVolumeMap ¶
func GetLocalVolumeMap() (mappedVolumes []*SdcMappedVolume, err error)
type Sds ¶
func NewSds ¶
func NewSdsEx ¶
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)
func (*StoragePool) GetVolume ¶
func (storagePool *StoragePool) GetVolume(volumehref, volumeid, ancestorvolumeid, volumename string, getSnapshots bool) (volumes []*types.Volume, err error)
type System ¶
func NewSystem ¶
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) FindSdc ¶
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) GetSdc ¶
func (*System) GetStatistics ¶
func (system *System) GetStatistics() (statistics *types.Statistics, err error)
func (*System) GetUser ¶
type Volume ¶
func NewVolume ¶
func (*Volume) GetVTree ¶
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 ¶
api.go certs.go device.go instance.go protectiondomain.go scsiinitiator.go sdc.go sds.go storagepool.go system.go user.go volume.go
Directories ¶
Path | Synopsis |
---|---|
types | |
types/v1 |
- Version
- v0.1.0 (latest)
- Published
- Oct 27, 2017
- Platform
- darwin/amd64
- Imports
- 21 packages
- Last checked
- 1 month ago –
Tools for package owners.