Skip to content

Conversation

@pjbgf
Copy link
Member

@pjbgf pjbgf commented Apr 4, 2025

No description provided.

pjbgf added 4 commits April 1, 2025 21:31
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
Make the API more extensive by applying the options pattern, enabling
future options to not break existing calls.

Direct calls to the os package were replaced by the use of os.Root
to simplify file access whilst removing the risk of path traversal.
Redundant creation of buffers from file contents were removed, to
avoid abuse that could lead to OOM.

Signed-off-by: Paulo Gomes <pjbgf@linux.com>
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
@pjbgf pjbgf force-pushed the hard-fork branch 2 times, most recently from de803c0 to 27788ad Compare April 4, 2025 07:33
pjbgf added 2 commits April 4, 2025 08:35
Add new options to skip irrelevant devices, completely removing
the lag between query and result in computers with a large amount
of devices.

Additionally, add support for setting a matcher, so any devices
that do not match the rules are discarded and not returned.

Signed-off-by: Paulo Gomes <pjbgf@linux.com>
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
@pjbgf pjbgf merged commit 8917f7c into main Apr 4, 2025
3 checks passed
@pjbgf pjbgf deleted the hard-fork branch April 8, 2025 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants