Commit Graph

26 Commits

Author SHA1 Message Date
DaneEveritt
ff4b7655c8
update config to support more vhd features down the road 2022-10-29 12:40:49 -07:00
DaneEveritt
99cb61a6ef
Set permissions on the created image path 2022-10-16 14:13:45 -07:00
DaneEveritt
0407f22147
Fallback to using dd if fallocate isn't available 2022-10-16 14:01:52 -07:00
DaneEveritt
a74ea6a9ff
Slight cleanup after rebase 2022-10-16 13:34:24 -07:00
Dane Everitt
37c52dd439
Shore up the logic for migrations to allow multiple passes if needed 2022-10-16 13:23:42 -07:00
Dane Everitt
f8a25cb040
Correct internal behavior to allow running when already mounted 2022-10-16 13:23:42 -07:00
Dane Everitt
d8a7bf2dde
Correctly handle migrations to a VHD setup 2022-10-16 13:23:40 -07:00
Dane Everitt
265f8a6b39
Add basic logic needed to correctly mount the VHD when initializing a server. 2022-10-16 13:22:46 -07:00
Dane Everitt
7fed6a68cb
Add test coverage for vhd; make commands and filesystem abstractable 2022-10-16 13:21:35 -07:00
Dane Everitt
b0f99e2328
Catch error that occurs when there is no valid disk even created at this point 2022-10-16 13:21:16 -07:00
Dane Everitt
957257ecc3
Add base logic to start implementing support for mounted filesystems 2022-10-16 13:21:14 -07:00
Matthew Penner
058f643e65
chore: reformat code 2022-10-06 09:58:42 -06:00
Matthew Penner
3f481e9540
chore: run gofumpt 2022-10-05 17:24:11 -06:00
DaneEveritt
c18e844689
Support more rapid insertion; ignore issues with i/o 2022-07-24 16:58:03 -04:00
DaneEveritt
8cee18a92b
Save activity in a background routine to speed things along; cap query time at 3 seconds 2022-07-24 16:27:25 -04:00
DaneEveritt
f952efd9c7
Don't try to store nil for the metadata 2022-07-24 16:27:05 -04:00
DaneEveritt
21cf66b2b4
Use single connection in pool to avoid simultaneous write lock issues 2022-07-24 16:26:52 -04:00
DaneEveritt
251f91a08e
Fix crons to actually run correctly using the configuration values 2022-07-24 15:59:17 -04:00
DaneEveritt
4634c93182
Add cron to handle parsing SFTP events 2022-07-24 14:40:06 -04:00
DaneEveritt
8a867ccc44
Switch to gorm for activity logging 2022-07-24 11:43:48 -04:00
DaneEveritt
61baccb1a3
Push draft of sftp reconcilation details 2022-07-24 10:28:42 -04:00
DaneEveritt
7bd11c1c28
Switch to SQLite for activity tracking 2022-07-10 16:51:11 -04:00
DaneEveritt
e1e7916790
Handle ErrKeyNotFound as a non-error 2022-07-10 14:53:54 -04:00
DaneEveritt
f28e06267c
Better tracking of SFTP events 2022-07-10 14:30:32 -04:00
DaneEveritt
59fbd2bcea
Add initial niaeve implementation of SFTP logging
This will end up flooding the activity logs due to the way SFTP works, we'll need to have an intermediate step in Wings that batches events every 10 seconds or so and submits them as a single "event" for activity.
2022-07-09 19:37:42 -04:00
DaneEveritt
ed330fa6be
Squashed commit of the following:
commit f5baab4e88
Author: DaneEveritt <dane@daneeveritt.com>
Date:   Sat Jul 9 17:50:53 2022 -0400

    Finalize activity event sending logic and cron config

commit 9830387f21
Author: DaneEveritt <dane@daneeveritt.com>
Date:   Sat Jul 9 16:26:13 2022 -0400

    Send power events in a more usable format

commit 49f3a61d16
Author: DaneEveritt <dane@daneeveritt.com>
Date:   Sat Jul 9 15:47:24 2022 -0400

    Configure cron to actually send to endpoint

commit 28137c4c14
Author: DaneEveritt <dane@daneeveritt.com>
Date:   Sat Jul 9 15:42:29 2022 -0400

    Copy the body buffer otherwise subsequent backoff attempts will not have a buffer to send

commit 20e44bdc55
Author: DaneEveritt <dane@daneeveritt.com>
Date:   Sat Jul 9 14:38:41 2022 -0400

    Add internal logic to process activity events and send them to the panel

commit 0380488cd2
Author: DaneEveritt <dane@daneeveritt.com>
Date:   Mon Jul 4 17:55:17 2022 -0400

    Track power events

commit 9eab08b92f
Author: DaneEveritt <dane@daneeveritt.com>
Date:   Mon Jul 4 17:36:03 2022 -0400

    Initial logic to support logging activity on Wings to send back to the panel
2022-07-09 17:51:19 -04:00