f53c153fa9
pkg/stringutil: add tests
...
For later "runner" cleanup
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-08 14:18:09 -07:00
72ba5572a2
pkg/proxy: godoc package
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-05 12:57:44 -07:00
7f812ca8e1
pkg/proxy: move from "pkg/transport"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-05 11:06:30 -07:00
322437f47d
pkg/transport: log tlsutil.NewCert errors
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-02 13:42:09 -07:00
d44332daa9
proxy: clean up logging
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-03-30 11:25:23 -07:00
089e8ffecb
pkg/flags: fix "Set"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-03-27 06:25:44 -07:00
7195bb7ced
pkg/cors: remove
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-03-27 06:25:44 -07:00
b426217907
pkg/flags: add "UniqueURLs", "UniqueStrings"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
iii
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-03-27 06:25:44 -07:00
759fcb6e70
pkg/transport: deprecate "CAFile" field
...
Has been deprecated since v2.1...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-03-20 15:38:05 -07:00
1640cdb044
pkg/flags: clean up, add "SelectiveStringsValue"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-03-19 02:23:06 -07:00
1e94968ffa
pkg/flags: support empty URLs string in NewURLsValue
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-03-15 01:18:57 -04:00
5e9d4652e0
pkg/flags: add "StringSliceFromFlag"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-03-14 21:32:24 -04:00
9e7ef79c26
pkg/flags: add "StringSlice"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-03-14 21:27:17 -04:00
ab4d888e1f
pkg/logutil: fix example
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-03-07 13:11:34 -08:00
82ee796aa4
pkg/logutil: move "pkg/logger" to "logutil"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-03-07 10:45:29 -08:00
748ab8c398
pkg/flags: fatal on conflicting environment variable
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-03-02 10:36:59 -08:00
418bb92963
pkg/httputil: add "GetHostname"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-02-28 17:27:40 -08:00
811566f2f2
*: fix "v2store" imports
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-02-26 17:11:40 -08:00
0e12e888e0
*: move "internal/store" to "etcdserver/v2store"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-02-26 17:11:40 -08:00
8bf0c43b73
Merge pull request #9267 from gyuho/member-add-test
...
snapshot: fix "TestSnapshotV3RestoreMultiMemberAdd"
2018-02-26 10:08:49 -08:00
3bd0114c50
Merge pull request #9081 from gyuho/network-fault-test-with-proxy
...
*: run network fault tests with proxy
2018-02-06 09:51:34 -08:00
aba719e4c2
pkg/logger: add "Lvl" to "Logger"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-02-05 13:40:51 -08:00
71824474df
snapshot: fix "TestSnapshotV3RestoreMultiMemberAdd"
...
Membership reconfiguration may not be applied
when the new member joins. Also pass all endpoints
to check restore data in case of leader election or
network faults.
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-02-05 13:08:24 -08:00
880835c02c
*: move "store" to "internal/store"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-26 11:06:22 -08:00
e1de74913d
pkg/netutil: return error from "URLStringsEqual"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-25 11:22:07 -08:00
ab486e5348
pkg/transport: implement "Proxy"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-24 17:37:09 -08:00
114a7779c9
pkg/transport: add "fixtures" for TLS tests
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-24 17:37:09 -08:00
b664b9176c
pkg/srv, embed, etcdmain: Support multiple clusters in the same DNS discovery region.
2018-01-24 20:15:48 +00:00
7eb0523bd2
pkg/testutil: define "RequestTimeout"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-23 13:13:00 -08:00
0e43d84f14
pkg/logger: type-assert in global-scope
...
Rather than asserting inside functions.
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-22 14:50:46 -08:00
cb0290e782
pkg/logger: initial commit
...
Later to be used with "snapshot" and "clientv3" packages.
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-22 13:52:06 -08:00
b2a15ec327
pkg/expect: fix deadlock in mac OS
...
bufio.NewReader.ReadString blocks even
when the process received syscall.SIGKILL.
Remove ptyMu mutex and make ReadString return
when *os.File is closed.
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-01-01 17:34:59 -08:00
962976f2df
pkg/fileutil: fix preallocate under OS X kernel
...
ftruncate changes st_blocks, and following fallocate
syscalls would return EINVAL when allocated block size
is already greater than requested block size
(e.g. st_blocks==8, requested blocks are 2).
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-12-14 10:36:57 -08:00
965d9806d5
pkg/flags: fix "SetFlagsFromEnv" error masking
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-11-27 06:41:43 -08:00
75110dd839
*: fix naked returns
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-11-10 18:46:15 -08:00
a9996f8768
test: Deflake TestV3LeasePrmote integration test
2017-10-26 16:58:37 -07:00
1f2197b1f8
pkg/transport: add TODO to deprecate 'CAFile' field in v4
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-10-04 14:01:01 -07:00
70018e9207
etcdmain, pkg: CN based auth for inter peer connection
...
This commit adds an authentication mechanism to inter peer connection
(rafthttp). If the cert based peer auth is enabled and a new option
`--peer-cert-allowed-cn` is passed, an etcd process denies a peer
connection whose CN doesn't match.
2017-10-02 15:59:17 +09:00
4fa1dd196c
*: make receiver names consistent
2017-09-12 03:54:04 -07:00
6e39a39e3a
Merge pull request #8511 from gyuho/ctx
...
*: deprecate 'golang.org/x/net/context'
2017-09-07 18:07:57 -07:00
f65aee0759
*: replace 'golang.org/x/net/context' with 'context'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com >
2017-09-07 13:39:42 -07:00
63aa64d240
lease: use monotime in time.Time for Go 1.9
...
The golang/time package tracks monotonic time in each time.Time
returned by time.Now function for Go 1.9.
Use time.Time to measure whether a lease is expired and remove
previous pkg/monotime. Use zero time.Time to mean forever. No
expiration when expiry.IsZero() is true.
2017-09-07 14:18:19 +08:00
492bbc9659
netutil: test schemes for URLStringsEqual
...
add tests for http/https mismatch and unix scheme
2017-08-31 12:41:05 -07:00
7d4a8a6935
Merge pull request #8466 from heyitsanthony/tls-srv-mismatch
...
srv: if a host matches a peer, only use if url schemes match
2017-08-30 10:42:20 -07:00
cd772ea737
pkg/pbutil: Fix go vet errors
2017-08-30 20:07:14 +05:30
a671703c08
srv: if a host matches a peer, only use if url schemes match
...
The https scheme for a peer advertise URL was ignored when resolving through
SRV records.
2017-08-29 23:29:56 -07:00
9b92e1b2d0
flag: improve StringFlags by support set default value when init ( #8447 )
...
* flag: improve StringFlags by support set default value when init
when init flagSet, set default value should be moved to StringFlags init
func, which is more friendly
personal proposal
* flag: code improved for StringFlags
2017-08-28 00:02:11 -07:00
54fcdb4b5c
pkg/wait: change list's lock to RWMutex
...
Change list's lock from Mutex to RWMutex, which allows concurrent
access for list.IsRegistered function.
2017-08-27 18:23:18 +08:00
67d932154c
testutil: don't panic on AssertNil on non-nil errors
2017-08-23 14:26:03 -07:00
6464574952
netutil: don't resolve unix socket URLs when comparing URLs
...
Was causing VerifyBootstrap() to hang on unix peers.
2017-08-17 19:58:24 -07:00