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 AutoSnapshotParam
- type Client
- func (c *Client) Authenticate(configConnect *ConfigConnect) (Cluster, error)
- func (c *Client) CreateNFSExport(createParams *types.NFSExportCreate) (respnfs *types.NFSExportCreateResponse, err error)
- func (c *Client) CreateReplicationConsistencyGroup(rcg *types.ReplicationConsistencyGroupCreatePayload) (*types.ReplicationConsistencyGroupResp, error)
- func (c *Client) CreateReplicationPair(rp *types.QueryReplicationPair) (*types.ReplicationPair, error)
- func (c *Client) CreateVolume(volume *types.VolumeParam, storagePoolName, protectionDomain string) (*types.VolumeResp, error)
- func (c *Client) DeleteNFSExport(id string) error
- func (c *Client) FindSnapshotPolicyID(spname string) (string, error)
- func (c *Client) FindStoragePool(id, name, href, protectionDomain 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) GetAllReplicationPairs() ([]*types.ReplicationPair, error)
- func (c *Client) GetInstance(systemhref string) ([]*types.System, error)
- func (c *Client) GetNFSExport() (nfsList []types.NFSExport, err error)
- func (c *Client) GetNFSExportByIDName(id string, name string) (respnfs *types.NFSExport, err error)
- func (c *Client) GetPeerMDMs() ([]*types.PeerMDM, error)
- func (c *Client) GetReplicationConsistencyGroupByID(groupID string) (*types.ReplicationConsistencyGroup, error)
- func (c *Client) GetReplicationConsistencyGroups() ([]*types.ReplicationConsistencyGroup, error)
- func (c *Client) GetSnapshotPolicy(spname, spid string) ([]*types.SnapshotPolicy, 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) GetVersion() (string, error)
- func (c *Client) GetVolume(volumehref, volumeid, ancestorvolumeid, volumename string, getSnapshots bool) ([]*types.Volume, error)
- func (c *Client) ModifyNFSExport(ModifyParams *types.NFSExportModify, id string) (err error)
- func (c *Client) RenameSdc(sdcID, name string) error
- func (c *Client) SetToken(token string)
- type ClientPersistent
- type Cluster
- type ConfigConnect
- type ConfiguredCluster
- type Device
- type FileSystem
- type GatewayClient
- func (gc *GatewayClient) AbortOperation() (*types.GatewayResponse, error)
- func (gc *GatewayClient) BeginInstallation(jsonStr, mdmUsername, mdmPassword, liaPassword string, expansion bool) (*types.GatewayResponse, error)
- func (gc *GatewayClient) CheckForCompletionQueueCommands(currentPhase string) (*types.GatewayResponse, error)
- func (gc *GatewayClient) ClearQueueCommand() (*types.GatewayResponse, error)
- func (gc *GatewayClient) DeletePackage(packageName string) (*types.GatewayResponse, error)
- func (gc *GatewayClient) GetInQueueCommand() ([]types.MDMQueueCommandDetails, error)
- func (gc *GatewayClient) GetPackageDetails() ([]*types.PackageDetails, error)
- func (gc *GatewayClient) MoveToIdlePhase() (*types.GatewayResponse, error)
- func (gc *GatewayClient) MoveToNextPhase() (*types.GatewayResponse, error)
- func (gc *GatewayClient) ParseCSV(filePath string) (*types.GatewayResponse, error)
- func (gc *GatewayClient) RetryPhase() (*types.GatewayResponse, error)
- func (gc *GatewayClient) UploadPackages(filePaths []string) (*types.GatewayResponse, error)
- func (gc *GatewayClient) ValidateMDMDetails(mdmTopologyParam []byte) (*types.GatewayResponse, error)
- type PeerMDM
- type ProtectionDomain
- func (pd *ProtectionDomain) Activate(forceActivate bool) error
- func (pd *ProtectionDomain) AddSdSIP(id, ip, role string) error
- func (pd *ProtectionDomain) CreateSds(name string, ipList []string) (string, error)
- func (pd *ProtectionDomain) CreateSdsWithParams(sds *types.Sds) (string, error)
- func (pd *ProtectionDomain) CreateStoragePool(sp *types.StoragePoolParam) (string, error)
- func (pd *ProtectionDomain) Delete() error
- func (pd *ProtectionDomain) DeleteSds(id string) error
- func (pd *ProtectionDomain) DeleteStoragePool(name string) error
- func (pd *ProtectionDomain) DisableFGLMcache() error
- func (pd *ProtectionDomain) DisableRFCache(ID string) (string, error)
- func (pd *ProtectionDomain) DisableRfcache() error
- func (pd *ProtectionDomain) EnableFGLMcache() error
- func (pd *ProtectionDomain) EnableOrDisableZeroPadding(ID string, zeroPadValue string) error
- func (pd *ProtectionDomain) EnableRFCache(ID string) (string, error)
- func (pd *ProtectionDomain) EnableRfcache() 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) Fragmentation(ID string, value bool) error
- func (pd *ProtectionDomain) GetSds() ([]types.Sds, error)
- func (pd *ProtectionDomain) GetStoragePool(storagepoolhref string) ([]*types.StoragePool, error)
- func (pd *ProtectionDomain) InActivate(forceShutDown bool) error
- func (pd *ProtectionDomain) ModifyStoragePoolMedia(ID, mediaType string) (string, error)
- func (pd *ProtectionDomain) ModifyStoragePoolName(ID, name string) (string, error)
- func (pd *ProtectionDomain) Refresh() error
- func (pd *ProtectionDomain) RemoveSDSIP(id, ip string) error
- func (pd *ProtectionDomain) SetCapacityAlertThreshold(ID string, capacityAlertThreshold *types.CapacityAlertThresholdParam) error
- func (pd *ProtectionDomain) SetDefaultFGLMcacheSize(cacheSizeInMB int) error
- func (pd *ProtectionDomain) SetName(name string) error
- func (pd *ProtectionDomain) SetProtectedMaintenanceModeIoPriorityPolicy(ID string, protectedMaintenanceModeParam *types.ProtectedMaintenanceModeParam) error
- func (pd *ProtectionDomain) SetRMcacheWriteHandlingMode(ID string, writeHandlingModeValue string) error
- func (pd *ProtectionDomain) SetRebalanceEnabled(ID string, rebalanceEnabledValue string) error
- func (pd *ProtectionDomain) SetRebalanceIoPriorityPolicy(ID string, protectedMaintenanceModeParam *types.ProtectedMaintenanceModeParam) error
- func (pd *ProtectionDomain) SetRebuildEnabled(ID string, rebuildEnabledValue string) error
- func (pd *ProtectionDomain) SetRebuildRebalanceParallelismParam(ID string, limitValue string) error
- func (pd *ProtectionDomain) SetReplicationJournalCapacity(ID string, replicationJournalCapacity string) error
- func (pd *ProtectionDomain) SetRfcacheParams(params types.PDRfCacheParams) error
- func (pd *ProtectionDomain) SetSDSIPRole(id, ip, role string) error
- func (pd *ProtectionDomain) SetSdsDrlMode(id, drlMode string) error
- func (pd *ProtectionDomain) SetSdsName(id, name string) error
- func (pd *ProtectionDomain) SetSdsNetworkLimits(params types.SdsNetworkLimitParams) error
- func (pd *ProtectionDomain) SetSdsPerformanceProfile(id, perfProf string) error
- func (pd *ProtectionDomain) SetSdsPort(id string, port int) error
- func (pd *ProtectionDomain) SetSdsRfCache(id string, enable bool) error
- func (pd *ProtectionDomain) SetSdsRmCache(id string, enable bool) error
- func (pd *ProtectionDomain) SetSdsRmCacheSize(id string, size int) error
- func (pd *ProtectionDomain) SetSparePercentage(ID string, sparePercentageValue string) error
- func (pd *ProtectionDomain) SetVTreeMigrationIOPriorityPolicy(ID string, protectedMaintenanceModeParam *types.ProtectedMaintenanceModeParam) error
- type ReplicationConsistencyGroup
- func (rcg *ReplicationConsistencyGroup) CreateReplicationConsistencyGroupSnapshot(force bool) (*types.CreateReplicationConsistencyGroupSnapshotResp, error)
- func (rcg *ReplicationConsistencyGroup) ExecuteFailoverOnReplicationGroup() error
- func (rcg *ReplicationConsistencyGroup) ExecutePauseOnReplicationGroup() error
- func (rcg *ReplicationConsistencyGroup) ExecuteRestoreOnReplicationGroup() error
- func (rcg *ReplicationConsistencyGroup) ExecuteResumeOnReplicationGroup() error
- func (rcg *ReplicationConsistencyGroup) ExecuteReverseOnReplicationGroup() error
- func (rcg *ReplicationConsistencyGroup) ExecuteSwitchoverOnReplicationGroup(force bool) error
- func (rcg *ReplicationConsistencyGroup) ExecuteSyncOnReplicationGroup() (*types.SynchronizationResponse, error)
- func (rcg *ReplicationConsistencyGroup) FreezeReplicationConsistencyGroup(id string) error
- func (rcg *ReplicationConsistencyGroup) GetReplicationPairs() ([]*types.ReplicationPair, error)
- func (rcg *ReplicationConsistencyGroup) GetSyncStateOnReplicationGroup(syncKey string) error
- func (rcg *ReplicationConsistencyGroup) RemoveReplicationConsistencyGroup(forceIgnoreConsistency bool) error
- type ReplicationPair
- type Sdc
- type SdcMappedVolume
- type Sds
- type SetCompressionMethodParam
- type SetSnapshotSecurityParam
- type SetVolumeAccessModeLimitParam
- type SetVolumeMappingAccessModeParam
- type SetVolumeUseRmCacheParam
- type SnapshotPolicy
- type StoragePool
- func (sp *StoragePool) AttachDevice(deviceParam *types.DeviceParam) (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) GetSDSStoragePool() ([]types.Sds, error)
- func (sp *StoragePool) GetStatistics() (*types.Statistics, error)
- func (sp *StoragePool) GetVolume(volumehref, volumeid, ancestorvolumeid, volumename string, getSnapshots bool) ([]*types.Volume, error)
- func (sp *StoragePool) ModifyRMCache(useRmcache string) error
- func (sp *StoragePool) RemoveDevice(id string) error
- func (sp *StoragePool) SetDeviceCapacityLimit(id, capacityLimitInGB string) error
- func (sp *StoragePool) SetDeviceExternalAccelerationType(id, externalAccelerationType string) error
- func (sp *StoragePool) SetDeviceMediaType(id, mediaType string) error
- func (sp *StoragePool) SetDeviceName(id, name string) error
- func (sp *StoragePool) UpdateDeviceOriginalPathways(id string) error
- type System
- func (s *System) ApproveSdcByGUID(sdcGUID string) (*types.ApproveSdcByGUIDResponse, error)
- func (s *System) ChangeSdcName(idOfSdc, name string) (*Sdc, error)
- func (s *System) CreateFileSystem(fs *types.FsCreate) (*types.FileSystemResp, error)
- func (s *System) CreateNAS(name string, protectionDomainID string) (*types.CreateNASResponse, error)
- func (s *System) CreateProtectionDomain(name string) (string, error)
- func (s *System) CreateSnapshotConsistencyGroup(snapshotVolumesParam *types.SnapshotVolumesParam) (*types.SnapshotVolumesResp, error)
- func (s *System) DeleteFileSystem(name string) error
- func (s *System) DeleteNAS(id string) error
- func (s *System) DeleteProtectionDomain(name string) error
- func (s *System) FindProtectionDomain(id, name, href string) (*types.ProtectionDomain, error)
- func (s *System) FindProtectionDomainByID(id string) (*types.ProtectionDomain, error)
- func (s *System) FindProtectionDomainByName(name string) (*types.ProtectionDomain, error)
- func (s *System) FindSdc(field, value string) (*Sdc, error)
- func (sys *System) FindSds(field, value string) (*types.Sds, error)
- func (system *System) GetAllDevice() ([]types.Device, error)
- func (s *System) GetAllFileSystems() ([]types.FileSystem, error)
- func (sys *System) GetAllSds() ([]types.Sds, error)
- func (sys *System) GetAllStoragePools() ([]types.StoragePool, error)
- func (system *System) GetDevice(id string) (*types.Device, error)
- func (system *System) GetDeviceByField(field, value string) ([]types.Device, error)
- func (s *System) GetFileInterface(id string) (*types.FileInterface, error)
- func (s *System) GetFileSystemByIDName(id string, name string) (*types.FileSystem, error)
- func (s *System) GetNASByIDName(id string, name string) (*types.NAS, error)
- func (s *System) GetProtectionDomain(pdhref string) ([]*types.ProtectionDomain, error)
- func (s *System) GetProtectionDomainEx(id string) (*ProtectionDomain, error)
- func (s *System) GetScsiInitiator() ([]types.ScsiInitiator, error)
- func (s *System) GetSdc() ([]types.Sdc, error)
- func (s *System) GetSdcByID(id string) (*Sdc, error)
- func (sys *System) GetSdsByID(id string) (types.Sds, error)
- func (s *System) GetStatistics() (*types.Statistics, error)
- func (sys *System) GetStoragePoolByID(id string) (*types.StoragePool, 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) LockAutoSnapshot() error
- func (v *Volume) MapVolumeSdc(mapVolumeSdcParam *types.MapVolumeSdcParam) error
- func (v *Volume) RemoveVolume(removeMode string) error
- func (v *Volume) SetCompressionMethod(compressionMethod string) error
- func (v *Volume) SetMappedSdcLimits(setMappedSdcLimitsParam *types.SetMappedSdcLimitsParam) error
- func (v *Volume) SetSnapshotSecurity(retentionPeriodInMin string) error
- func (v *Volume) SetVolumeAccessModeLimit(mode string) error
- func (v *Volume) SetVolumeMappingAccessMode(accessmode string, sdcid string) error
- func (v *Volume) SetVolumeName(newName string) error
- func (v *Volume) SetVolumeSize(sizeInGB string) error
- func (v *Volume) SetVolumeUseRmCache(useRmCache bool) error
- func (v *Volume) UnlockAutoSnapshot() error
- func (v *Volume) UnmapVolumeSdc(unmapVolumeSdcParam *types.UnmapVolumeSdcParam) error
- func (v *Volume) UnmarkForReplication() error
Constants ¶
const ( Inconsistent string = "Inconsistent" Consistent string = "Consistent" ConsistentPending string = "ConsistentPending" Invalid string = "Invalid" PartiallyConsistent string = "PartiallyConsistent" )
List of consistency group states.
const ( RoleSdsOnly = "sdsOnly" RoleSdcOnly = "sdcOnly" RoleAll = "all" )
SDS IPs can have 3 roles.
const (
// IOCTLDevice is the default device to send queries to
IOCTLDevice = "/dev/scini"
)
Variables ¶
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 )
var ClientConnectTimeout time.Duration
ClientConnectTimeout is used for unit testing to set the connection timeout much lower
var ExternalTimeRecorder func(string, time.Duration)
ExternalTimeRecorder is used to track time
var FSDevDirectoryPrefix string
FSDevDirectoryPrefix is 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
DrvCfgQueryRescan preforms a rescan
func DrvCfgQuerySystems ¶ added in v1.3.0
func DrvCfgQuerySystems() (*[]ConfiguredCluster, error)
DrvCfgQuerySystems will return the configured MDM endpoints for the locally installed SDC
Types ¶
type AutoSnapshotParam ¶ added in v1.10.0
type AutoSnapshotParam struct {
AutoSnapshotWillBeRemoved bool `json:"autoSnapshotWillBeRemoved,omitempty"`
}
AutoSnapshotParam defines type for autosnapshot parameter for method LockAutoSnapshot/UnlockAutoSnapshot
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client defines struct for Client
func NewClientWithArgs ¶
func NewClientWithArgs( endpoint string, version string, timeout int64, insecure, useCerts bool) (client *Client, err error)
NewClientWithArgs returns a new client
func (*Client) Authenticate ¶
func (c *Client) Authenticate(configConnect *ConfigConnect) (Cluster, error)
Authenticate controls authentication to client
func (*Client) CreateNFSExport ¶ added in v1.11.0
func (c *Client) CreateNFSExport(createParams *types.NFSExportCreate) (respnfs *types.NFSExportCreateResponse, err error)
CreateNFSExport create an NFS Export for a File System.
func (*Client) CreateReplicationConsistencyGroup ¶ added in v1.10.0
func (c *Client) CreateReplicationConsistencyGroup(rcg *types.ReplicationConsistencyGroupCreatePayload) (*types.ReplicationConsistencyGroupResp, error)
CreateReplicationConsistencyGroup creates a ReplicationConsistencyGroup on the array
func (*Client) CreateReplicationPair ¶ added in v1.10.0
func (c *Client) CreateReplicationPair(rp *types.QueryReplicationPair) (*types.ReplicationPair, error)
CreateReplicationPair creates a ReplicationPair on the desired ReplicaitonConsistencyGroup
func (*Client) CreateVolume ¶
func (c *Client) CreateVolume( volume *types.VolumeParam, storagePoolName, protectionDomain string) (*types.VolumeResp, error)
CreateVolume creates a volume
func (*Client) DeleteNFSExport ¶ added in v1.11.0
DeleteNFSExport deletes the NFS export
func (*Client) FindSnapshotPolicyID ¶ added in v1.10.0
FindSnapshotPolicyID retruns a Snapshot Policy ID based on name
func (*Client) FindStoragePool ¶
func (c *Client) FindStoragePool( id, name, href, protectionDomain string) (*types.StoragePool, error)
FindStoragePool returns a StoragePool
func (*Client) FindSystem ¶
FindSystem returns a system based on ID or name
func (*Client) FindVolumeID ¶
FindVolumeID returns a VolumeID
func (*Client) GetAllReplicationPairs ¶ added in v1.10.0
func (c *Client) GetAllReplicationPairs() ([]*types.ReplicationPair, error)
GetAllReplicationPairs returns a list all replication pairs on the system.
func (*Client) GetInstance ¶
GetInstance returns an instance
func (*Client) GetNFSExport ¶ added in v1.11.0
GetNFSExport lists NFS Exports.
func (*Client) GetNFSExportByIDName ¶ added in v1.11.0
GetNFSExportByIDName returns NFS Export properties by name or ID
func (*Client) GetPeerMDMs ¶ added in v1.10.0
GetPeerMDMs returns a list of peer MDMs know to the System
func (*Client) GetReplicationConsistencyGroupByID ¶ added in v1.10.0
func (c *Client) GetReplicationConsistencyGroupByID(groupID string) (*types.ReplicationConsistencyGroup, error)
GetReplicationConsistencyGroupByID returns a specified ReplicationConsistencyGroup
func (*Client) GetReplicationConsistencyGroups ¶ added in v1.10.0
func (c *Client) GetReplicationConsistencyGroups() ([]*types.ReplicationConsistencyGroup, error)
GetReplicationConsistencyGroups returns a list of the ReplicationConsistencyGroups
func (*Client) GetSnapshotPolicy ¶ added in v1.10.0
func (c *Client) GetSnapshotPolicy( spname, spid string) ([]*types.SnapshotPolicy, error)
GetSnapshotPolicy returns a list of snapshot policy
func (*Client) GetStoragePool ¶
func (c *Client) GetStoragePool( storagepoolhref string) ([]*types.StoragePool, error)
GetStoragePool returns a storagepool
func (*Client) GetSystems ¶ added in v1.3.0
GetSystems returns systems
func (*Client) GetVersion ¶ added in v1.11.0
GetVersion returns version
func (*Client) GetVolume ¶
func (c *Client) GetVolume( volumehref, volumeid, ancestorvolumeid, volumename string, getSnapshots bool) ([]*types.Volume, error)
GetVolume returns a volume
func (*Client) ModifyNFSExport ¶ added in v1.11.0
func (c *Client) ModifyNFSExport(ModifyParams *types.NFSExportModify, id string) (err error)
ModifyNFSExport modifies the NFS export properties
type ClientPersistent ¶
type ClientPersistent struct {
// contains filtered or unexported fields
}
ClientPersistent defines struct for ClientPersistent
type ConfigConnect ¶
ConfigConnect defines struct for 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 FileSystem ¶ added in v1.11.0
type FileSystem struct { FileSystem *types.FileSystem // contains filtered or unexported fields }
FileSystem defines struct for file system
func NewFileSystem ¶ added in v1.11.0
func NewFileSystem(client *Client, fs *types.FileSystem) *FileSystem
NewFileSystem returns a new file system
type GatewayClient ¶ added in v1.11.0
type GatewayClient struct {
// contains filtered or unexported fields
}
GatewayClient is client for Gateway server
func NewGateway ¶ added in v1.11.0
func NewGateway( host string, username, password string, insecure, useCerts bool) (*GatewayClient, error)
NewGateway returns a new gateway client.
func (*GatewayClient) AbortOperation ¶ added in v1.11.0
func (gc *GatewayClient) AbortOperation() (*types.GatewayResponse, error)
AbortOperation used for abort installation operation
func (*GatewayClient) BeginInstallation ¶ added in v1.11.0
func (gc *GatewayClient) BeginInstallation(jsonStr, mdmUsername, mdmPassword, liaPassword string, expansion bool) (*types.GatewayResponse, error)
BeginInstallation used for start installation
func (*GatewayClient) CheckForCompletionQueueCommands ¶ added in v1.11.0
func (gc *GatewayClient) CheckForCompletionQueueCommands(currentPhase string) (*types.GatewayResponse, error)
CheckForCompletionQueueCommands used for check queue commands completed or not
func (*GatewayClient) ClearQueueCommand ¶ added in v1.11.0
func (gc *GatewayClient) ClearQueueCommand() (*types.GatewayResponse, error)
ClearQueueCommand used for clear all commands in queue
func (*GatewayClient) DeletePackage ¶ added in v1.11.0
func (gc *GatewayClient) DeletePackage(packageName string) (*types.GatewayResponse, error)
DeletePackage used for delete packages from gateway server
func (*GatewayClient) GetInQueueCommand ¶ added in v1.11.0
func (gc *GatewayClient) GetInQueueCommand() ([]types.MDMQueueCommandDetails, error)
GetInQueueCommand used for get in queue commands
func (*GatewayClient) GetPackageDetails ¶ added in v1.11.0
func (gc *GatewayClient) GetPackageDetails() ([]*types.PackageDetails, error)
GetPackageDetails used for get package details
func (*GatewayClient) MoveToIdlePhase ¶ added in v1.11.0
func (gc *GatewayClient) MoveToIdlePhase() (*types.GatewayResponse, error)
MoveToIdlePhase used for move gateway installer to idle state
func (*GatewayClient) MoveToNextPhase ¶ added in v1.11.0
func (gc *GatewayClient) MoveToNextPhase() (*types.GatewayResponse, error)
MoveToNextPhase used for move to next phases in installation
func (*GatewayClient) ParseCSV ¶ added in v1.11.0
func (gc *GatewayClient) ParseCSV(filePath string) (*types.GatewayResponse, error)
ParseCSV used for upload csv to gateway server and parse it
func (*GatewayClient) RetryPhase ¶ added in v1.11.0
func (gc *GatewayClient) RetryPhase() (*types.GatewayResponse, error)
RetryPhase used for re run to failed phases in installation
func (*GatewayClient) UploadPackages ¶ added in v1.11.0
func (gc *GatewayClient) UploadPackages(filePaths []string) (*types.GatewayResponse, error)
UploadPackages used for upload packge to gateway server
func (*GatewayClient) ValidateMDMDetails ¶ added in v1.11.0
func (gc *GatewayClient) ValidateMDMDetails(mdmTopologyParam []byte) (*types.GatewayResponse, error)
ValidateMDMDetails used for validate mdm details
type ProtectionDomain ¶
type ProtectionDomain struct { ProtectionDomain *types.ProtectionDomain // contains filtered or unexported fields }
ProtectionDomain defines a struct for ProtectionDomain
func NewProtectionDomain ¶
func NewProtectionDomain(client *Client) *ProtectionDomain
NewProtectionDomain returns a new ProtectionDomain
func NewProtectionDomainEx ¶
func NewProtectionDomainEx(client *Client, pd *types.ProtectionDomain) *ProtectionDomain
NewProtectionDomainEx returns a new ProtectionDomain
func (*ProtectionDomain) Activate ¶ added in v1.11.0
func (pd *ProtectionDomain) Activate(forceActivate bool) error
Activate activates the Protection domain
func (*ProtectionDomain) AddSdSIP ¶ added in v1.10.0
func (pd *ProtectionDomain) AddSdSIP(id, ip, role string) error
AddSdSIP adds a new IP with specified Role in SDS
func (*ProtectionDomain) CreateSds ¶
func (pd *ProtectionDomain) CreateSds( name string, ipList []string) (string, error)
CreateSds creates a new Sds with automatically assigned roles to IPs
func (*ProtectionDomain) CreateSdsWithParams ¶ added in v1.10.0
func (pd *ProtectionDomain) CreateSdsWithParams(sds *types.Sds) (string, error)
CreateSdsWithParams creates a new Sds with user defined SdsParam struct
func (*ProtectionDomain) CreateStoragePool ¶
func (pd *ProtectionDomain) CreateStoragePool(sp *types.StoragePoolParam) (string, error)
CreateStoragePool creates a storage pool
func (*ProtectionDomain) Delete ¶ added in v1.11.0
func (pd *ProtectionDomain) Delete() error
Delete (ProtectionDomain) will delete a protection domain
func (*ProtectionDomain) DeleteSds ¶ added in v1.10.0
func (pd *ProtectionDomain) DeleteSds(id string) error
DeleteSds deletes a Sds against Id
func (*ProtectionDomain) DeleteStoragePool ¶ added in v1.3.0
func (pd *ProtectionDomain) DeleteStoragePool(name string) error
DeleteStoragePool will delete a storage pool
func (*ProtectionDomain) DisableFGLMcache ¶ added in v1.11.0
func (pd *ProtectionDomain) DisableFGLMcache() error
DisableFGLMcache disables Fine Granularity Metadata cache for the Protection Domain
func (*ProtectionDomain) DisableRFCache ¶ added in v1.10.0
func (pd *ProtectionDomain) DisableRFCache(ID string) (string, error)
DisableRFCache Disables RFCache
func (*ProtectionDomain) DisableRfcache ¶ added in v1.11.0
func (pd *ProtectionDomain) DisableRfcache() error
DisableRfcache disables SDS Read Flash cache for entire Protection Domain
func (*ProtectionDomain) EnableFGLMcache ¶ added in v1.11.0
func (pd *ProtectionDomain) EnableFGLMcache() error
EnableFGLMcache enables Fine Granularity Metadata cache for the Protection Domain
func (*ProtectionDomain) EnableOrDisableZeroPadding ¶ added in v1.11.0
func (pd *ProtectionDomain) EnableOrDisableZeroPadding(ID string, zeroPadValue string) error
EnableOrDisableZeroPadding Enables / disables zero padding
func (*ProtectionDomain) EnableRFCache ¶ added in v1.10.0
func (pd *ProtectionDomain) EnableRFCache(ID string) (string, error)
EnableRFCache Enables RFCache
func (*ProtectionDomain) EnableRfcache ¶ added in v1.11.0
func (pd *ProtectionDomain) EnableRfcache() error
EnableRfcache enables SDS Read Flash cache for entire Protection Domain
func (*ProtectionDomain) FindSds ¶
func (pd *ProtectionDomain) FindSds( field, value string) (*types.Sds, error)
FindSds returns a Sds
func (*ProtectionDomain) FindStoragePool ¶
func (pd *ProtectionDomain) FindStoragePool( id, name, href string) (*types.StoragePool, error)
FindStoragePool returns a storagepool based on id or name
func (*ProtectionDomain) Fragmentation ¶ added in v1.11.0
func (pd *ProtectionDomain) Fragmentation(ID string, value bool) error
Fragmentation enables or disables fragmentation
func (*ProtectionDomain) GetSds ¶
func (pd *ProtectionDomain) GetSds() ([]types.Sds, error)
GetSds returns all Sds on the protection domain
func (*ProtectionDomain) GetStoragePool ¶
func (pd *ProtectionDomain) GetStoragePool( storagepoolhref string) ([]*types.StoragePool, error)
GetStoragePool returns a storage pool
func (*ProtectionDomain) InActivate ¶ added in v1.11.0
func (pd *ProtectionDomain) InActivate(forceShutDown bool) error
InActivate disables the Protection domain
func (*ProtectionDomain) ModifyStoragePoolMedia ¶ added in v1.10.0
func (pd *ProtectionDomain) ModifyStoragePoolMedia(ID, mediaType string) (string, error)
ModifyStoragePoolMedia Modifies Storagepool Media Type
func (*ProtectionDomain) ModifyStoragePoolName ¶ added in v1.10.0
func (pd *ProtectionDomain) ModifyStoragePoolName(ID, name string) (string, error)
ModifyStoragePoolName Modifies Storagepool Name
func (*ProtectionDomain) Refresh ¶ added in v1.11.0
func (pd *ProtectionDomain) Refresh() error
Refresh reads and stores current values of the pd
func (*ProtectionDomain) RemoveSDSIP ¶ added in v1.10.0
func (pd *ProtectionDomain) RemoveSDSIP(id, ip string) error
RemoveSDSIP removes IP from SDS
func (*ProtectionDomain) SetCapacityAlertThreshold ¶ added in v1.11.0
func (pd *ProtectionDomain) SetCapacityAlertThreshold(ID string, capacityAlertThreshold *types.CapacityAlertThresholdParam) error
SetCapacityAlertThreshold Sets high or critical capacity alert threshold
func (*ProtectionDomain) SetDefaultFGLMcacheSize ¶ added in v1.11.0
func (pd *ProtectionDomain) SetDefaultFGLMcacheSize(cacheSizeInMB int) error
SetDefaultFGLMcacheSize sets the default FGL Metadata for all SDSs under the Protection Domain
func (*ProtectionDomain) SetName ¶ added in v1.11.0
func (pd *ProtectionDomain) SetName(name string) error
SetName sets the name of the pd
func (*ProtectionDomain) SetProtectedMaintenanceModeIoPriorityPolicy ¶ added in v1.11.0
func (pd *ProtectionDomain) SetProtectedMaintenanceModeIoPriorityPolicy(ID string, protectedMaintenanceModeParam *types.ProtectedMaintenanceModeParam) error
SetProtectedMaintenanceModeIoPriorityPolicy sets protected maintenance mode IO priority policy
func (*ProtectionDomain) SetRMcacheWriteHandlingMode ¶ added in v1.11.0
func (pd *ProtectionDomain) SetRMcacheWriteHandlingMode(ID string, writeHandlingModeValue string) error
SetRMcacheWriteHandlingMode Sets RMcache write handling mode
func (*ProtectionDomain) SetRebalanceEnabled ¶ added in v1.11.0
func (pd *ProtectionDomain) SetRebalanceEnabled(ID string, rebalanceEnabledValue string) error
SetRebalanceEnabled sets rebalance enabled.
func (*ProtectionDomain) SetRebalanceIoPriorityPolicy ¶ added in v1.11.0
func (pd *ProtectionDomain) SetRebalanceIoPriorityPolicy(ID string, protectedMaintenanceModeParam *types.ProtectedMaintenanceModeParam) error
SetRebalanceIoPriorityPolicy Sets rebalance I/O priority policy
func (*ProtectionDomain) SetRebuildEnabled ¶ added in v1.11.0
func (pd *ProtectionDomain) SetRebuildEnabled(ID string, rebuildEnabledValue string) error
SetRebuildEnabled Sets Rebuild Enabled
func (*ProtectionDomain) SetRebuildRebalanceParallelismParam ¶ added in v1.11.0
func (pd *ProtectionDomain) SetRebuildRebalanceParallelismParam(ID string, limitValue string) error
SetRebuildRebalanceParallelismParam Sets rebuild/rebalance parallelism
func (*ProtectionDomain) SetReplicationJournalCapacity ¶ added in v1.11.0
func (pd *ProtectionDomain) SetReplicationJournalCapacity(ID string, replicationJournalCapacity string) error
SetReplicationJournalCapacity Sets replication journal capacity
func (*ProtectionDomain) SetRfcacheParams ¶ added in v1.11.0
func (pd *ProtectionDomain) SetRfcacheParams(params types.PDRfCacheParams) error
SetRfcacheParams sets the Read Flash Cache params of the pd
func (*ProtectionDomain) SetSDSIPRole ¶ added in v1.10.0
func (pd *ProtectionDomain) SetSDSIPRole(id, ip, role string) error
SetSDSIPRole sets IP and Role of SDS
func (*ProtectionDomain) SetSdsDrlMode ¶ added in v1.10.0
func (pd *ProtectionDomain) SetSdsDrlMode(id, drlMode string) error
SetSdsDrlMode sets sds DRL Mode (Volatile or NonVolatile)
func (*ProtectionDomain) SetSdsName ¶ added in v1.10.0
func (pd *ProtectionDomain) SetSdsName(id, name string) error
SetSdsName sets sds name
func (*ProtectionDomain) SetSdsNetworkLimits ¶ added in v1.11.0
func (pd *ProtectionDomain) SetSdsNetworkLimits(params types.SdsNetworkLimitParams) error
SetSdsNetworkLimits sets IOPS limits on all SDS under the pd
func (*ProtectionDomain) SetSdsPerformanceProfile ¶ added in v1.10.0
func (pd *ProtectionDomain) SetSdsPerformanceProfile(id, perfProf string) error
SetSdsPerformanceProfile sets the SDS Performance Profile
func (*ProtectionDomain) SetSdsPort ¶ added in v1.10.0
func (pd *ProtectionDomain) SetSdsPort(id string, port int) error
SetSdsPort sets sds port
func (*ProtectionDomain) SetSdsRfCache ¶ added in v1.10.0
func (pd *ProtectionDomain) SetSdsRfCache(id string, enable bool) error
SetSdsRfCache enables or disables Rf Cache
func (*ProtectionDomain) SetSdsRmCache ¶ added in v1.10.0
func (pd *ProtectionDomain) SetSdsRmCache(id string, enable bool) error
SetSdsRmCache enables or disables Read Ram Cache
func (*ProtectionDomain) SetSdsRmCacheSize ¶ added in v1.10.0
func (pd *ProtectionDomain) SetSdsRmCacheSize(id string, size int) error
SetSdsRmCacheSize sets size of Read Ram Cache in MB
func (*ProtectionDomain) SetSparePercentage ¶ added in v1.11.0
func (pd *ProtectionDomain) SetSparePercentage(ID string, sparePercentageValue string) error
SetSparePercentage Sets spare percentage
func (*ProtectionDomain) SetVTreeMigrationIOPriorityPolicy ¶ added in v1.11.0
func (pd *ProtectionDomain) SetVTreeMigrationIOPriorityPolicy(ID string, protectedMaintenanceModeParam *types.ProtectedMaintenanceModeParam) error
SetVTreeMigrationIOPriorityPolicy Sets V-Tree migration I/O priority policy
type ReplicationConsistencyGroup ¶ added in v1.10.0
type ReplicationConsistencyGroup struct { ReplicationConsistencyGroup *types.ReplicationConsistencyGroup // contains filtered or unexported fields }
ReplicationConsistencyGroup encpsulates a types.ReplicationConsistencyGroup and a client.
func NewReplicationConsistencyGroup ¶ added in v1.10.0
func NewReplicationConsistencyGroup(client *Client) *ReplicationConsistencyGroup
NewReplicationConsistencyGroup creates a new ReplicationConsistencyGroup.
func (*ReplicationConsistencyGroup) CreateReplicationConsistencyGroupSnapshot ¶ added in v1.10.0
func (rcg *ReplicationConsistencyGroup) CreateReplicationConsistencyGroupSnapshot(force bool) (*types.CreateReplicationConsistencyGroupSnapshotResp, error)
CreateReplicationConsistencyGroupSnapshot creates a snapshot of the ReplicationConsistencyGroup on the target array.
func (*ReplicationConsistencyGroup) ExecuteFailoverOnReplicationGroup ¶ added in v1.10.0
func (rcg *ReplicationConsistencyGroup) ExecuteFailoverOnReplicationGroup() error
ExecuteFailoverOnReplicationGroup sets the ReplicationconsistencyGroup into a failover state.
func (*ReplicationConsistencyGroup) ExecutePauseOnReplicationGroup ¶ added in v1.10.0
func (rcg *ReplicationConsistencyGroup) ExecutePauseOnReplicationGroup() error
ExecutePauseOnReplicationGroup pauses the replication of the ConsistencyGroup.
func (*ReplicationConsistencyGroup) ExecuteRestoreOnReplicationGroup ¶ added in v1.10.0
func (rcg *ReplicationConsistencyGroup) ExecuteRestoreOnReplicationGroup() error
ExecuteRestoreOnReplicationGroup restores the ReplicationConsistencyGroup from a failover/switchover state.
func (*ReplicationConsistencyGroup) ExecuteResumeOnReplicationGroup ¶ added in v1.10.0
func (rcg *ReplicationConsistencyGroup) ExecuteResumeOnReplicationGroup() error
ExecuteResumeOnReplicationGroup resumes the ConsistencyGroup when it is in a Paused state.
func (*ReplicationConsistencyGroup) ExecuteReverseOnReplicationGroup ¶ added in v1.10.0
func (rcg *ReplicationConsistencyGroup) ExecuteReverseOnReplicationGroup() error
ExecuteReverseOnReplicationGroup reverses the direction of replication from a failover/switchover state.
func (*ReplicationConsistencyGroup) ExecuteSwitchoverOnReplicationGroup ¶ added in v1.10.0
func (rcg *ReplicationConsistencyGroup) ExecuteSwitchoverOnReplicationGroup(force bool) error
ExecuteSwitchoverOnReplicationGroup sets the ReplicationconsistencyGroup into a switchover state.
func (*ReplicationConsistencyGroup) ExecuteSyncOnReplicationGroup ¶ added in v1.10.0
func (rcg *ReplicationConsistencyGroup) ExecuteSyncOnReplicationGroup() (*types.SynchronizationResponse, error)
ExecuteSyncOnReplicationGroup forces a synce on the ConsistencyGroup.
func (*ReplicationConsistencyGroup) FreezeReplicationConsistencyGroup ¶ added in v1.10.0
func (rcg *ReplicationConsistencyGroup) FreezeReplicationConsistencyGroup(id string) error
FreezeReplicationConsistencyGroup sets the ReplicationConsistencyGroup into a freeze state
func (*ReplicationConsistencyGroup) GetReplicationPairs ¶ added in v1.10.0
func (rcg *ReplicationConsistencyGroup) GetReplicationPairs() ([]*types.ReplicationPair, error)
GetReplicationPairs returns a list of replication pairs associated to the rcg.
func (*ReplicationConsistencyGroup) GetSyncStateOnReplicationGroup ¶ added in v1.10.0
func (rcg *ReplicationConsistencyGroup) GetSyncStateOnReplicationGroup(syncKey string) error
GetSyncStateOnReplicationGroup returns the sync status of the ReplicaitonConsistencyGroup.
func (*ReplicationConsistencyGroup) RemoveReplicationConsistencyGroup ¶ added in v1.10.0
func (rcg *ReplicationConsistencyGroup) RemoveReplicationConsistencyGroup(forceIgnoreConsistency bool) error
RemoveReplicationConsistencyGroup removes a replication consistency group At this point I don't know when forceIgnoreConsistency might be required.
type ReplicationPair ¶ added in v1.10.0
type ReplicationPair struct { ReplicaitonPair *types.ReplicationPair // contains filtered or unexported fields }
ReplicationPair encpsulates a types.ReplicationPair and a client.
func NewReplicationPair ¶ added in v1.10.0
func NewReplicationPair(client *Client) *ReplicationPair
NewReplicationPair creates a new ReplicationConsistencyGroup.
func (*ReplicationPair) GetReplicationPairStatistics ¶ added in v1.10.0
func (rp *ReplicationPair) GetReplicationPairStatistics() (*types.QueryReplicationPairStatistics, error)
GetReplicationPairStatistics returns the statistics of the desired ReplicaitonPair.
func (*ReplicationPair) RemoveReplicationPair ¶ added in v1.10.0
func (rp *ReplicationPair) RemoveReplicationPair(force bool) (*types.ReplicationPair, error)
RemoveReplicationPair removes the desired replication pair.
type Sdc ¶
Sdc defines struct for Sdc
func (*Sdc) FindVolumes ¶ added in v1.2.0
FindVolumes returns volumes
func (*Sdc) GetStatistics ¶
func (sdc *Sdc) GetStatistics() (*types.SdcStatistics, error)
GetStatistics returns a Sdc statistcs
type SdcMappedVolume ¶
SdcMappedVolume defines struct for 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 Sds ¶
Sds defines struct for Sds
func (*Sds) FindDevice ¶ added in v1.11.0
FindDevice returns a Device
type SetCompressionMethodParam ¶ added in v1.10.0
type SetCompressionMethodParam struct {
CompressionMethod string `json:"compressionMethod"`
}
SetCompressionMethodParam defines type for compression method for method SetCompressionMethod
type SetSnapshotSecurityParam ¶ added in v1.10.0
type SetSnapshotSecurityParam struct {
RetentionPeriodInMin string `json:"retentionPeriodInMin"`
}
SetSnapshotSecurityParam defines type for snapshot retention period in min parameter for method SetSnapshotSecurity
type SetVolumeAccessModeLimitParam ¶ added in v1.10.0
type SetVolumeAccessModeLimitParam struct {
AccessModeLimit string `json:"accessModeLimit"`
}
SetVolumeAccessModeLimitParam defines type for volume access mode parameter for method SetVolumeAccessModeLimit
type SetVolumeMappingAccessModeParam ¶ added in v1.10.0
type SetVolumeMappingAccessModeParam struct { AccessMode string `json:"accessMode"` SdcID string `json:"sdcId"` }
SetVolumeMappingAccessModeParam defines type for snapshot access mode of mapped sdc for method SetVolumeMappingAccessMode
type SetVolumeUseRmCacheParam ¶ added in v1.10.0
type SetVolumeUseRmCacheParam struct {
UseRmCache string `json:"useRmcache"`
}
SetVolumeUseRmCacheParam defines type for Volume RM cache use for method SetVolumeUseRmCache
type SnapshotPolicy ¶ added in v1.10.0
type SnapshotPolicy struct { SnapshotPolicy *types.SnapshotPolicy // contains filtered or unexported fields }
SnapshotPolicy defines struct for SnapshotPolicy
func NewSnapshotPolicy ¶ added in v1.10.0
func NewSnapshotPolicy(client *Client) *SnapshotPolicy
NewSnapshotPolicy returns new SnapshotPolicy
type StoragePool ¶
type StoragePool struct { StoragePool *types.StoragePool // contains filtered or unexported fields }
StoragePool struct defines struct for StoragePool
func NewStoragePool ¶
func NewStoragePool(client *Client) *StoragePool
NewStoragePool returns a new StoragePool
func NewStoragePoolEx ¶
func NewStoragePoolEx(client *Client, pool *types.StoragePool) *StoragePool
NewStoragePoolEx returns a new StoragePoolEx
func (*StoragePool) AttachDevice ¶
func (sp *StoragePool) AttachDevice(deviceParam *types.DeviceParam) (string, error)
AttachDevice attaches a device
func (*StoragePool) CreateVolume ¶
func (sp *StoragePool) CreateVolume( volume *types.VolumeParam) (*types.VolumeResp, error)
CreateVolume creates a volume
func (*StoragePool) FindDevice ¶
func (sp *StoragePool) FindDevice( field, value string) (*types.Device, error)
FindDevice returns a Device
func (*StoragePool) FindVolumeID ¶
func (sp *StoragePool) FindVolumeID(volumename string) (string, error)
FindVolumeID retruns a volume ID based on name
func (*StoragePool) GetDevice ¶
func (sp *StoragePool) GetDevice() ([]types.Device, error)
GetDevice returns a device based on Storage Pool ID
func (*StoragePool) GetSDSStoragePool ¶ added in v1.10.0
func (sp *StoragePool) GetSDSStoragePool() ([]types.Sds, error)
GetSDSStoragePool return SDS instances associated with storage pool
func (*StoragePool) GetStatistics ¶
func (sp *StoragePool) GetStatistics() (*types.Statistics, error)
GetStatistics returns statistics
func (*StoragePool) GetVolume ¶
func (sp *StoragePool) GetVolume( volumehref, volumeid, ancestorvolumeid, volumename string, getSnapshots bool) ([]*types.Volume, error)
GetVolume returns a volume
func (*StoragePool) ModifyRMCache ¶ added in v1.10.0
func (sp *StoragePool) ModifyRMCache(useRmcache string) error
ModifyRMCache Sets Read RAM Cache
func (*StoragePool) RemoveDevice ¶ added in v1.11.0
func (sp *StoragePool) RemoveDevice(id string) error
RemoveDevice removes device from storage pool
func (*StoragePool) SetDeviceCapacityLimit ¶ added in v1.11.0
func (sp *StoragePool) SetDeviceCapacityLimit(id, capacityLimitInGB string) error
SetDeviceCapacityLimit modifies device capacity limit
func (*StoragePool) SetDeviceExternalAccelerationType ¶ added in v1.11.0
func (sp *StoragePool) SetDeviceExternalAccelerationType(id, externalAccelerationType string) error
SetDeviceExternalAccelerationType modifies device external acceleration type
func (*StoragePool) SetDeviceMediaType ¶ added in v1.11.0
func (sp *StoragePool) SetDeviceMediaType(id, mediaType string) error
SetDeviceMediaType modifies device media type
func (*StoragePool) SetDeviceName ¶ added in v1.11.0
func (sp *StoragePool) SetDeviceName(id, name string) error
SetDeviceName modifies device name
func (*StoragePool) UpdateDeviceOriginalPathways ¶ added in v1.11.0
func (sp *StoragePool) UpdateDeviceOriginalPathways(id string) error
UpdateDeviceOriginalPathways modifies device path if changed during server restart
type System ¶
System defines struct for System
func (*System) ApproveSdcByGUID ¶ added in v1.10.0
func (s *System) ApproveSdcByGUID(sdcGUID string) (*types.ApproveSdcByGUIDResponse, error)
ApproveSdcByGUID approves the Sdc When the Powerflex Array is operating in Guid RestrictedSdcMode.
func (*System) ChangeSdcName ¶ added in v1.10.0
ChangeSdcName returns a Sdc after changing its name https://developer.dell.com/apis/4008/versions/4.0/PowerFlex_REST_API.json/paths/~1api~1instances~1Sdc::%7Bid%7D~1action~1setSdcName/post
func (*System) CreateFileSystem ¶ added in v1.11.0
CreateFileSystem creates a file system
func (*System) CreateNAS ¶ added in v1.11.0
func (s *System) CreateNAS(name string, protectionDomainID string) (*types.CreateNASResponse, error)
CreateNAS creates a NAS server
func (*System) CreateProtectionDomain ¶
CreateProtectionDomain creates a ProtectionDomain
func (*System) CreateSnapshotConsistencyGroup ¶
func (s *System) CreateSnapshotConsistencyGroup( snapshotVolumesParam *types.SnapshotVolumesParam) (*types.SnapshotVolumesResp, error)
CreateSnapshotConsistencyGroup creates a snapshot consistency group
func (*System) DeleteFileSystem ¶ added in v1.11.0
DeleteFileSystem deletes a file system
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)
FindProtectionDomain returns a ProtectionDomain
func (*System) FindProtectionDomainByID ¶ added in v1.11.0
func (s *System) FindProtectionDomainByID(id string) (*types.ProtectionDomain, error)
FindProtectionDomainByID returns the ProtectionDomain having a particular ID
func (*System) FindProtectionDomainByName ¶ added in v1.11.0
func (s *System) FindProtectionDomainByName(name string) (*types.ProtectionDomain, error)
FindProtectionDomainByName returns the ProtectionDomain having a particular name
func (*System) GetAllDevice ¶ added in v1.11.0
GetAllDevice returns all device in the system
func (*System) GetAllFileSystems ¶ added in v1.11.0
func (s *System) GetAllFileSystems() ([]types.FileSystem, error)
GetAllFileSystems returns a file system
func (*System) GetAllStoragePools ¶ added in v1.10.0
func (sys *System) GetAllStoragePools() ([]types.StoragePool, error)
GetAllStoragePools returns all Storage pools on the system
func (*System) GetDeviceByField ¶ added in v1.11.0
GetDeviceByField returns a Device list filter by the field
func (*System) GetFileInterface ¶ added in v1.11.0
func (s *System) GetFileInterface(id string) (*types.FileInterface, error)
GetFileInterface gets a FileInterface by id
func (*System) GetFileSystemByIDName ¶ added in v1.11.0
GetFileSystemByIDName returns a file system by Name or ID
func (*System) GetNASByIDName ¶ added in v1.11.0
GetNASByIDName gets a NAS server by name or ID
func (*System) GetProtectionDomain ¶
func (s *System) GetProtectionDomain( pdhref string) ([]*types.ProtectionDomain, error)
GetProtectionDomain returns a ProtectionDomain
func (*System) GetProtectionDomainEx ¶ added in v1.11.0
func (s *System) GetProtectionDomainEx(id string) (*ProtectionDomain, error)
GetProtectionDomainEx fetches a ProtectionDomain by ID with embedded client
func (*System) GetScsiInitiator ¶
func (s *System) GetScsiInitiator() ([]types.ScsiInitiator, error)
GetScsiInitiator returns a ScsiInitiator
func (*System) GetSdcByID ¶ added in v1.10.0
GetSdcByID returns a Sdc searched by id
func (*System) GetSdsByID ¶ added in v1.10.0
GetSdsByID returns a Sds by ID
func (*System) GetStatistics ¶
func (s *System) GetStatistics() (*types.Statistics, error)
GetStatistics returns system statistics
func (*System) GetStoragePoolByID ¶ added in v1.10.0
func (sys *System) GetStoragePoolByID(id string) (*types.StoragePool, error)
GetStoragePoolByID returns a Storagepool by ID
type Volume ¶
Volume defines struct for Volume
func (*Volume) GetVolumeStatistics ¶ added in v1.2.0
func (v *Volume) GetVolumeStatistics() (*types.VolumeStatistics, error)
GetVolumeStatistics returns a volume's statistics
func (*Volume) LockAutoSnapshot ¶ added in v1.10.0
LockAutoSnapshot locks volume's auto snapshot in snapshotpolicy
func (*Volume) MapVolumeSdc ¶
func (v *Volume) MapVolumeSdc( mapVolumeSdcParam *types.MapVolumeSdcParam) error
MapVolumeSdc maps a volume to Sdc
func (*Volume) RemoveVolume ¶
RemoveVolume removes a volume
func (*Volume) SetCompressionMethod ¶ added in v1.10.0
SetCompressionMethod set the volume compression method.
func (*Volume) SetMappedSdcLimits ¶
func (v *Volume) SetMappedSdcLimits( setMappedSdcLimitsParam *types.SetMappedSdcLimitsParam) error
SetMappedSdcLimits sets Sdc mapped limits
func (*Volume) SetSnapshotSecurity ¶ added in v1.10.0
SetSnapshotSecurity set retention period in min on snapshot
func (*Volume) SetVolumeAccessModeLimit ¶ added in v1.10.0
SetVolumeAccessModeLimit sets access mode for volume/snapshot
func (*Volume) SetVolumeMappingAccessMode ¶ added in v1.10.0
SetVolumeMappingAccessMode set access mode of mapped sdc on snapshot
func (*Volume) SetVolumeName ¶ added in v1.6.0
SetVolumeName sets a volume's name
func (*Volume) SetVolumeSize ¶ added in v1.2.0
SetVolumeSize sets a volume's size
func (*Volume) SetVolumeUseRmCache ¶ added in v1.10.0
SetVolumeUseRmCache set volume rm cahce use
func (*Volume) UnlockAutoSnapshot ¶ added in v1.10.0
UnlockAutoSnapshot unlocks volume's auto snapshot in snapshotpolicy
func (*Volume) UnmapVolumeSdc ¶
func (v *Volume) UnmapVolumeSdc( unmapVolumeSdcParam *types.UnmapVolumeSdcParam) error
UnmapVolumeSdc unmaps a volume from Sdc
func (*Volume) UnmarkForReplication ¶ added in v1.10.0
UnmarkForReplication Depricated Message (3.6)