systemresourceservice

package
v0.0.0-...-66c7a0d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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 SystemResourcesService interface {
	GetSystemResourcesForDeployment(enums.NodeType, enums.DeploymentState) *models.ApiResult
}

type SystemResourcesServiceImpl

type SystemResourcesServiceImpl struct {
	SystemResourceInfo systemresource.SystemResourceInfo
	Fileutils          fileutils.FileUtils
	// contains filtered or unexported fields
}

func (*SystemResourcesServiceImpl) CheckCpuCount

func (srs *SystemResourcesServiceImpl) CheckCpuCount() *models.Checks

func (*SystemResourcesServiceImpl) CheckCpuSpeed

func (srs *SystemResourcesServiceImpl) CheckCpuSpeed() *models.Checks

func (*SystemResourcesServiceImpl) CheckFreeDiskSpaceOfDir

func (srs *SystemResourcesServiceImpl) CheckFreeDiskSpaceOfDir(dirPath string, freeDiskSpaceWantInPer, freeDiskSpaceWantInGB float64, checkTitle string) *models.Checks

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 (srs *SystemResourcesServiceImpl) CheckPermissionOfDir(dirPath string, permissionString string, checkTitle string) *models.Checks

func (*SystemResourcesServiceImpl) GetCheckModelValuesDetailsForStorageChecks

func (srs *SystemResourcesServiceImpl) GetCheckModelValuesDetailsForStorageChecks(expectedFreeSpaceCalculated, currentFreeSpace, expectedFreeSpaceWantInPer, expectedFreeSpaceWantInGB float64, deploymentState, dirName string) (bool, string, string, string)

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)

func (*SystemResourcesServiceImpl) GetUsage

func (srs *SystemResourcesServiceImpl) GetUsage(dirPath string) (disk.UsageStat, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL