Documentation ¶
Index ¶
- Constants
- Variables
- func CheckPfmpVersion(client *Client, version string) (int, error)
- func CompareVersion(versionA, versionB string) (int, error)
- 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 GetPfmpStatus(client Client) (*types.LcmStatus, error)
- func GetSdcLocalGUID() (string, error)
- func ParseJSONError(r *http.Response) error
- func TimeSpent(functionName string, startTime time.Time)
- type AutoSnapshotParam
- type Client
- func (c *Client) AddPeerMdm(param *types.AddPeerMdm) (*types.PeerMDM, error)
- 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) CreateSSOUser(userParam *types.SSOUserCreateParam) (*types.SSOUserDetails, error)
- func (c *Client) CreateVolume(volume *types.VolumeParam, storagePoolName, protectionDomain string) (*types.VolumeResp, error)
- func (c *Client) DeleteNFSExport(id string) error
- func (c *Client) DeleteSSOUser(userID 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) GetConfigConnect() *ConfigConnect
- func (c *Client) GetInstance(systemhref string) ([]*types.System, error)
- func (c *Client) GetMaxVol() (MaxVolumeSize string, err 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) GetPeerMDM(id string) (*types.PeerMDM, 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) GetReplicationPair(id string) (*types.ReplicationPair, error)
- func (c *Client) GetSSOUser(userID string) (*types.SSOUserDetails, error)
- func (c *Client) GetSSOUserByFilters(key string, value string) (*types.SSOUserList, error)
- func (c *Client) GetSnapshotPolicy(spname, spid string) ([]*types.SnapshotPolicy, error)
- func (c *Client) GetStoragePool(storagepoolhref string) ([]*types.StoragePool, error)
- func (c *Client) GetStoragePoolVolumes(id string) ([]*types.Volume, error)
- func (c *Client) GetSystemLimits() (systemLimits *types.QuerySystemLimitsResponse, err error)
- func (c *Client) GetSystems() ([]*types.System, error)
- func (c *Client) GetToken() string
- func (c *Client) GetVTreeByID(id string) (*types.VTreeDetails, error)
- func (c *Client) GetVTreeByVolumeID(id string) (*types.VTreeDetails, error)
- func (c *Client) GetVTreeInstances(ids []string) ([]types.VTreeDetails, error)
- func (c *Client) GetVTrees() ([]types.VTreeDetails, error)
- 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) ModifyPeerMdmIP(id string, ips []string) error
- func (c *Client) ModifyPeerMdmName(id string, name *types.ModifyPeerMDMNameParam) error
- func (c *Client) ModifyPeerMdmPerformanceParameters(id string, param *types.ModifyPeerMdmPerformanceParametersParam) error
- func (c *Client) ModifyPeerMdmPort(id string, port *types.ModifyPeerMDMPortParam) error
- func (c *Client) ModifySSOUser(userID string, userParam *types.SSOUserModifyParam) (*types.SSOUserDetails, error)
- func (c *Client) PausePairInitialCopy(id string) (*types.ReplicationPair, error)
- func (c *Client) RemovePeerMdm(id string) error
- func (c *Client) RenameSdc(sdcID, name string) error
- func (c *Client) ResetSSOUserPassword(userID string, userParam *types.SSOUserModifyParam) error
- func (c *Client) ResumePairInitialCopy(id string) (*types.ReplicationPair, error)
- func (c *Client) SetToken(token string)
- type ClientPersistent
- type Cluster
- type ConfigConnect
- type ConfiguredCluster
- type CookieConfig
- type Device
- type FileSystem
- type GatewayClient
- func (gc *GatewayClient) AbortOperation() (*types.GatewayResponse, error)
- func (gc *GatewayClient) ApproveUnsignedFile(id string) error
- func (gc *GatewayClient) BeginInstallation(jsonStr, mdmUsername, mdmPassword, liaPassword string, ...) (*types.GatewayResponse, error)
- func (gc *GatewayClient) CheckForCompletionQueueCommands(currentPhase string) (*types.GatewayResponse, error)
- func (gc *GatewayClient) ClearQueueCommand() (*types.GatewayResponse, error)
- func (gc *GatewayClient) DeleteFirmwareRepository(id string) error
- func (gc *GatewayClient) DeletePackage(packageName string) (*types.GatewayResponse, error)
- func (gc *GatewayClient) DeleteService(serviceID, serversInInventory, serversManagedState string) (*types.ServiceResponse, error)
- func (gc *GatewayClient) DeployService(...) (*types.ServiceResponse, error)
- func (gc *GatewayClient) GetAllNodePools() (*types.NodePoolDetailsFilter, error)
- func (gc *GatewayClient) GetAllNodes() ([]types.NodeDetails, error)
- func (gc *GatewayClient) GetAllServiceDetails() ([]types.ServiceResponse, error)
- func (gc *GatewayClient) GetAllTemplates() ([]types.TemplateDetails, error)
- func (gc *GatewayClient) GetAllUploadComplianceDetails() (*[]types.UploadComplianceTopologyDetails, error)
- func (gc *GatewayClient) GetClusterDetails(mdmTopologyParam []byte, requireJSONOutput bool) (*types.GatewayResponse, error)
- func (gc *GatewayClient) GetFirmwareRepositoryDetailsUsingName(name string) (*types.FirmwareRepositoryDetails, error)
- func (gc *GatewayClient) GetInQueueCommand() ([]types.MDMQueueCommandDetails, error)
- func (gc *GatewayClient) GetNodeByFilters(key string, value string) ([]types.NodeDetails, error)
- func (gc *GatewayClient) GetNodeByID(id string) (*types.NodeDetails, error)
- func (gc *GatewayClient) GetNodePoolByID(id int) (*types.NodePoolDetails, error)
- func (gc *GatewayClient) GetNodePoolByName(name string) (*types.NodePoolDetails, error)
- func (gc *GatewayClient) GetPackageDetails() ([]*types.PackageDetails, error)
- func (gc *GatewayClient) GetServiceComplianceDetails(deploymentID string) ([]types.ComplianceReport, error)
- func (gc *GatewayClient) GetServiceComplianceDetailsByFilter(deploymentID, filter, value string) ([]types.ComplianceReport, error)
- func (gc *GatewayClient) GetServiceDetailsByFilter(filter, value string) ([]types.ServiceResponse, error)
- func (gc *GatewayClient) GetServiceDetailsByID(deploymentID string, newToken bool) (*types.ServiceResponse, error)
- func (gc *GatewayClient) GetTemplateByFilters(key string, value string) ([]types.TemplateDetails, error)
- func (gc *GatewayClient) GetTemplateByID(id string) (*types.TemplateDetails, error)
- func (gc *GatewayClient) GetUploadComplianceDetails(id string, newToken bool) (*types.UploadComplianceTopologyDetails, error)
- func (gc *GatewayClient) GetUploadComplianceDetailsUsingFilter(name string) (*types.UploadComplianceTopologyDetails, error)
- func (gc *GatewayClient) GetUploadComplianceDetailsUsingID(id string) (*types.FirmwareRepositoryDetails, error)
- func (gc *GatewayClient) GetVersion() (string, error)
- func (gc *GatewayClient) MoveToIdlePhase() (*types.GatewayResponse, error)
- func (gc *GatewayClient) MoveToNextPhase() (*types.GatewayResponse, error)
- func (gc *GatewayClient) NewTokenGeneration() (string, error)
- func (gc *GatewayClient) ParseCSV(filePath string) (*types.GatewayResponse, error)
- func (gc *GatewayClient) RenewInstallationCookie(retryCount int) error
- func (gc *GatewayClient) RetryPhase() (*types.GatewayResponse, error)
- func (gc *GatewayClient) TestConnection(uploadComplianceParam *types.UploadComplianceParam) error
- func (gc *GatewayClient) UninstallCluster(jsonStr, mdmUsername, mdmPassword, liaPassword string, ...) (*types.GatewayResponse, error)
- func (gc *GatewayClient) UpdateService(deploymentID, deploymentName, deploymentDesc, nodes, nodename string) (*types.ServiceResponse, error)
- func (gc *GatewayClient) UploadCompliance(uploadComplianceParam *types.UploadComplianceParam) (*types.UploadComplianceTopologyDetails, error)
- func (gc *GatewayClient) UploadPackages(filePaths []string) (*types.GatewayResponse, error)
- func (gc *GatewayClient) ValidateMDMDetails(mdmTopologyParam []byte) (*types.GatewayResponse, error)
- type Host
- type NvmeHost
- type PeerMDM
- type ProtectionDomain
- func (pd *ProtectionDomain) Activate(forceActivate bool) error
- func (pd *ProtectionDomain) AddSdSIP(id, ip, role string) error
- func (pd *ProtectionDomain) CreateFaultSet(fs *types.FaultSetParam) (string, error)
- func (pd *ProtectionDomain) CreateSds(name string, ipList []string) (string, error)
- func (pd *ProtectionDomain) CreateSdsWithParams(sds *types.Sds) (string, error)
- func (pd *ProtectionDomain) CreateSdt(param *types.SdtParam) (*types.SdtResp, error)
- func (pd *ProtectionDomain) CreateStoragePool(sp *types.StoragePoolParam) (string, error)
- func (pd *ProtectionDomain) Delete() error
- func (pd *ProtectionDomain) DeleteFaultSet(id string) 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) ModifyFaultSetName(id, name string) error
- func (pd *ProtectionDomain) ModifyFaultSetPerfProfile(id, perfProfile string) 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() (*types.CreateReplicationConsistencyGroupSnapshotResp, error)
- func (rcg *ReplicationConsistencyGroup) ExecuteActivateOnReplicationGroup() error
- func (rcg *ReplicationConsistencyGroup) ExecuteConsistentOnReplicationGroup() error
- func (rcg *ReplicationConsistencyGroup) ExecuteFailoverOnReplicationGroup() error
- func (rcg *ReplicationConsistencyGroup) ExecuteInconsistentOnReplicationGroup() 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(_ bool) error
- func (rcg *ReplicationConsistencyGroup) ExecuteSyncOnReplicationGroup() (*types.SynchronizationResponse, error)
- func (rcg *ReplicationConsistencyGroup) ExecuteTerminateOnReplicationGroup() 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
- func (rcg *ReplicationConsistencyGroup) SetNewNameOnReplicationGroup(param types.SetNewNameOnReplicationGroup) error
- func (rcg *ReplicationConsistencyGroup) SetRPOOnReplicationGroup(param types.SetRPOReplicationConsistencyGroup) error
- func (rcg *ReplicationConsistencyGroup) SetTargetVolumeAccessModeOnReplicationGroup(param types.SetTargetVolumeAccessModeOnReplicationGroup) error
- func (rcg *ReplicationConsistencyGroup) UnfreezeReplicationConsistencyGroup() error
- type ReplicationPair
- type Sdc
- type SdcMappedVolume
- type Sds
- type Sdt
- 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) AddSdtTargetIP(id, ip, role string) error
- func (s *System) AddStandByMdm(mdmParam *types.StandByMdm) (string, error)
- func (s *System) ApproveSdc(approveSdcParam *types.ApproveSdcParam) (*types.ApproveSdcByGUIDResponse, error)
- func (s *System) ApproveSdcByGUID(sdcGUID string) (*types.ApproveSdcByGUIDResponse, error)
- func (s *System) AssignVolumeToSnapshotPolicy(assignVoltoSnap *types.AssignVolumeToSnapshotPolicyParam, id string) error
- func (s *System) ChangeMdmOwnerShip(id string) error
- func (s *System) ChangeNvmeHostMaxNumPaths(id string, maxNumPaths int) error
- func (s *System) ChangeNvmeHostMaxNumSysPorts(id string, maxNumSysPorts int) error
- func (s *System) ChangeNvmeHostName(id, name string) error
- func (s *System) ChangeSdcName(idOfSdc, name string) (*Sdc, error)
- func (s *System) ChangeSdcPerfProfile(idOfSdc, perfProfile string) (*Sdc, error)
- func (s *System) CreateFileSystem(fs *types.FsCreate) (*types.FileSystemResp, error)
- func (s *System) CreateFileSystemSnapshot(createSnapParam *types.CreateFileSystemSnapshotParam, fsID string) (*types.CreateFileSystemSnapshotResponse, error)
- func (s *System) CreateNAS(name string, protectionDomainID string) (*types.CreateNASResponse, error)
- func (s *System) CreateNvmeHost(nvmeHostParam types.NvmeHostParam) (*types.NvmeHostResp, error)
- func (s *System) CreateOSRepository(createOSRepository *types.OSRepository) (*types.OSRepository, error)
- func (s *System) CreateProtectionDomain(name string) (string, error)
- func (s *System) CreateSnapshotConsistencyGroup(snapshotVolumesParam *types.SnapshotVolumesParam) (*types.SnapshotVolumesResp, error)
- func (s *System) CreateSnapshotPolicy(snapPolicy *types.SnapshotPolicyCreateParam) (string, error)
- func (s *System) CreateTreeQuota(createParams *types.TreeQuotaCreate) (resp *types.TreeQuotaCreateResponse, err error)
- func (s *System) CreateUser(userParam *types.UserParam) (*types.UserResp, error)
- func (s *System) DeleteFileSystem(name string) error
- func (s *System) DeleteNAS(id string) error
- func (s *System) DeleteNvmeHost(id string) error
- func (s *System) DeleteProtectionDomain(name string) error
- func (s *System) DeleteSdc(id string) error
- func (s *System) DeleteSdt(id string) error
- func (s *System) DeleteTreeQuota(id string) error
- func (s *System) EnterSdtMaintenanceMode(id string) error
- func (s *System) ExitSdtMaintenanceMode(id 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 (s *System) FindSds(field, value string) (*types.Sds, error)
- func (s *System) GetAllDevice() ([]types.Device, error)
- func (s *System) GetAllFaultSets() ([]types.FaultSet, error)
- func (s *System) GetAllFileSystems() ([]types.FileSystem, error)
- func (s *System) GetAllNvmeHosts() ([]types.NvmeHost, error)
- func (s *System) GetAllOSRepositories() ([]types.OSRepository, error)
- func (s *System) GetAllSDSByFaultSetID(faultsetid string) ([]types.Sds, error)
- func (s *System) GetAllSds() ([]types.Sds, error)
- func (s *System) GetAllSdts() ([]types.Sdt, error)
- func (s *System) GetAllStoragePools() ([]types.StoragePool, error)
- func (s *System) GetCompatibilityManagement() (*types.CompatibilityManagement, error)
- func (s *System) GetDevice(id string) (*types.Device, error)
- func (s *System) GetDeviceByField(field, value string) ([]types.Device, error)
- func (s *System) GetFaultSetByID(id string) (*types.FaultSet, error)
- func (s *System) GetFaultSetByName(name string) (*types.FaultSet, error)
- func (s *System) GetFileInterface(id string) (*types.FileInterface, error)
- func (s *System) GetFileSystemByIDName(id string, name string) (*types.FileSystem, error)
- func (s *System) GetFsSnapshotsByVolumeID(fsID string) ([]types.FileSystem, error)
- func (s *System) GetHostNvmeControllers(host types.NvmeHost) ([]types.NvmeController, error)
- func (s *System) GetMDMClusterDetails() (*types.MdmCluster, error)
- func (s *System) GetNASByIDName(id string, name string) (*types.NAS, error)
- func (s *System) GetNvmeHostByID(id string) (*types.NvmeHost, error)
- func (s *System) GetOSRepositoryByID(id string) (*types.OSRepository, 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 (s *System) GetSdcIDByIP(ip string) (string, error)
- func (s *System) GetSdsByID(id string) (types.Sds, error)
- func (s *System) GetSdtByID(id string) (*types.Sdt, error)
- func (s *System) GetSourceVolume(id string) ([]*types.Volume, error)
- func (s *System) GetStatistics() (*types.Statistics, error)
- func (s *System) GetStoragePoolByID(id string) (*types.StoragePool, error)
- func (s *System) GetTreeQuota() (treeQuotaList []types.TreeQuota, err error)
- func (s *System) GetTreeQuotaByFSID(id string) (*types.TreeQuota, error)
- func (s *System) GetTreeQuotaByID(id string) (treeQuota *types.TreeQuota, err error)
- func (s *System) GetUser() ([]types.User, error)
- func (s *System) GetUserByIDName(userID string, username string) (*types.User, error)
- func (s *System) ModifyFileSystem(modifyFsParam *types.FSModify, id string) error
- func (s *System) ModifyPerformanceProfileMdmCluster(perfProfile string) error
- func (s *System) ModifySdtIPRole(id, ip, role string) error
- func (s *System) ModifySnapshotPolicy(modifysnapPolicy *types.SnapshotPolicyModifyParam, id string) error
- func (s *System) ModifyTreeQuota(ModifyParams *types.TreeQuotaModify, id string) (err error)
- func (s *System) PauseSnapshotPolicy(id string) error
- func (s *System) PingNAS(id string, ipaddress string) error
- func (s *System) RemoveOSRepository(id string) error
- func (s *System) RemoveSdtTargetIP(id, ip string) error
- func (s *System) RemoveSnapshotPolicy(id string) error
- func (s *System) RemoveStandByMdm(id string) error
- func (s *System) RemoveUser(userID string) error
- func (s *System) RenameMdm(renameMdm *types.RenameMdm) error
- func (s *System) RenameSdt(id, name string) error
- func (s *System) RenameSnapshotPolicy(id, name string) error
- func (s *System) RestoreFileSystemFromSnapshot(restoreSnapParam *types.RestoreFsSnapParam, fsID string) (*types.RestoreFsSnapResponse, error)
- func (s *System) ResumeSnapshotPolicy(id string) error
- func (s *System) SetApprovedIps(sdcID string, sdcApprovedIps []string) error
- func (s *System) SetCompatibilityManagement(compatibilityManagement *types.CompatibilityManagementPost) (*types.CompatibilityManagement, error)
- func (s *System) SetRestrictedMode(mode string) error
- func (s *System) SetSdtDiscoveryPort(id string, port int) error
- func (s *System) SetSdtNvmePort(id string, port int) error
- func (s *System) SetSdtStoragePort(id string, port int) error
- func (s *System) SetUserRole(userRole *types.UserRoleParam, userID string) error
- func (s *System) SwitchClusterMode(switchClusterMode *types.SwitchClusterMode) error
- func (s *System) UnassignVolumeFromSnapshotPolicy(UnassignVolFromSnap *types.AssignVolumeToSnapshotPolicyParam, id string) 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 CheckPfmpVersion ¶ added in v1.17.1
CheckPfmpVersion checks if the PFMP version is greater than the given version Returns -1 if PFMP version < the given version, Returns 1 if PFMP version > the given version, Returns 0 if PFMP version == the given version.
func CompareVersion ¶ added in v1.17.1
CompareVersion compares two version strings. Returns -1 if versionA < versionB, Returns 1 if versionA > versionB, Returns 0 if versionA == versionB.
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
func GetPfmpStatus ¶ added in v1.17.1
GetPfmpStatus gets the PFMP status
func ParseJSONError ¶ added in v1.15.0
ParseJSONError parses the JSON in response into an error object
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) AddPeerMdm ¶ added in v1.17.0
AddPeerMdm Adds a Peer MDM
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) CreateSSOUser ¶ added in v1.14.0
func (c *Client) CreateSSOUser(userParam *types.SSOUserCreateParam) (*types.SSOUserDetails, error)
CreateSSOUser creates a new SSO user with the given parameters.
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) DeleteSSOUser ¶ added in v1.14.0
DeleteSSOUser deletes an SSO user by their ID.
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) GetConfigConnect ¶ added in v1.12.0
func (c *Client) GetConfigConnect() *ConfigConnect
GetConfigConnect returns Config of client
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) GetPeerMDM ¶ added in v1.17.0
GetPeerMDM returns a specific peer MDM
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) GetReplicationPair ¶ added in v1.17.0
func (c *Client) GetReplicationPair(id string) (*types.ReplicationPair, error)
GetReplicationPair returns a specific replication pair on the system.
func (*Client) GetSSOUser ¶ added in v1.14.0
func (c *Client) GetSSOUser(userID string) (*types.SSOUserDetails, error)
GetSSOUser retrieves the details of an SSO user by their ID.
func (*Client) GetSSOUserByFilters ¶ added in v1.14.0
GetSSOUserByFilters retrieves the details of an SSO user by filter.
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) GetStoragePoolVolumes ¶ added in v1.15.0
GetStoragePoolVolumes returns list of volumes connected to storage pool Storagepool by ID
func (*Client) GetSystemLimits ¶ added in v1.13.0
func (c *Client) GetSystemLimits() (systemLimits *types.QuerySystemLimitsResponse, err error)
GetSystemLimits gets list of sytem limits
func (*Client) GetSystems ¶ added in v1.3.0
GetSystems returns systems
func (*Client) GetVTreeByID ¶ added in v1.12.0
func (c *Client) GetVTreeByID(id string) (*types.VTreeDetails, error)
GetVTreeByID returns the VTree details for the given ID
func (*Client) GetVTreeByVolumeID ¶ added in v1.12.0
func (c *Client) GetVTreeByVolumeID(id string) (*types.VTreeDetails, error)
GetVTreeByVolumeID returns VTree details based on Volume ID
func (*Client) GetVTreeInstances ¶ added in v1.12.0
func (c *Client) GetVTreeInstances(ids []string) ([]types.VTreeDetails, error)
GetVTreeInstances returns the VTree details for the given IDs
func (*Client) GetVTrees ¶ added in v1.12.0
func (c *Client) GetVTrees() ([]types.VTreeDetails, error)
GetVTrees returns vtrees present in the cluster
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
func (*Client) ModifyPeerMdmIP ¶ added in v1.17.0
ModifyPeerMdmIP updates a Peer MDM Ips
func (*Client) ModifyPeerMdmName ¶ added in v1.17.0
func (c *Client) ModifyPeerMdmName(id string, name *types.ModifyPeerMDMNameParam) error
ModifyPeerMdmName updates a Peer MDM Name
func (*Client) ModifyPeerMdmPerformanceParameters ¶ added in v1.17.0
func (c *Client) ModifyPeerMdmPerformanceParameters(id string, param *types.ModifyPeerMdmPerformanceParametersParam) error
ModifyPeerMdmPerformanceParameters updates a Peer MDM Performance Parameters
func (*Client) ModifyPeerMdmPort ¶ added in v1.17.0
func (c *Client) ModifyPeerMdmPort(id string, port *types.ModifyPeerMDMPortParam) error
ModifyPeerMdmPort updates a Peer MDM Port
func (*Client) ModifySSOUser ¶ added in v1.14.0
func (c *Client) ModifySSOUser(userID string, userParam *types.SSOUserModifyParam) (*types.SSOUserDetails, error)
ModifySSOUser modifies the details of an SSO user by their ID.
func (*Client) PausePairInitialCopy ¶ added in v1.17.0
func (c *Client) PausePairInitialCopy(id string) (*types.ReplicationPair, error)
PausePairInitialCopy pauses the initial copy of the replication pair.
func (*Client) RemovePeerMdm ¶ added in v1.17.0
RemovePeerMdm removes a Peer MDM
func (*Client) ResetSSOUserPassword ¶ added in v1.14.0
func (c *Client) ResetSSOUserPassword(userID string, userParam *types.SSOUserModifyParam) error
ResetSSOUserPassword resets the password of an SSO user by their ID.
func (*Client) ResumePairInitialCopy ¶ added in v1.17.0
func (c *Client) ResumePairInitialCopy(id string) (*types.ReplicationPair, error)
ResumePairInitialCopy resumes the initial copy of the replication pair.
type ClientPersistent ¶
type ClientPersistent struct {
// contains filtered or unexported fields
}
ClientPersistent defines struct for ClientPersistent
type ConfigConnect ¶
type ConfigConnect struct { Endpoint string Version string Username string Password string Insecure bool }
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 CookieConfig ¶ added in v1.14.0
type CookieConfig struct {
Hosts []Host `yaml:"hosts"`
}
CookieConfig represents the YAML structure
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) ApproveUnsignedFile ¶ added in v1.15.0
func (gc *GatewayClient) ApproveUnsignedFile(id string) error
ApproveUnsignedFile is used for approving the unsigned file to upload
func (*GatewayClient) BeginInstallation ¶ added in v1.11.0
func (gc *GatewayClient) BeginInstallation(jsonStr, mdmUsername, mdmPassword, liaPassword string, allowNonSecureCommunicationWithMdm, allowNonSecureCommunicationWithLia, disableNonMgmtComponentsAuth, 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) DeleteFirmwareRepository ¶ added in v1.15.0
func (gc *GatewayClient) DeleteFirmwareRepository(id string) error
DeleteFirmwareRepository deletes the particular firmware repository
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) DeleteService ¶ added in v1.14.0
func (gc *GatewayClient) DeleteService(serviceID, serversInInventory, serversManagedState string) (*types.ServiceResponse, error)
DeleteService deletes a service by its ID, along with servers in inventory and managed state.
func (*GatewayClient) DeployService ¶ added in v1.14.0
func (gc *GatewayClient) DeployService(deploymentName, deploymentDesc, serviceTemplateID, firmwareRepositoryID, nodes string) (*types.ServiceResponse, error)
DeployService used to deploy service
func (*GatewayClient) GetAllNodePools ¶ added in v1.14.0
func (gc *GatewayClient) GetAllNodePools() (*types.NodePoolDetailsFilter, error)
GetAllNodePools gets all the nodepool details
func (*GatewayClient) GetAllNodes ¶ added in v1.14.0
func (gc *GatewayClient) GetAllNodes() ([]types.NodeDetails, error)
GetAllNodes gets all the node details
func (*GatewayClient) GetAllServiceDetails ¶ added in v1.14.0
func (gc *GatewayClient) GetAllServiceDetails() ([]types.ServiceResponse, error)
GetAllServiceDetails retrieves all service details from the GatewayClient.
func (*GatewayClient) GetAllTemplates ¶ added in v1.14.0
func (gc *GatewayClient) GetAllTemplates() ([]types.TemplateDetails, error)
GetAllTemplates gets all the Template details
func (*GatewayClient) GetAllUploadComplianceDetails ¶ added in v1.15.0
func (gc *GatewayClient) GetAllUploadComplianceDetails() (*[]types.UploadComplianceTopologyDetails, error)
GetAllUploadComplianceDetails returns all the firmware repository
func (*GatewayClient) GetClusterDetails ¶ added in v1.12.0
func (gc *GatewayClient) GetClusterDetails(mdmTopologyParam []byte, requireJSONOutput bool) (*types.GatewayResponse, error)
GetClusterDetails used for get MDM cluster details
func (*GatewayClient) GetFirmwareRepositoryDetailsUsingName ¶ added in v1.15.0
func (gc *GatewayClient) GetFirmwareRepositoryDetailsUsingName(name string) (*types.FirmwareRepositoryDetails, error)
GetFirmwareRepositoryDetailsUsingName returns all the details of the firmware repository using name
func (*GatewayClient) GetInQueueCommand ¶ added in v1.11.0
func (gc *GatewayClient) GetInQueueCommand() ([]types.MDMQueueCommandDetails, error)
GetInQueueCommand used for get in queue commands
func (*GatewayClient) GetNodeByFilters ¶ added in v1.14.0
func (gc *GatewayClient) GetNodeByFilters(key string, value string) ([]types.NodeDetails, error)
GetNodeByFilters gets the node details based on the provided filter
func (*GatewayClient) GetNodeByID ¶ added in v1.14.0
func (gc *GatewayClient) GetNodeByID(id string) (*types.NodeDetails, error)
GetNodeByID gets the node details based on ID
func (*GatewayClient) GetNodePoolByID ¶ added in v1.14.0
func (gc *GatewayClient) GetNodePoolByID(id int) (*types.NodePoolDetails, error)
GetNodePoolByID gets the nodepool details based on ID
func (*GatewayClient) GetNodePoolByName ¶ added in v1.14.0
func (gc *GatewayClient) GetNodePoolByName(name string) (*types.NodePoolDetails, error)
GetNodePoolByName gets the nodepool details based on name
func (*GatewayClient) GetPackageDetails ¶ added in v1.11.0
func (gc *GatewayClient) GetPackageDetails() ([]*types.PackageDetails, error)
GetPackageDetails used for get package details
func (*GatewayClient) GetServiceComplianceDetails ¶ added in v1.16.0
func (gc *GatewayClient) GetServiceComplianceDetails(deploymentID string) ([]types.ComplianceReport, error)
GetServiceComplianceDetails retrieves service compliance details for a given deployment.
func (*GatewayClient) GetServiceComplianceDetailsByFilter ¶ added in v1.16.0
func (gc *GatewayClient) GetServiceComplianceDetailsByFilter(deploymentID, filter, value string) ([]types.ComplianceReport, error)
GetServiceComplianceDetailsByFilter retrieves service compliance details based on a filter and value.
func (*GatewayClient) GetServiceDetailsByFilter ¶ added in v1.14.0
func (gc *GatewayClient) GetServiceDetailsByFilter(filter, value string) ([]types.ServiceResponse, error)
GetServiceDetailsByFilter retrieves service details based on a filter and value.
func (*GatewayClient) GetServiceDetailsByID ¶ added in v1.14.0
func (gc *GatewayClient) GetServiceDetailsByID(deploymentID string, newToken bool) (*types.ServiceResponse, error)
GetServiceDetailsByID retrieves service details by deployment ID.
func (*GatewayClient) GetTemplateByFilters ¶ added in v1.14.0
func (gc *GatewayClient) GetTemplateByFilters(key string, value string) ([]types.TemplateDetails, error)
GetTemplateByFilters gets the Template details based on the provided filter
func (*GatewayClient) GetTemplateByID ¶ added in v1.14.0
func (gc *GatewayClient) GetTemplateByID(id string) (*types.TemplateDetails, error)
GetTemplateByID gets the node details based on ID
func (*GatewayClient) GetUploadComplianceDetails ¶ added in v1.15.0
func (gc *GatewayClient) GetUploadComplianceDetails(id string, newToken bool) (*types.UploadComplianceTopologyDetails, error)
GetUploadComplianceDetails function is used for getting the details of the compliance upload
func (*GatewayClient) GetUploadComplianceDetailsUsingFilter ¶ added in v1.15.0
func (gc *GatewayClient) GetUploadComplianceDetailsUsingFilter(name string) (*types.UploadComplianceTopologyDetails, error)
GetUploadComplianceDetailsUsingFilter filters the firmware repository based on name
func (*GatewayClient) GetUploadComplianceDetailsUsingID ¶ added in v1.15.0
func (gc *GatewayClient) GetUploadComplianceDetailsUsingID(id string) (*types.FirmwareRepositoryDetails, error)
GetUploadComplianceDetailsUsingID returns all the details of the firmware repository using ID
func (*GatewayClient) GetVersion ¶ added in v1.14.0
func (gc *GatewayClient) GetVersion() (string, error)
GetVersion returns version
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) NewTokenGeneration ¶ added in v1.15.0
func (gc *GatewayClient) NewTokenGeneration() (string, error)
NewTokenGeneration return a new token when logged in
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) RenewInstallationCookie ¶ added in v1.17.0
func (gc *GatewayClient) RenewInstallationCookie(retryCount int) error
RenewInstallationCookie is used to renew the installation cookie, i.e. LEGACYGWCOOKIE. Using the same LEGACYGWCOOKIE ensures that the REST requests are sent to the same GW pod. That would help to get the correct response from the GW pod that stores installation packages.
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) TestConnection ¶ added in v1.15.0
func (gc *GatewayClient) TestConnection(uploadComplianceParam *types.UploadComplianceParam) error
TestConnection tests the connection to the source location.
func (*GatewayClient) UninstallCluster ¶ added in v1.12.0
func (gc *GatewayClient) UninstallCluster(jsonStr, mdmUsername, mdmPassword, liaPassword string, allowNonSecureCommunicationWithMdm, allowNonSecureCommunicationWithLia, disableNonMgmtComponentsAuth, _ bool) (*types.GatewayResponse, error)
UninstallCluster used for uninstallation of cluster
func (*GatewayClient) UpdateService ¶ added in v1.14.0
func (gc *GatewayClient) UpdateService(deploymentID, deploymentName, deploymentDesc, nodes, nodename string) (*types.ServiceResponse, error)
UpdateService updates an existing service in the ScaleIO Gateway.
func (*GatewayClient) UploadCompliance ¶ added in v1.15.0
func (gc *GatewayClient) UploadCompliance(uploadComplianceParam *types.UploadComplianceParam) (*types.UploadComplianceTopologyDetails, error)
UploadCompliance function is used for uploading the compliance file.
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) CreateFaultSet ¶ added in v1.13.0
func (pd *ProtectionDomain) CreateFaultSet(fs *types.FaultSetParam) (string, error)
CreateFaultSet creates a fault set
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) DeleteFaultSet ¶ added in v1.13.0
func (pd *ProtectionDomain) DeleteFaultSet(id string) error
DeleteFaultSet will delete a fault set
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) ModifyFaultSetName ¶ added in v1.13.0
func (pd *ProtectionDomain) ModifyFaultSetName(id, name string) error
ModifyFaultSetName will modify the name of the fault set
func (*ProtectionDomain) ModifyFaultSetPerfProfile ¶ added in v1.13.0
func (pd *ProtectionDomain) ModifyFaultSetPerfProfile(id, perfProfile string) error
ModifyFaultSetPerfProfile will modify the performance profile of the fault set
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() (*types.CreateReplicationConsistencyGroupSnapshotResp, error)
CreateReplicationConsistencyGroupSnapshot creates a snapshot of the ReplicationConsistencyGroup on the target array.
func (*ReplicationConsistencyGroup) ExecuteActivateOnReplicationGroup ¶ added in v1.17.0
func (rcg *ReplicationConsistencyGroup) ExecuteActivateOnReplicationGroup() error
ExecuteActivateOnReplicationGroup on the ConsistencyGroup.
func (*ReplicationConsistencyGroup) ExecuteConsistentOnReplicationGroup ¶ added in v1.17.0
func (rcg *ReplicationConsistencyGroup) ExecuteConsistentOnReplicationGroup() error
ExecuteConsistentOnReplicationGroup on the ConsistencyGroup.
func (*ReplicationConsistencyGroup) ExecuteFailoverOnReplicationGroup ¶ added in v1.10.0
func (rcg *ReplicationConsistencyGroup) ExecuteFailoverOnReplicationGroup() error
ExecuteFailoverOnReplicationGroup sets the ReplicationconsistencyGroup into a failover state.
func (*ReplicationConsistencyGroup) ExecuteInconsistentOnReplicationGroup ¶ added in v1.17.0
func (rcg *ReplicationConsistencyGroup) ExecuteInconsistentOnReplicationGroup() error
ExecuteInconsistentOnReplicationGroup on the ConsistencyGroup.
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(_ 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) ExecuteTerminateOnReplicationGroup ¶ added in v1.17.0
func (rcg *ReplicationConsistencyGroup) ExecuteTerminateOnReplicationGroup() error
ExecuteTerminateOnReplicationGroup 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.
func (*ReplicationConsistencyGroup) SetNewNameOnReplicationGroup ¶ added in v1.17.0
func (rcg *ReplicationConsistencyGroup) SetNewNameOnReplicationGroup(param types.SetNewNameOnReplicationGroup) error
SetNewNameOnReplicationGroup on the ConsistencyGroup.
func (*ReplicationConsistencyGroup) SetRPOOnReplicationGroup ¶ added in v1.17.0
func (rcg *ReplicationConsistencyGroup) SetRPOOnReplicationGroup(param types.SetRPOReplicationConsistencyGroup) error
SetRPOOnReplicationGroup on the ConsistencyGroup.
func (*ReplicationConsistencyGroup) SetTargetVolumeAccessModeOnReplicationGroup ¶ added in v1.17.0
func (rcg *ReplicationConsistencyGroup) SetTargetVolumeAccessModeOnReplicationGroup(param types.SetTargetVolumeAccessModeOnReplicationGroup) error
SetTargetVolumeAccessModeOnReplicationGroup on the ConsistencyGroup.
func (*ReplicationConsistencyGroup) UnfreezeReplicationConsistencyGroup ¶ added in v1.17.0
func (rcg *ReplicationConsistencyGroup) UnfreezeReplicationConsistencyGroup() error
UnfreezeReplicationConsistencyGroup sets the ReplicationConsistencyGroup into a Unfreeze state
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) AddSdtTargetIP ¶ added in v1.17.1
AddSdtTargetIP adds target IP and role for the sdt.
func (*System) AddStandByMdm ¶ added in v1.12.0
func (s *System) AddStandByMdm(mdmParam *types.StandByMdm) (string, error)
AddStandByMdm adds the standby MDMs to the MDM cluster
func (*System) ApproveSdc ¶ added in v1.15.0
func (s *System) ApproveSdc(approveSdcParam *types.ApproveSdcParam) (*types.ApproveSdcByGUIDResponse, error)
ApproveSdc approves an SDC
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) AssignVolumeToSnapshotPolicy ¶ added in v1.14.0
func (s *System) AssignVolumeToSnapshotPolicy(assignVoltoSnap *types.AssignVolumeToSnapshotPolicyParam, id string) error
AssignVolumeToSnapshotPolicy assigns volume to a snapshot policy
func (*System) ChangeMdmOwnerShip ¶ added in v1.12.0
ChangeMdmOwnerShip modifies the primary MDM
func (*System) ChangeNvmeHostMaxNumPaths ¶ added in v1.17.0
ChangeNvmeHostMaxNumPaths changes the max number paths of the Nvme host.
func (*System) ChangeNvmeHostMaxNumSysPorts ¶ added in v1.17.0
ChangeNvmeHostMaxNumSysPorts changes the max number of sys ports of the Nvme host.
func (*System) ChangeNvmeHostName ¶ added in v1.17.0
ChangeNvmeHostName changes the name of the Nvme host.
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) ChangeSdcPerfProfile ¶ added in v1.12.0
ChangeSdcPerfProfile returns a Sdc after changing its PerfProfile
func (*System) CreateFileSystem ¶ added in v1.11.0
CreateFileSystem creates a file system
func (*System) CreateFileSystemSnapshot ¶ added in v1.12.0
func (s *System) CreateFileSystemSnapshot(createSnapParam *types.CreateFileSystemSnapshotParam, fsID string) (*types.CreateFileSystemSnapshotResponse, error)
CreateFileSystemSnapshot creates a snapshot for a given 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) CreateNvmeHost ¶ added in v1.17.0
func (s *System) CreateNvmeHost(nvmeHostParam types.NvmeHostParam) (*types.NvmeHostResp, error)
CreateNvmeHost creates a new NVMe host
func (*System) CreateOSRepository ¶ added in v1.16.0
func (s *System) CreateOSRepository(createOSRepository *types.OSRepository) (*types.OSRepository, error)
CreateOSRepository Creates OS Repository
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) CreateSnapshotPolicy ¶ added in v1.14.0
func (s *System) CreateSnapshotPolicy(snapPolicy *types.SnapshotPolicyCreateParam) (string, error)
CreateSnapshotPolicy creates a snapshot policy on the PowerFlex array
func (*System) CreateTreeQuota ¶ added in v1.12.0
func (s *System) CreateTreeQuota(createParams *types.TreeQuotaCreate) (resp *types.TreeQuotaCreateResponse, err error)
CreateTreeQuota create an tree quota for a File System.
func (*System) CreateUser ¶ added in v1.12.0
CreateUser creates a new user with some role.
func (*System) DeleteFileSystem ¶ added in v1.11.0
DeleteFileSystem deletes a file system
func (*System) DeleteNvmeHost ¶ added in v1.17.0
DeleteNvmeHost deletes the NVMe host
func (*System) DeleteProtectionDomain ¶ added in v1.3.0
DeleteProtectionDomain will delete a protection domain
func (*System) DeleteTreeQuota ¶ added in v1.12.0
DeleteTreeQuota delete a tree quota by ID
func (*System) EnterSdtMaintenanceMode ¶ added in v1.17.1
EnterSdtMaintenanceMode enter sdt maintenance mode
func (*System) ExitSdtMaintenanceMode ¶ added in v1.17.1
ExitSdtMaintenanceMode exit sdt maintenance mode
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) GetAllFaultSets ¶ added in v1.13.0
GetAllFaultSets returns all fault sets on the system
func (*System) GetAllFileSystems ¶ added in v1.11.0
func (s *System) GetAllFileSystems() ([]types.FileSystem, error)
GetAllFileSystems returns a file system
func (*System) GetAllNvmeHosts ¶ added in v1.17.0
GetAllNvmeHosts returns all NvmeHost list
func (*System) GetAllOSRepositories ¶ added in v1.16.0
func (s *System) GetAllOSRepositories() ([]types.OSRepository, error)
GetAllOSRepositories Gets all OS Repositories
func (*System) GetAllSDSByFaultSetID ¶ added in v1.13.0
GetAllSDSByFaultSetID returns SDS details associated with fault set
func (*System) GetAllSdts ¶ added in v1.17.1
GetAllSdts returns all sdt
func (*System) GetAllStoragePools ¶ added in v1.10.0
func (s *System) GetAllStoragePools() ([]types.StoragePool, error)
GetAllStoragePools returns all Storage pools on the system
func (*System) GetCompatibilityManagement ¶ added in v1.16.0
func (s *System) GetCompatibilityManagement() (*types.CompatibilityManagement, error)
GetCompatibilityManagement Gets Compatibility Management
func (*System) GetDeviceByField ¶ added in v1.11.0
GetDeviceByField returns a Device list filter by the field
func (*System) GetFaultSetByID ¶ added in v1.13.0
GetFaultSetByID will read the fault set using the ID.
func (*System) GetFaultSetByName ¶ added in v1.13.0
GetFaultSetByName will read the fault set using the name
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) GetFsSnapshotsByVolumeID ¶ added in v1.12.0
func (s *System) GetFsSnapshotsByVolumeID(fsID string) ([]types.FileSystem, error)
GetFsSnapshotsByVolumeID gets list of snapshots associated with a filesystem
func (*System) GetHostNvmeControllers ¶ added in v1.17.1
GetHostNvmeControllers returns all attached NVMe controllers
func (*System) GetMDMClusterDetails ¶ added in v1.12.0
func (s *System) GetMDMClusterDetails() (*types.MdmCluster, error)
GetMDMClusterDetails returns MDM cluster details
func (*System) GetNASByIDName ¶ added in v1.11.0
GetNASByIDName gets a NAS server by name or ID
func (*System) GetNvmeHostByID ¶ added in v1.17.0
GetNvmeHostByID returns an NVMe host searched by id
func (*System) GetOSRepositoryByID ¶ added in v1.16.0
func (s *System) GetOSRepositoryByID(id string) (*types.OSRepository, error)
GetOSRepositoryByID Gets OS Repository by 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) GetSdcIDByIP ¶ added in v1.12.0
GetSdcIDByIP get a Sdc id by IP Address
func (*System) GetSdsByID ¶ added in v1.10.0
GetSdsByID returns a Sds by ID
func (*System) GetSdtByID ¶ added in v1.17.1
GetSdtByID returns an sdt searched by id
func (*System) GetSourceVolume ¶ added in v1.14.0
GetSourceVolume returns a list of volumes assigned to snapshot policy
func (*System) GetStatistics ¶
func (s *System) GetStatistics() (*types.Statistics, error)
GetStatistics returns system statistics
func (*System) GetStoragePoolByID ¶ added in v1.10.0
func (s *System) GetStoragePoolByID(id string) (*types.StoragePool, error)
GetStoragePoolByID returns a Storagepool by ID
func (*System) GetTreeQuota ¶ added in v1.12.0
GetTreeQuota gets list of tree Quota
func (*System) GetTreeQuotaByFSID ¶ added in v1.12.0
GetTreeQuotaByFSID gets a specific tree quota by filesystem ID
func (*System) GetTreeQuotaByID ¶ added in v1.12.0
GetTreeQuotaByID gets a specific tree quota by ID
func (*System) GetUserByIDName ¶ added in v1.12.0
GetUserByIDName returns a specific user based on it's user id
func (*System) ModifyFileSystem ¶ added in v1.12.0
ModifyFileSystem modifies a file system
func (*System) ModifyPerformanceProfileMdmCluster ¶ added in v1.12.0
ModifyPerformanceProfileMdmCluster modifies performance profile of MDM cluster
func (*System) ModifySdtIPRole ¶ added in v1.17.1
ModifySdtIPRole modify target IP role for the sdt.
func (*System) ModifySnapshotPolicy ¶ added in v1.14.0
func (s *System) ModifySnapshotPolicy(modifysnapPolicy *types.SnapshotPolicyModifyParam, id string) error
ModifySnapshotPolicy modifies a snapshot policy
func (*System) ModifyTreeQuota ¶ added in v1.12.0
func (s *System) ModifyTreeQuota(ModifyParams *types.TreeQuotaModify, id string) (err error)
ModifyTreeQuota modifies a tree quota
func (*System) PauseSnapshotPolicy ¶ added in v1.14.0
PauseSnapshotPolicy pause a snapshot policy
func (*System) RemoveOSRepository ¶ added in v1.16.0
RemoveOSRepository Removes OS Repository
func (*System) RemoveSdtTargetIP ¶ added in v1.17.1
RemoveSdtTargetIP removes target IP and role from the sdt.
func (*System) RemoveSnapshotPolicy ¶ added in v1.14.0
RemoveSnapshotPolicy removes a snapshot policy from the PowerFlex array
func (*System) RemoveStandByMdm ¶ added in v1.12.0
RemoveStandByMdm removes standby MDM
func (*System) RemoveUser ¶ added in v1.12.0
RemoveUser removes a particular user.
func (*System) RenameSnapshotPolicy ¶ added in v1.14.0
RenameSnapshotPolicy renames a snapshot policy
func (*System) RestoreFileSystemFromSnapshot ¶ added in v1.12.0
func (s *System) RestoreFileSystemFromSnapshot(restoreSnapParam *types.RestoreFsSnapParam, fsID string) (*types.RestoreFsSnapResponse, error)
RestoreFileSystemFromSnapshot restores the filesystem from a given snapshot using filesytem id
func (*System) ResumeSnapshotPolicy ¶ added in v1.14.0
ResumeSnapshotPolicy resume a snapshot policy which was paused
func (*System) SetApprovedIps ¶ added in v1.15.0
SetApprovedIps sets the approved IPs for a specific SDC in the system.
func (*System) SetCompatibilityManagement ¶ added in v1.16.0
func (s *System) SetCompatibilityManagement(compatibilityManagement *types.CompatibilityManagementPost) (*types.CompatibilityManagement, error)
SetCompatibilityManagement Sets Compatibility Management
func (*System) SetRestrictedMode ¶ added in v1.15.0
SetRestrictedMode sets the restricted mode for the system
func (*System) SetSdtDiscoveryPort ¶ added in v1.17.1
SetSdtDiscoveryPort sets the discovery port for the sdt.
func (*System) SetSdtNvmePort ¶ added in v1.17.1
SetSdtNvmePort set the NVMe port for the sdt.
func (*System) SetSdtStoragePort ¶ added in v1.17.1
SetSdtStoragePort sets the storage port for the sdt.
func (*System) SetUserRole ¶ added in v1.12.0
func (s *System) SetUserRole(userRole *types.UserRoleParam, userID string) error
SetUserRole sets a new role for a particular user.
func (*System) SwitchClusterMode ¶ added in v1.12.0
func (s *System) SwitchClusterMode(switchClusterMode *types.SwitchClusterMode) error
SwitchClusterMode changes the MDM cluster mode
func (*System) UnassignVolumeFromSnapshotPolicy ¶ added in v1.14.0
func (s *System) UnassignVolumeFromSnapshotPolicy(UnassignVolFromSnap *types.AssignVolumeToSnapshotPolicyParam, id string) error
UnassignVolumeFromSnapshotPolicy unassigns volume from a snapshot policy
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)
Source Files ¶
- api.go
- compatibility_management.go
- deploy.go
- device.go
- drv_cfg.go
- fault_set.go
- fs.go
- instance.go
- lcm.go
- nfs.go
- nfs_export.go
- node.go
- nvme_host.go
- os_repository.go
- protectiondomain.go
- replication.go
- scsiinitiator.go
- sdc.go
- sds.go
- sdt.go
- service.go
- snapshot_policy.go
- sso_user.go
- storagepool.go
- system.go
- system_limit.go
- template.go
- tree_quota.go
- upgrade.go
- user.go
- volume.go
- vtree.go