Commit Graph

  • 1427a023fd Reworked command route handler logic, fixed arguments for enable_online commands Paulo Truta 2022-02-09 22:53:15 +0000
  • a44c44baa8 Added validation for argument in start/stop app command. Colorized error output on validation fail Paulo Truta 2022-02-07 20:39:53 +0000
  • 9ccb3f1d71 Commented out unecessary logging (should be under --verbose flag), tidy up command logic, implemented stop and start app commands Paulo Truta 2022-02-07 20:20:09 +0000
  • 6a61ac4d17 Using fmt.Sprintf instead of casting int to string Paulo Truta 2022-02-06 17:25:41 +0000
  • c88726917f Minor adjustments, Example poc for sub commands with 'app start' and 'app stop' working concepts Paulo Truta 2022-02-06 17:10:02 +0000
  • 2f36538e1e Installed urfave/cli/v2 lib and cleaned main(). Runs as service clock by default Paulo Truta 2022-02-06 15:15:32 +0000
  • 83d2fdcae1
    [WIP] Support for cloud version (#17) Paulo Truta 2022-02-06 15:37:50 +0100
  • 446deefc57 Removed codecov from test action Paulo Truta 2022-02-06 14:35:09 +0000
  • c8ad555ef6 Merge main Paulo Truta 2022-02-06 00:15:11 +0000
  • ef994a1002 Added constants for release version and device types, added diagnostics.GetReleaseVersion Paulo Truta 2022-02-05 21:52:49 +0000
  • 162665b115 Using IsPublicDashboard in DisablePublicDashboard func Paulo Truta 2022-02-05 13:56:05 +0000
  • 295fd44a38 Early return statement (thanks @inverse) Paulo Truta 2022-02-05 13:52:01 +0000
  • 864d1e8f0f
    Update LICENSE Paulo Truta 2021-11-21 21:20:05 +0100
  • 55fe955d27 Added couple of func description comments Paulo Truta 2021-06-21 16:08:41 +0000
  • bff0f6f817 Added task SetupCloudOptions Paulo Truta 2021-06-21 16:05:26 +0000
  • 3b3010c8f0 Finalizing online support for dashboard, cloud version support Paulo Truta 2021-06-21 01:39:15 +0000
  • 4614a0f070 Added utils.WriteOption and refactor, added enablePublicDashb0oard Paulo Truta 2021-06-20 22:04:12 +0000
  • 380172f6f0 Added taskEnablePublicDashboard and taskDisablePublicDashboard Paulo Truta 2021-06-17 19:53:20 +0000
  • 7430f0c8ce
    Use const for task status (#18) Malachi Soord 2021-06-17 21:48:15 +0200
  • 01115518ed
    Use const for task status Malachi Soord 2021-06-17 21:34:05 +0200
  • f52281ff1e Added utils.getIP function, set to run as a 60 tick scheduled task Paulo Truta 2021-06-17 13:38:34 +0000
  • ae0d16b3de Refactored GetDevices and test to use release_version Paulo Truta 2021-06-15 14:17:35 +0000
  • 10e19a1292 Finding main device in test Paulo Truta 2021-06-15 13:57:22 +0000
  • 33ab2377c0 Added missing import Paulo Truta 2021-06-15 11:05:02 +0000
  • b90f1c26b5 Added support for detecting main disk in cloud version Paulo Truta 2021-06-15 11:01:44 +0000
  • 00a2df378b taskGetSystemUptime to run every 5 ticks Paulo Truta 2021-06-15 10:56:33 +0000
  • 45b326c79d Added taskSetReleaseVersion for edgeboxctl version option write into DB Paulo Truta 2021-06-15 09:43:40 +0000
  • a0dce5abd8 Fix env var key GOOS Paulo Truta 2021-06-14 11:05:08 +0000
  • 1622ff69b7 Added build-cloud to Makefile 0.0.2 Paulo Truta 2021-06-14 10:34:18 +0000
  • 9339e6cf09
    Storage Module Basis (#13) 0.0.1 Paulo Truta 2021-06-13 12:03:36 +0200
  • 6d3c1df1f5 TestGetDevices Paulo Truta 2021-06-12 14:55:29 +0000
  • 7c14dfee64 Added storage_test.go file, smoke test Paulo Truta 2021-06-12 14:38:38 +0000
  • 8a30427287 Added missing t.Fail() statements in utils_test.go Paulo Truta 2021-06-12 14:33:34 +0000
  • cf56526f97 Added branch to test for valid key in GetPath Paulo Truta 2021-06-12 14:32:41 +0000
  • a1c0529fda Added Example tests with failure status for ExecAndStream Paulo Truta 2021-06-12 14:24:13 +0000
  • ac8b70976b Added ExampleExecAndStream test Paulo Truta 2021-06-12 14:13:46 +0000
  • e19a830e29 Better visibility for test result log of TestExec Paulo Truta 2021-06-12 13:20:02 +0000
  • 35442bc156 Trimming spaces and newlines from result of Exec Paulo Truta 2021-06-12 13:18:34 +0000
  • b225c6bfd8 Added spaces trim to Exec result Paulo Truta 2021-06-12 13:05:41 +0000
  • bd889304ca Fixed TestExec Paulo Truta 2021-06-12 12:57:31 +0000
  • 4613ca7820 Added new path argument to utils.Exec... test Paulo Truta 2021-06-12 12:54:39 +0000
  • d294948890 Removed too much verbosity from utils.GetPath when no env file is available, added new argument (path) to Exec family of funcs Paulo Truta 2021-06-12 12:53:36 +0000
  • d9f8b2375c Fix invalid argument type for Exec family of tests Paulo Truta 2021-06-12 12:31:48 +0000
  • f4e64ae522 Added tests to utils module Paulo Truta 2021-06-12 12:28:52 +0000
  • 06b0802bbb Removed GetMySQLDbConnectionDetails() Paulo Truta 2021-06-12 12:28:33 +0000
  • f9c02fadff Added comment to func ExecAndGetLines Paulo Truta 2021-06-10 11:58:33 +0000
  • 95d94f0809 Merge branch 'main' into storage-module Paulo Truta 2021-06-10 11:56:52 +0000
  • b71adea06f Added command line tool dependencies for the project in README file Paulo Truta 2021-06-10 11:55:06 +0000
  • 1bb1385b71 Added explicit detection of disk or part block type, ignoring non-suppoorted devices Paulo Truta 2021-06-10 11:50:18 +0000
  • 9ef07e6052 Added ExecAndGetLines util func Paulo Truta 2021-06-10 11:45:02 +0000
  • 92ac9c2b03
    Add coverage (#15) Malachi Soord 2021-06-08 22:40:53 +0200
  • 3ad93adbab
    Add codecov.yml Malachi Soord 2021-06-08 22:35:45 +0200
  • 363f4d64c3
    Add coverage Malachi Soord 2021-06-08 22:32:31 +0200
  • e611bf2ac4
    Add test foundations (#14) Malachi Soord 2021-06-08 14:13:22 +0200
  • 4dec81e487 Cleanup, small fixes Paulo Truta 2021-06-07 22:47:38 +0000
  • b825dbff85
    Add test foundations Malachi Soord 2021-06-07 22:10:06 +0200
  • 5d92e213ee Changed value of lsblk block usage output to bytes Paulo Truta 2021-06-07 17:40:57 +0000
  • 2d92131533 Added UsageStat and UsageSplit filling for in use devices Paulo Truta 2021-06-07 16:41:41 +0000
  • a4736c3b4c Cleanup Paulo Truta 2021-06-07 09:25:49 +0000
  • ca9c2cc910 Added disk space usage for partitions in use by the system Paulo Truta 2021-06-07 09:16:04 +0000
  • 97c268200e Added InUse flag to Device, fixed logic bugs Paulo Truta 2021-06-06 17:28:15 +0000
  • 1ee82baf8a GetDevices now returns a complete description w/ disk partitions Paulo Truta 2021-06-06 17:10:08 +0000
  • fd002987fa Added storage module, base structs, getDevices() func, taskGetStorageDevices (ticks every 30) Paulo Truta 2021-06-06 12:29:46 +0000
  • c9f97d42bf
    Merge pull request #10 from edgebox-iot/fix-result-null-conversion Paulo Truta 2021-06-02 13:11:48 +0200
  • 1736b04a66 Query contains named columns Paulo Truta 2021-06-01 23:53:17 +0000
  • 5d69a9fb22
    Merge pull request #9 from edgebox-iot/edgeapp_description_support Paulo Truta 2021-06-01 16:51:48 +0200
  • 3ef90ffb15 Added support for adding EDGEAPP_DESCRIPTION env var to edgebox.env edgeapps Paulo Truta 2021-06-01 11:40:58 +0000
  • 1ad554b9bf
    Merge pull request #8 from edgebox-iot/sqlite Paulo Truta 2021-06-01 13:28:52 +0200
  • df3f8fe904 Added system module, GetUptimeSeconds and GetUptimeFormatted funcs, taskGetSystemUptime Paulo Truta 2021-05-31 11:21:14 +0000
  • 770e814b6e Fixed Datetime column values. Added utils.GetSQLiteFormattedDateTime def Paulo Truta 2021-05-30 11:28:42 +0000
  • 81b545f868 Fix wrong handling of task arguments in systemIterator Paulo Truta 2021-05-22 13:30:23 +0000
  • 9f63ab7f03 Support for nullable Task args Paulo Truta 2021-05-19 10:43:47 +0000
  • 58b7425fc7 Fixed incorrect query prepare statement, small fixes in queries Paulo Truta 2021-05-08 20:46:36 +0000
  • f238b3fa46 Write queries using prepared statements, better error handling Paulo Truta 2021-05-08 20:42:07 +0000
  • d975710445 Added initial debug message of SQLite DB location Paulo Truta 2021-05-03 21:02:09 +0000
  • 6cb3e198f0 Supporting connection to SQLite database Paulo Truta 2021-05-02 08:52:32 +0000
  • 84d7fd6a82
    Merge pull request #6 from edgebox-iot/include-sum Paulo Truta 2021-03-05 02:21:42 +0100
  • e6c07ddeae
    Tidy names Malachi Soord 2021-03-04 21:39:37 +0100
  • 217309f10d
    Add sum Malachi Soord 2021-03-04 21:38:02 +0100
  • 74cbff1966 Stopping edgeapp before removing Paulo Truta 2021-03-04 15:53:49 +0000
  • 8f14a7cd15 Fix for incorrect base assignment Paulo Truta 2021-03-04 15:19:31 +0000
  • 11e9543a87 Added install / remove edgeapp tasks Paulo Truta 2021-03-04 15:06:54 +0000
  • c42d96bf34
    Merge pull request #5 from edgebox-iot/edgeboxctl-rename Paulo Truta 2021-03-04 15:21:19 +0100
  • cb3ecec5f4 Fix to makefile build-prod Paulo Truta 2021-03-04 14:06:48 +0000
  • 812cf31dc4 More changes. Fix build Paulo Truta 2021-03-04 12:48:25 +0000
  • 0ed5297f6d Renaming everything to edgeboxctl Paulo Truta 2021-03-04 12:43:49 +0000
  • 2e92ff53fe
    Merge pull request #4 from edgebox-iot/loop_loop_execution Paulo Truta 2021-03-04 13:27:38 +0100
  • 2a3506680a Removed logging of utils.Exec loop_loop_execution Paulo Truta 2021-02-20 23:55:59 +0000
  • 0ffde681cf Introduced ExecAndStream for execution with progress output Paulo Truta 2021-02-20 21:43:27 +0000
  • 5e81525635 Fixes with .env file handling and other misc Paulo Truta 2021-02-20 18:09:41 +0000
  • 7857985fe4 Added full support for enable_online and disable_online tasks Paulo Truta 2021-02-20 14:26:23 +0000
  • 6c0b011e51 Removed unnused variable assignment and unecessary for loop Paulo Truta 2021-02-19 00:32:37 +0000
  • 00b10ac64c Added InternetAccessible logic Paulo Truta 2021-02-19 00:22:12 +0000
  • 2e013b44bb Removed unused fmt import Paulo Truta 2021-02-18 23:40:16 +0000
  • 643ca5f545 Commented logging for utils.Exec() Paulo Truta 2021-02-18 23:39:54 +0000
  • f8eaf3b3e1 Commented annoying log... Paulo Truta 2021-02-18 23:36:51 +0000
  • 595c87c19c Extracted isSystemReady to outer loop Paulo Truta 2021-02-18 23:08:28 +0000
  • 57a9ef3eed Moved sleep instruction to after execution of lined task Paulo Truta 2021-02-18 23:02:31 +0000
  • 3cc670b823 Implemented actual tested RunEdgeApp and StopEdgeApp commands, added sleep time after container operation and before checking status Paulo Truta 2021-02-18 22:59:14 +0000
  • 0bd61ccf75 Tidy up (less verbosity), actual DB update for EDGEAPPS_LIST Paulo Truta 2021-02-17 13:34:53 +0100