From d03a7b61e43549e6aca0c46c0e98715e9994c101 Mon Sep 17 00:00:00 2001 From: Renan DelValle Date: Wed, 24 Jan 2018 16:54:24 -0800 Subject: [PATCH 1/4] Removing napping from the TODO list as go's native http libraries are good enough. --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 15d0031..dc8fc10 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,10 @@ library has been tested. * [Using the sample client](docs/using-the-sample-client.md) * [Leveraging the library](docs/leveraging-the-library.md) -## To Do -* Create or import a custom transport that uses https://github.com/jmcvetta/napping to improve efficiency +## Projects using gorealis + +* [australis](https://github.com/rdelval/australis) ## Contributions -Contributions are always welcome. Please raise an issue so that the contribution may be discussed before it's made. \ No newline at end of file +Contributions are always welcome. Please raise an issue to discuss a contribution before it is made. + From e6b204b9dab73c2c65d7f13e1f60df021dc0e0b8 Mon Sep 17 00:00:00 2001 From: Renan DelValle Date: Sun, 13 May 2018 18:34:34 -0700 Subject: [PATCH 2/4] Removing unnecessary space. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dc8fc10..76292af 100644 --- a/README.md +++ b/README.md @@ -17,5 +17,5 @@ library has been tested. * [australis](https://github.com/rdelval/australis) ## Contributions -Contributions are always welcome. Please raise an issue to discuss a contribution before it is made. +Contributions are always welcome. Please raise an issue to discuss a contribution before it is made. From 4f6a5e97417670590cd4747244891cafeaae6a40 Mon Sep 17 00:00:00 2001 From: Renan DelValle Date: Tue, 22 May 2018 16:56:42 -0700 Subject: [PATCH 3/4] Adding SSL flags to sample client. --- examples/client.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/examples/client.go b/examples/client.go index 7162408..b34dcd2 100644 --- a/examples/client.go +++ b/examples/client.go @@ -31,6 +31,8 @@ import ( ) var cmd, executor, url, clustersConfig, clusterName, updateId, username, password, zkUrl, hostList, role string +var caCertsPath string +var clientKey, clientCert string var CONNECTION_TIMEOUT = 20000 @@ -46,6 +48,9 @@ func init() { flag.StringVar(&zkUrl, "zkurl", "", "zookeeper url") flag.StringVar(&hostList, "hostList", "", "Comma separated list of hosts to operate on") flag.StringVar(&role, "role", "", "owner role to use") + flag.StringVar(&caCertsPath, "caCertsPath", "", "Path to CA certs on local machine.") + flag.StringVar(&clientCert, "clientCert", "", "Client certificate to use to connect to Aurora.") + flag.StringVar(&clientKey, "clientKey", "", "Client key to use to connect to Aurora.") flag.Parse() @@ -102,6 +107,10 @@ func main() { clientOptions = append(clientOptions, realis.SchedulerUrl(url)) } + if clientKey != "" || clientCert != "" || caCertsPath != "" { + clientOptions = append(clientOptions, realis.Certspath(caCertsPath), realis.ClientCerts(clientKey, clientCert)) + } + r, err = realis.NewRealisClient(clientOptions...) if err != nil { fmt.Println(err) From 5d120292272a521d44203f8e38dc135dd175eff4 Mon Sep 17 00:00:00 2001 From: Renan DelValle Date: Tue, 22 May 2018 17:00:30 -0700 Subject: [PATCH 4/4] Update PR template to hide away instructions on submission. --- .github/PULL_REQUEST_TEMPLATE.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 0445c51..797ed27 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,11 +1,14 @@ + + * Have you run goformat on the project before submitting? * Have you run go test on the project before submitting? Do all tests pass?