Commit Graph

200 Commits (c4e4f6d8203625b0ba7a5bf0b780eeceab39c528)
 

Author SHA1 Message Date
Chris Bednarski c2dc0f5272 Changed format to use byte arrays 9 years ago
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
9 years ago
Chris Bednarski a689c99cf6 Rearranged hostfile methods so they're declared before they're used, and grouped more logically 9 years ago
Chris Bednarski 2e11cd9fae Uncommented hostfile tests so we can make things work agian. 9 years ago
Chris Bednarski a79a8a0f71 User /usr/local/bin 9 years ago
Chris Bednarski 746f82d743 Added some comments so golint is happy 9 years ago
Chris Bednarski b41ceb8798 Removed even more unused code 9 years ago
Chris Bednarski 17a11828bb Deleted tons of things; also changed env HOSTESS_FILE to HOSTESS_PATH 9 years ago
Chris Bednarski 870b3f9756 Fixed some makefile issues and a golint thingy 9 years ago
Chris Bednarski ee13a9f92b Update README.md 9 years ago
Chris Bednarski dffba8fcba Tweaked some comments for godoc 9 years ago
Chris Bednarski b1645b0f35 Fixed a sort bug and added some more tests 9 years ago
Chris Bednarski bc9228e41b Should be 'complicated' 9 years ago
Chris Bednarski 6b4ffb431b In sort, skip comparing IPs if they're the same 9 years ago
Chris Bednarski ead114987d Changed Ip to IP for more consistent naming 9 years ago
Chris Bednarski 3639cfd93b More docs, fixed naming inconsistencies, moved formatting to Hostname methods 9 years ago
Chris Bednarski ebc96283b0 Clean up some golint errors 9 years ago
Chris Bednarski aa239820f5 Removed debug output 9 years ago
Chris Bednarski f2b81f9cd5 Implemented domain sorting and added doc comments to hostlist 9 years ago
Chris Bednarski 7f4f5d2b2e Changed to *V commands to switch between ipv4 and ipv6 functionality 9 years ago
Chris Bednarski 293dcf6bad Updated test name since we test both 9 years ago
Chris Bednarski d1c7217fa4 Added some tests 9 years ago
Chris Bednarski c90989dea0 Implemented remove, copied format, tests, and stubs 9 years ago
Chris Bednarski c4a1076b01 Renamed main.go to hostess.go so it will have the right name without having to use -o, more idiomatic 9 years ago
Chris Bednarski 6b38e95bba Fixed add, remove is now failing the test (as expected) 9 years ago
Chris Bednarski f5dea78ac3 Some preliminary work and a lot of commented code 9 years ago
Chris Bednarski 1fdc180a62 Added IPv6 note to readme 9 years ago
Chris Bednarski d658a40fea Moved go vet after tests have run, removed some @s 9 years ago
Chris Bednarski 1b1671fca6 Added go vet and silence most of the commands so make is less spammy 9 years ago
Chris Bednarski 4a5e6a8e3c Tweaked some names in hostlist to make implementation clearer, added todos 9 years ago
Chris Bednarski 7a5ed98976 Added tests for Equal() EqualIp() and IsValid() 9 years ago
Chris Bednarski 3f456113bc Added Hostname.Equal() .EqualIp() and .IsValid()
IsValid provides error-checking in a non-intrusive way
9 years ago
Chris Bednarski 9e82a4a331 Changed interface to NewHostname not to return error
This is more succinct for most uses.
9 years ago
Chris Bednarski ac2093932c Changed ip from string to net.IP and changed hostnames to pointers 9 years ago
Chris Bednarski 896bc7deb0 Moved TrimWS to where it's used 9 years ago
Chris Bednarski 8632ff2f9a Moved other hostname test to hostname_test 9 years ago
Chris Bednarski 5d8bcfff3a Separated some tests from the hostfile_test file 9 years ago
Chris Bednarski b78c4b29ce Changed test to be in hostess_test package and updated tests to use public interface 9 years ago
Chris Bednarski e036b319cb Added make clean 9 years ago
Chris Bednarski 3863a6ed21 Renamed hostess_test to hostfile_test so we can separate some of the tests 9 years ago
Chris Bednarski fcbebef177 Fixed gox builds 9 years ago
Chris Bednarski c3b108ea9e Moved contents of lib back to the root 9 years ago
Chris Bednarski 31fcc2ebb1 Fix ignore file 9 years ago
Chris Bednarski 44c76a91fd Moved main to cmd/hostess 9 years ago
Chris Bednarski d4c77d1a4b Separated hostname, hostfile, and hostlist 9 years ago
Chris Bednarski f10f823044 Whitespace 9 years ago
Chris Bednarski 74812b4a49 Added coverage to deps 9 years ago
Chris Bednarski 598bfb7ecb Added gox build 9 years ago
Chris Bednarski 64caf045bc Rearranged the package so go install will install the binary instead of some random crap 9 years ago
Chris Bednarski 72c72f33fe Update the makefile to look for the right file 9 years ago