Documentation ¶
Index ¶
- type MockSystemResourcesServiceImpl
- type SystemResourcesService
- type SystemResourcesServiceImpl
- func (srs *SystemResourcesServiceImpl) CheckCpuCount() *models.Checks
- func (srs *SystemResourcesServiceImpl) CheckCpuSpeed() *models.Checks
- func (srs *SystemResourcesServiceImpl) CheckFreeDiskSpaceOfDir(dirPath string, freeDiskSpaceWantInPer, freeDiskSpaceWantInGB float64, ...) *models.Checks
- func (srs *SystemResourcesServiceImpl) CheckHabFreeSpace(nodeType enums.NodeType, deploymentState enums.DeploymentState) *models.Checks
- func (srs *SystemResourcesServiceImpl) CheckHabFreeSpacePostDeployment(nodeType enums.NodeType) *models.Checks
- func (srs *SystemResourcesServiceImpl) CheckHabFreeSpacePreDeployment(nodeType enums.NodeType) *models.Checks
- func (srs *SystemResourcesServiceImpl) CheckMemorySize() *models.Checks
- func (srs *SystemResourcesServiceImpl) CheckPermissionOfDir(dirPath string, permissionString string, checkTitle string) *models.Checks
- func (srs *SystemResourcesServiceImpl) GetCheckModelValuesDetailsForStorageChecks(...) (bool, string, string, string)
- func (srs *SystemResourcesServiceImpl) GetChecksModel(passed bool, checkTitle, successMsg, errorMsg, resolutionMsg string) *models.Checks
- func (srs *SystemResourcesServiceImpl) GetExpectedFreeSpaceValueAfterDeploy(totalSpaceInGB, freeSpaceWantInPercentage, freeSpaceWantInGB float64) float64
- func (srs *SystemResourcesServiceImpl) GetFreeDiskSpaceOfGivenDir(dirPath string) (float64, error)
- func (srs *SystemResourcesServiceImpl) GetSystemResourcesForDeployment(nodeType enums.NodeType, deploymentState enums.DeploymentState) *models.ApiResult
- func (srs *SystemResourcesServiceImpl) GetTotalSpaceOfGivenDir(dirPath string) (float64, error)
- func (srs *SystemResourcesServiceImpl) GetUsage(dirPath string) (disk.UsageStat, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSystemResourcesServiceImpl ¶
type MockSystemResourcesServiceImpl struct {
GetSystemResourcesForDeploymentFunc func(enums.NodeType, enums.DeploymentState) *models.ApiResult
}
func (*MockSystemResourcesServiceImpl) GetSystemResourcesForDeployment ¶
func (msrs *MockSystemResourcesServiceImpl) GetSystemResourcesForDeployment(nodeType enums.NodeType, deploymentState enums.DeploymentState) *models.ApiResult
type SystemResourcesService ¶
type SystemResourcesServiceImpl ¶
type SystemResourcesServiceImpl struct { SystemResourceInfo systemresource.SystemResourceInfo Fileutils fileutils.FileUtils // contains filtered or unexported fields }
func NewSystemResourceService ¶
func NewSystemResourceService(log logger.Logger, sysResInfo systemresource.SystemResourceInfo, fileUtils fileutils.FileUtils) *SystemResourcesServiceImpl
func (*SystemResourcesServiceImpl) CheckCpuCount ¶
func (srs *SystemResourcesServiceImpl) CheckCpuCount() *models.Checks
func (*SystemResourcesServiceImpl) CheckCpuSpeed ¶
func (srs *SystemResourcesServiceImpl) CheckCpuSpeed() *models.Checks
func (*SystemResourcesServiceImpl) CheckFreeDiskSpaceOfDir ¶
func (*SystemResourcesServiceImpl) CheckHabFreeSpace ¶
func (srs *SystemResourcesServiceImpl) CheckHabFreeSpace(nodeType enums.NodeType, deploymentState enums.DeploymentState) *models.Checks
func (*SystemResourcesServiceImpl) CheckHabFreeSpacePostDeployment ¶
func (srs *SystemResourcesServiceImpl) CheckHabFreeSpacePostDeployment(nodeType enums.NodeType) *models.Checks
func (*SystemResourcesServiceImpl) CheckHabFreeSpacePreDeployment ¶
func (srs *SystemResourcesServiceImpl) CheckHabFreeSpacePreDeployment(nodeType enums.NodeType) *models.Checks
func (*SystemResourcesServiceImpl) CheckMemorySize ¶
func (srs *SystemResourcesServiceImpl) CheckMemorySize() *models.Checks
func (*SystemResourcesServiceImpl) CheckPermissionOfDir ¶
func (*SystemResourcesServiceImpl) GetCheckModelValuesDetailsForStorageChecks ¶
func (*SystemResourcesServiceImpl) GetChecksModel ¶
func (srs *SystemResourcesServiceImpl) GetChecksModel(passed bool, checkTitle, successMsg, errorMsg, resolutionMsg string) *models.Checks
func (*SystemResourcesServiceImpl) GetExpectedFreeSpaceValueAfterDeploy ¶
func (srs *SystemResourcesServiceImpl) GetExpectedFreeSpaceValueAfterDeploy(totalSpaceInGB, freeSpaceWantInPercentage, freeSpaceWantInGB float64) float64
func (*SystemResourcesServiceImpl) GetFreeDiskSpaceOfGivenDir ¶
func (srs *SystemResourcesServiceImpl) GetFreeDiskSpaceOfGivenDir(dirPath string) (float64, error)
func (*SystemResourcesServiceImpl) GetSystemResourcesForDeployment ¶
func (srs *SystemResourcesServiceImpl) GetSystemResourcesForDeployment(nodeType enums.NodeType, deploymentState enums.DeploymentState) *models.ApiResult
func (*SystemResourcesServiceImpl) GetTotalSpaceOfGivenDir ¶
func (srs *SystemResourcesServiceImpl) GetTotalSpaceOfGivenDir(dirPath string) (float64, error)
Click to show internal directories.
Click to hide internal directories.