diff options
Diffstat (limited to 'lib/OperatingSystems/IOperatingSystem.php')
-rw-r--r-- | lib/OperatingSystems/IOperatingSystem.php | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/lib/OperatingSystems/IOperatingSystem.php b/lib/OperatingSystems/IOperatingSystem.php index 000e536..5238e96 100644 --- a/lib/OperatingSystems/IOperatingSystem.php +++ b/lib/OperatingSystems/IOperatingSystem.php @@ -25,22 +25,30 @@ declare(strict_types=1); namespace OCA\ServerInfo\OperatingSystems; +use OCA\ServerInfo\Resources\Disk; use OCA\ServerInfo\Resources\Memory; interface IOperatingSystem { /** - * Get memory returns a Memory object. All values are in bytes. + * Get name of the processor * - * @return Memory + * @return string */ - public function getMemory(): Memory; + public function getCpuName(): string; /** - * Get name of the processor + * Get disk info returns a list of Disk objects. Used and Available in bytes. * - * @return string + * @return Disk[] */ - public function getCpuName(): string; + public function getDiskInfo(): array; + + /** + * Get memory returns a Memory object. All values are in bytes. + * + * @return Memory + */ + public function getMemory(): Memory; /** * Get the total number of seconds the system has been up or -1 on failure. |