Chris Bednarski
|
62e9ec8f9a
|
Changed 'data' to 'jsonbytes'
|
2015-05-25 14:03:48 -07:00 |
|
Chris Bednarski
|
8eb33b712c
|
Added dump and apply commands to provide JSON I/O
|
2015-05-25 10:22:23 -07:00 |
|
Chris Bednarski
|
9b4e4ba985
|
Enable and disable return true / false if they did something
|
2015-03-28 21:37:56 -07:00 |
|
Chris Bednarski
|
d840489baa
|
Fix implementation for ls
|
2015-03-22 01:42:08 -07:00 |
|
Chris Bednarski
|
4975a4ac17
|
Remove returns the number of items it acted upon
|
2015-03-22 00:37:18 -07:00 |
|
Chris Bednarski
|
9ff5aa8d6a
|
Added tests for and fixed implementation for Add behavior with dupes and conflicts
|
2015-03-22 00:28:16 -07:00 |
|
Chris Bednarski
|
d6f1220a40
|
Implemented a real Format call, and GetUniqueIPs to help
|
2015-03-21 23:57:55 -07:00 |
|
Chris Bednarski
|
9aebb4b8ff
|
Fixed sorting so we can push 127 to the top the list
|
2015-03-21 20:31:01 -07:00 |
|
Chris Bednarski
|
1377ff4274
|
Added MakeSurrogateIP to help with sorting
|
2015-03-21 18:11:09 -07:00 |
|
Chris Bednarski
|
84a954d8bd
|
Renamed a bunch of variables in Less so they're easier to follow in the code
|
2015-03-21 17:43:27 -07:00 |
|
Chris Bednarski
|
c2dc0f5272
|
Changed format to use byte arrays
|
2015-03-21 17:18:54 -07:00 |
|
Chris Bednarski
|
60c5e85bc5
|
Added filter functions
- Filter by IP
- Filter by Domain
- Filter by Domain and IPv4/6
- Also move GetHostsPath to NewHostfile
- Also Removed a bunch of bad tests
|
2015-03-21 17:07:58 -07:00 |
|
Chris Bednarski
|
2e11cd9fae
|
Uncommented hostfile tests so we can make things work agian.
|
2015-03-21 03:59:53 -07:00 |
|
Chris Bednarski
|
dffba8fcba
|
Tweaked some comments for godoc
|
2015-03-02 02:20:34 -08:00 |
|
Chris Bednarski
|
b1645b0f35
|
Fixed a sort bug and added some more tests
|
2015-03-02 01:46:12 -08:00 |
|
Chris Bednarski
|
bc9228e41b
|
Should be 'complicated'
|
2015-03-02 01:29:08 -08:00 |
|
Chris Bednarski
|
6b4ffb431b
|
In sort, skip comparing IPs if they're the same
|
2015-03-02 01:28:10 -08:00 |
|
Chris Bednarski
|
3639cfd93b
|
More docs, fixed naming inconsistencies, moved formatting to Hostname methods
|
2015-03-02 00:55:34 -08:00 |
|
Chris Bednarski
|
ebc96283b0
|
Clean up some golint errors
|
2015-03-02 00:22:05 -08:00 |
|
Chris Bednarski
|
aa239820f5
|
Removed debug output
|
2015-03-01 23:17:00 -08:00 |
|
Chris Bednarski
|
f2b81f9cd5
|
Implemented domain sorting and added doc comments to hostlist
|
2015-03-01 23:15:02 -08:00 |
|
Chris Bednarski
|
7f4f5d2b2e
|
Changed to *V commands to switch between ipv4 and ipv6 functionality
|
2015-03-01 21:54:51 -08:00 |
|
Chris Bednarski
|
c90989dea0
|
Implemented remove, copied format, tests, and stubs
|
2015-03-01 18:10:01 -08:00 |
|
Chris Bednarski
|
6b38e95bba
|
Fixed add, remove is now failing the test (as expected)
|
2015-02-25 02:37:57 -08:00 |
|
Chris Bednarski
|
f5dea78ac3
|
Some preliminary work and a lot of commented code
|
2015-02-25 02:33:18 -08:00 |
|
Chris Bednarski
|
4a5e6a8e3c
|
Tweaked some names in hostlist to make implementation clearer, added todos
|
2015-02-24 23:08:53 -08:00 |
|
Chris Bednarski
|
ac2093932c
|
Changed ip from string to net.IP and changed hostnames to pointers
|
2015-02-24 04:17:31 -08:00 |
|
Chris Bednarski
|
c3b108ea9e
|
Moved contents of lib back to the root
|
2015-02-24 01:00:01 -08:00 |
|