towerops/lib/snmpkit/snmp_lib
Graham McIntire efaf5558ff refactor: convert 6 Gleam modules to idiomatic Elixir with TDD (#196)
Phase 1: Foundation Types (100% complete)
- query_helpers: SQL LIKE sanitization with pipe operators
- numeric: Integer parsing with pattern matching guards
- result: Pure Elixir Result monad (map, and_then, unwrap_or)

Phase 2: Ecto Domain Types (100% complete)
- ip_address: IPv4/IPv6 validation using :inet directly
- mac_address: Multi-format MAC parsing (colon/hyphen/dot/compact)
- snmp_oid: OID parsing/manipulation with recursive pattern matching

All 198 tests passing across converted modules.
API changed from Gleam-style {:some/:none to idiomatic {:ok/:error.
Refactored parse_numeric_oid to use with statement, reducing nesting depth.

Reviewed-on: graham/towerops-web#196
2026-03-28 09:52:07 -05:00
..
mib chore: remove sobelow dependency 2026-03-12 16:03:08 -05:00
pdu refactor: convert 6 Gleam modules to idiomatic Elixir with TDD (#196) 2026-03-28 09:52:07 -05:00
security fix/security-and-quality-issues (#136) 2026-03-24 08:06:29 -05:00
asn1.ex credo fixes 2026-01-23 16:49:02 -06:00
cache.ex chore: remove sobelow dependency 2026-03-12 16:03:08 -05:00
config.ex Fix Mix.env() runtime crash in releases 2026-02-15 17:16:48 -06:00
dashboard.ex nif ci fixes and dialyzer fixes 2026-01-30 12:38:50 -06:00
error.ex refactor: convert 6 Gleam modules to idiomatic Elixir with TDD (#196) 2026-03-28 09:52:07 -05:00
error_handler.ex nif ci fixes and dialyzer fixes 2026-01-30 12:38:50 -06:00
host_parser.ex credo fixes 2026-01-27 09:12:22 -06:00
manager.ex feat: implement batched SNMP GET for multi-OID requests (#183) 2026-03-26 16:37:34 -05:00
mib.ex bring in snmpkit 2026-01-23 12:52:17 -06:00
monitor.ex credo fixes 2026-01-23 16:49:02 -06:00
oid.ex refactor: convert 6 Gleam modules to idiomatic Elixir with TDD (#196) 2026-03-28 09:52:07 -05:00
pdu.ex nif ci fixes and dialyzer fixes 2026-01-30 12:38:50 -06:00
pool.ex credo fixes 2026-01-23 16:49:02 -06:00
security.ex credo improvements 2026-01-23 13:40:49 -06:00
transport.ex snmpkit overhaul and etcd 2026-01-23 16:23:57 -06:00
types.ex refactor: convert 6 Gleam modules to idiomatic Elixir with TDD (#196) 2026-03-28 09:52:07 -05:00
utils.ex refactor: convert 6 Gleam modules to idiomatic Elixir with TDD (#196) 2026-03-28 09:52:07 -05:00
walker.ex snmpkit overhaul and etcd 2026-01-23 16:23:57 -06:00