Commit Graph

11 Commits (enable-codecov)

Author SHA1 Message Date
Paulo Truta 9339e6cf09
Storage Module Basis (#13)
* Added storage module, base structs, getDevices() func, taskGetStorageDevices (ticks every 30)

* GetDevices now returns a complete description w/ disk partitions

* Added InUse flag to Device, fixed logic bugs

* Added disk space usage for partitions in use by the system

* Cleanup

* Added UsageStat and UsageSplit filling for in use devices

* Changed value of lsblk block usage output to bytes

* Cleanup, small fixes

* Added ExecAndGetLines util func

* Added explicit detection of disk or part block type, ignoring non-suppoorted devices

* Added command line tool dependencies for the project in README file

* Added comment to func ExecAndGetLines

* Removed GetMySQLDbConnectionDetails()

* Added tests to utils module

* Fix invalid argument type for Exec family of tests

* Removed too much verbosity from utils.GetPath when no env file is available, added new argument (path) to Exec family of funcs

* Added new path argument to utils.Exec... test

* Fixed TestExec

* Added spaces trim to Exec result

* Trimming spaces and newlines from result of Exec

* Better visibility for test result log of TestExec

* Added ExampleExecAndStream test

* Added Example tests with failure status for ExecAndStream

* Added branch to test for valid key in GetPath

* Added missing t.Fail() statements in utils_test.go

* Added storage_test.go file, smoke test

* TestGetDevices
2021-06-13 12:03:36 +02:00
Paulo Truta df3f8fe904 Added system module, GetUptimeSeconds and GetUptimeFormatted funcs, taskGetSystemUptime 2021-05-31 11:21:14 +00:00
Paulo Truta 6cb3e198f0 Supporting connection to SQLite database 2021-05-02 08:52:32 +00:00
Paulo Truta 0ed5297f6d Renaming everything to edgeboxctl 2021-03-04 12:43:49 +00:00
Paulo Truta 59707b8abd Fixed small typo, replaced DB connection details in Makefile by .env loading 2021-02-17 12:10:15 +01:00
Paulo Truta fc5b342c89 Removed mods (thanks @inverse) 2021-02-16 22:08:59 +01:00
Paulo Truta 97182602c4 Added package edgeapps 2021-02-16 17:30:01 +01:00
Paulo Truta ad28e1a505 Added edgeapps package, cleaned up redundancies 2021-02-15 20:37:16 +01:00
Paulo Truta 8845cb11de Renamed module database into tasks 2021-02-13 16:06:13 +01:00
Paulo Truta 375bb03dfe Added database module with exportable functions 2021-02-13 15:51:14 +01:00
Paulo Truta 58e7d2712b Added base Dockerfile, main.go and redis queue 2020-11-08 23:43:18 +01:00