Commit graph

151 commits

Author SHA1 Message Date
54f3a98e6e
refactor: updated cache editor implementation 2025-06-29 16:36:50 -06:00
1410e53849
chore: made changes to build and fix issues 2025-06-29 16:36:50 -06:00
5e7330d5e7
chore: miscellaneous updates 2025-06-29 16:36:49 -06:00
2a1a2b4f52
feat: added JSON utility functions 2025-06-29 16:36:48 -06:00
a6c445b86f
Add support for storage command and crawler output
Partially addresses issue #3 by adding a simple `magellan list devices` command to list storage devices. To close the issue, this PR still requires including storage device information in the `crawler`'s output.

Reviewed-on: towk/magellan-ng#5
2025-06-29 16:36:44 -06:00
0f32d7ec0d
Changed DeleteScannedAssets to work correct and added db tag 2025-06-28 08:38:11 -06:00
1405b42f97
updated all references 2025-06-28 08:38:08 -06:00
3c078909dc
Fixed removing from cache with --with-* flags 2025-06-28 08:38:08 -06:00
1539aa587c
Minor changes 2025-06-28 08:38:07 -06:00
e40fd1fc06
Changed DeleteScannedAssets to work correct and added db tag 2025-06-28 08:38:04 -06:00
David Allen
04e1fb26c9
Split the collect Command For Customization (#93)
* feat: initial implementation of command split

* feat: update collect and new send cmd

* chore: cleanup unused code

* chore: refactored getting username

* chore: more refactoring and cleanup

* feat: update send cmd implementation

* chore: changed/updated example config

* chore: made cmd more consistent and added formatting

* refactor: removed --host flag from scan

* chore: cleaned up and fixed issue with client

* chore: cleaned up CLI flags in collect cmd

* feat: updated crawl to include managers and output YAML optionally

* refactor: updated and improved send implementation

* refactor: minor improvements

* refactor: added util func to check for empty slices

* fix: issue with reading from stdin

* refactor: added scheme trimming function for URIs

* refactor: changed host arg back to positional

* refactor: removed unused vars and added --output-dir flag

* fix: make -f for secrets persistent

* refactor: removed --host flag and request in collect

* refactor: changed --output flag to --output-file

* fix: updated flags for collect

* fix: typo in crawler error

* fix: dir being created when outputDir not set

* fix: reading stdin and data args

* fix: made output using -v and -o consistent

* readme: added info about command split

* updated changelog adding missing version entries

* chore: updated example to use host as positional arg

* fix: issue with reading --data arg

* fix: remove unused import from collect pkg

Signed-off-by: Devon Bautista <devonb@lanl.gov>

---------

Signed-off-by: David Allen <16520934+davidallendj@users.noreply.github.com>
Signed-off-by: Devon Bautista <devonb@lanl.gov>
Co-authored-by: Devon Bautista <devonb@lanl.gov>
2025-05-29 15:15:46 -04:00
Devon Bautista
db6d958934
fix: move BMC credentials getter that logs to util func 2025-04-16 22:42:19 -06:00
David Allen
2b1277690b
Merge pull request #74 from OpenCHAMI/export-funcs
refactor: moved internal functions to pkg and updated refs
2025-02-20 19:23:23 -07:00
5843bc1768
refactor: moved internal functions to pkg and updated refs 2025-02-20 17:09:21 -07:00
David Allen
5357aab06f
fix: change db.MustExec to db.Exec and handle error 2025-02-06 12:59:24 -07:00
Alex Lovell-Troy
6f18094680
Refactor how versioning information is indicated in the build and in the source. 2024-10-30 12:36:07 -06:00
David Allen
9e289b4946
Merge branch 'main' into manager-data
Signed-off-by: David Allen <16520934+davidallendj@users.noreply.github.com>
2024-10-24 17:57:00 -06:00
265021056f
collect: removed extra gofish import 2024-10-23 11:30:07 -06:00
27fec74cea
collect: fixed issue with writing output to file 2024-10-15 15:26:20 -06:00
e87b2184a2
cache: refactor after updating util 2024-10-15 15:25:42 -06:00
036a5d3ab7
util: refactor checking if path exists 2024-10-15 15:25:03 -06:00
deffdc48db
collect: added MACAddr and manager data to output 2024-10-15 13:54:00 -06:00
David Allen
affba7dfa3
Added CheckUntil() for tests 2024-09-26 10:26:03 -06:00
David Allen
874d750dde
Added temporary solution for creating new clients 2024-08-27 17:17:19 -06:00
David Allen
9991f02631
Updated warning message and changed SMD client to use pointer receivers 2024-08-27 15:55:16 -06:00
2e036c549d
Rearranged collect error to only show when not force updating 2024-08-21 16:55:07 -06:00
00aaf1bf4c
Added schema version to output 2024-08-21 13:26:00 -06:00
David Allen
046a833941
Fixed passing the correct argument in Sanitize() 2024-08-14 13:33:12 -06:00
David Allen
4597f63d12
Fixed issue with host string and added internal url package 2024-08-14 10:57:30 -06:00
David Allen
2b291f811a
Fixed scan not probing the host correctly 2024-08-13 17:01:21 -06:00
David Allen
dc07b5396b
Changed saving host to include scheme for collect 2024-08-13 16:48:11 -06:00
David Allen
81ec43a923
Minor changes to fix lint errors 2024-08-13 10:41:06 -06:00
David Allen
e02558fd00
Minor changes 2024-08-12 13:08:30 -06:00
David Allen
411102881d
Removed files from util 2024-08-12 13:07:30 -06:00
f7159c9b66
Fixed issue with collect requests and other minor changes 2024-08-11 14:25:21 -06:00
d930c4136f
Changed how based URL is derived in update functions 2024-08-11 14:23:19 -06:00
bc01412b08
Fixed port not being added to probing request 2024-08-09 17:51:23 -06:00
7beb7a33fc
Renamed struct 2024-08-09 17:39:14 -06:00
David Allen
8e59885f55
Minor changes and improvements 2024-08-09 07:58:42 -06:00
David Allen
77b6a9ba7b
Added check for output directory for collect 2024-08-08 12:21:52 -06:00
4cc3f7f7ac
Changed order of adding default ports to add host correctly 2024-08-07 19:57:37 -06:00
39ad0d75c6
Changed host to hostname being stored in cache 2024-08-07 19:16:43 -06:00
88fb71b436
Removed storage file 2024-08-07 19:03:27 -06:00
David Allen
dd829cd10e
Fixed '--subnet' flag not adding hosts to scan 2024-08-07 13:15:16 -06:00
David Allen
6d1dae25ec
Major 'internal' package refactor 2024-08-07 10:59:10 -06:00
David Allen
0922bbf5f9
Removed unused updating code and bmclib dependency and other minor changes 2024-07-30 14:05:55 -06:00
David Allen
9b3c21a20a
Removed magellan's internal logger for zerolog 2024-07-30 14:04:34 -06:00
David Allen
606a7b47cc
Removed unused code, rename vars, and changed output to use hive partitioning strategy 2024-07-30 14:00:23 -06:00
David Allen
aefce13f57
Refactored/reorganized utils 2024-07-24 11:52:12 -06:00
David Allen
d877f9b18f
Removed unused query params 2024-07-24 10:28:23 -06:00