Documentation ¶
Index ¶
- Constants
- Variables
- func DrvCfgIsSDCInstalled() bool
- func DrvCfgQueryGUID() (string, error)
- func DrvCfgQueryRescan() (string, error)
- func DrvCfgQuerySystems() (*[]ConfiguredCluster, error)
- func GetLink(links []*types.Link, rel string) (*types.Link, error)
- func GetSdcLocalGUID() (string, error)
- func TimeSpent(functionName string, startTime time.Time)
- type Client
- func (c *Client) Authenticate(configConnect *ConfigConnect) (Cluster, error)
- func (c *Client) CreateVolume(volume *types.VolumeParam, storagePoolName string) (*types.VolumeResp, error)
- func (c *Client) FindStoragePool(id, name, href string) (*types.StoragePool, error)
- func (c *Client) FindSystem(instanceID, name, href string) (*System, error)
- func (c *Client) FindVolumeID(volumename string) (string, error)
- func (c *Client) GetInstance(systemhref string) ([]*types.System, error)
- func (c *Client) GetStoragePool(storagepoolhref string) ([]*types.StoragePool, error)
- func (c *Client) GetSystems() ([]*types.System, error)
- func (c *Client) GetToken() string
- func (c *Client) GetVolume(volumehref, volumeid, ancestorvolumeid, volumename string, getSnapshots bool) ([]*types.Volume, error)
- func (c *Client) SetToken(token string)
- type ClientPersistent
- type Cluster
- type ConfigConnect
- type ConfiguredCluster
- type Device
- type ProtectionDomain
- func (pd *ProtectionDomain) CreateSds(name string, ipList []string) (string, error)
- func (pd *ProtectionDomain) CreateStoragePool(name string, mediaType string) (string, error)
- func (pd *ProtectionDomain) DeleteStoragePool(name string) error
- func (pd *ProtectionDomain) FindSds(field, value string) (*types.Sds, error)
- func (pd *ProtectionDomain) FindStoragePool(id, name, href string) (*types.StoragePool, error)
- func (pd *ProtectionDomain) GetSds() ([]types.Sds, error)
- func (pd *ProtectionDomain) GetStoragePool(storagepoolhref string) ([]*types.StoragePool, error)
- type Sdc
- type SdcMappedVolume
- type Sds
- type StoragePool
- func (sp *StoragePool) AttachDevice(path string, sdsID string) (string, error)
- func (sp *StoragePool) CreateVolume(volume *types.VolumeParam) (*types.VolumeResp, error)
- func (sp *StoragePool) FindDevice(field, value string) (*types.Device, error)
- func (sp *StoragePool) FindVolumeID(volumename string) (string, error)
- func (sp *StoragePool) GetDevice() ([]types.Device, error)
- func (sp *StoragePool) GetStatistics() (*types.Statistics, error)
- func (sp *StoragePool) GetVolume(volumehref, volumeid, ancestorvolumeid, volumename string, getSnapshots bool) ([]*types.Volume, error)
- type System
- func (s *System) CreateProtectionDomain(name string) (string, error)
- func (s *System) CreateSnapshotConsistencyGroup(snapshotVolumesParam *types.SnapshotVolumesParam) (*types.SnapshotVolumesResp, error)
- func (s *System) DeleteProtectionDomain(name string) error
- func (s *System) FindProtectionDomain(id, name, href string) (*types.ProtectionDomain, error)
- func (s *System) FindSdc(field, value string) (*Sdc, error)
- func (s *System) GetProtectionDomain(pdhref string) ([]*types.ProtectionDomain, error)
- func (s *System) GetScsiInitiator() ([]types.ScsiInitiator, error)
- func (s *System) GetSdc() ([]types.Sdc, error)
- func (s *System) GetStatistics() (*types.Statistics, error)
- func (s *System) GetUser() ([]types.User, error)
- type Volume
- func (v *Volume) GetVTree() (*types.VTree, error)
- func (v *Volume) GetVolumeStatistics() (*types.VolumeStatistics, error)
- func (v *Volume) MapVolumeSdc(mapVolumeSdcParam *types.MapVolumeSdcParam) error
- func (v *Volume) RemoveVolume(removeMode string) error
- func (v *Volume) SetMappedSdcLimits(setMappedSdcLimitsParam *types.SetMappedSdcLimitsParam) error
- func (v *Volume) SetVolumeSize(sizeInGB string) error
- func (v *Volume) UnmapVolumeSdc(unmapVolumeSdcParam *types.UnmapVolumeSdcParam) error
Constants ¶
View Source
const (
// IOCTLDevice is the default device to send queries to
IOCTLDevice = "/dev/scini"
)
Variables ¶
View Source
var ( // SDCDevice is the device used to communicate with the SDC SDCDevice = IOCTLDevice // SCINIMockMode is used for testing upper layer code that attempts to call these methods SCINIMockMode = false )
View Source
var ExternalTimeRecorder func(string, time.Duration)
View Source
var FSDevDirectoryPrefix string = ""
For unit testing on Windows - dev is not in the same place
Functions ¶
func DrvCfgIsSDCInstalled ¶ added in v1.3.0
func DrvCfgIsSDCInstalled() bool
DrvCfgIsSDCInstalled will check to see if the SDC kernel module is loaded
func DrvCfgQueryGUID ¶ added in v1.3.0
DrvCfgQueryGUID will return the GUID of the locally installed SDC
func DrvCfgQueryRescan ¶ added in v1.4.0
func DrvCfgQuerySystems ¶ added in v1.3.0
func DrvCfgQuerySystems() (*[]ConfiguredCluster, error)
DrvCfgQuerySystems will return the configured MDM endpoints for the locally installed SDC
func GetSdcLocalGUID ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClientWithArgs ¶
func (*Client) Authenticate ¶
func (c *Client) Authenticate(configConnect *ConfigConnect) (Cluster, error)
func (*Client) CreateVolume ¶
func (c *Client) CreateVolume( volume *types.VolumeParam, storagePoolName string) (*types.VolumeResp, error)
func (*Client) FindStoragePool ¶
func (c *Client) FindStoragePool( id, name, href string) (*types.StoragePool, error)
func (*Client) FindSystem ¶
func (*Client) GetInstance ¶
func (*Client) GetStoragePool ¶
func (c *Client) GetStoragePool( storagepoolhref string) ([]*types.StoragePool, error)
type ClientPersistent ¶
type ClientPersistent struct {
// contains filtered or unexported fields
}
type ConfigConnect ¶
type ConfiguredCluster ¶ added in v1.3.0
type ConfiguredCluster struct { // SystemID is the MDM cluster system ID SystemID string // SdcID is the ID of the SDC as known to the MDM cluster SdcID string }
ConfiguredCluster contains configuration information for one connected system
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 (pd *ProtectionDomain) CreateSds( name string, ipList []string) (string, error)
func (*ProtectionDomain) CreateStoragePool ¶
func (pd *ProtectionDomain) CreateStoragePool(name string, mediaType string) (string, error)
func (*ProtectionDomain) DeleteStoragePool ¶ added in v1.3.0
func (pd *ProtectionDomain) DeleteStoragePool(name string) error
DeleteStoragePool will delete a storage pool
func (*ProtectionDomain) FindSds ¶
func (pd *ProtectionDomain) FindSds( field, value string) (*types.Sds, error)
func (*ProtectionDomain) FindStoragePool ¶
func (pd *ProtectionDomain) FindStoragePool( id, name, href string) (*types.StoragePool, error)
func (*ProtectionDomain) GetStoragePool ¶
func (pd *ProtectionDomain) GetStoragePool( storagepoolhref string) ([]*types.StoragePool, error)
type Sdc ¶
func (*Sdc) FindVolumes ¶ added in v1.2.0
func (*Sdc) GetStatistics ¶
func (sdc *Sdc) GetStatistics() (*types.SdcStatistics, error)
type SdcMappedVolume ¶
func GetLocalVolumeMap ¶
func GetLocalVolumeMap() (mappedVolumes []*SdcMappedVolume, err error)
GetLocalVolumeMap will return all SdcMappedVolume entries
func GetLocalVolumeMapByRegex ¶ added in v1.2.0
func GetLocalVolumeMapByRegex(systemIDRegex string, volumeIDRegex string) (mappedVolumes []*SdcMappedVolume, err error)
GetLocalVolumeMapByRegex will return the SdcMappedVolume entries matching supplied regex values
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 (sp *StoragePool) AttachDevice( path string, sdsID string) (string, error)
func (*StoragePool) CreateVolume ¶
func (sp *StoragePool) CreateVolume( volume *types.VolumeParam) (*types.VolumeResp, error)
func (*StoragePool) FindDevice ¶
func (sp *StoragePool) FindDevice( field, value string) (*types.Device, error)
func (*StoragePool) FindVolumeID ¶
func (sp *StoragePool) FindVolumeID(volumename string) (string, error)
func (*StoragePool) GetStatistics ¶
func (sp *StoragePool) GetStatistics() (*types.Statistics, error)
type System ¶
func (*System) CreateProtectionDomain ¶
func (*System) CreateSnapshotConsistencyGroup ¶
func (s *System) CreateSnapshotConsistencyGroup( snapshotVolumesParam *types.SnapshotVolumesParam) (*types.SnapshotVolumesResp, error)
func (*System) DeleteProtectionDomain ¶ added in v1.3.0
DeleteProtectionDomain will delete a protection domain
func (*System) FindProtectionDomain ¶
func (s *System) FindProtectionDomain( id, name, href string) (*types.ProtectionDomain, error)
func (*System) GetProtectionDomain ¶
func (s *System) GetProtectionDomain( pdhref string) ([]*types.ProtectionDomain, error)
func (*System) GetScsiInitiator ¶
func (s *System) GetScsiInitiator() ([]types.ScsiInitiator, error)
func (*System) GetStatistics ¶
func (s *System) GetStatistics() (*types.Statistics, error)
type Volume ¶
func (*Volume) GetVolumeStatistics ¶ added in v1.2.0
func (v *Volume) GetVolumeStatistics() (*types.VolumeStatistics, error)
func (*Volume) MapVolumeSdc ¶
func (v *Volume) MapVolumeSdc( mapVolumeSdcParam *types.MapVolumeSdcParam) error
func (*Volume) RemoveVolume ¶
func (*Volume) SetMappedSdcLimits ¶
func (v *Volume) SetMappedSdcLimits( setMappedSdcLimitsParam *types.SetMappedSdcLimitsParam) error
func (*Volume) SetVolumeSize ¶ added in v1.2.0
func (*Volume) UnmapVolumeSdc ¶
func (v *Volume) UnmapVolumeSdc( unmapVolumeSdcParam *types.UnmapVolumeSdcParam) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.