Merge pull request #38 from paypal/newAddress

Out with the old (address) in with the new (address)
This commit is contained in:
Renan DelValle 2017-10-13 00:17:59 -07:00 committed by GitHub
commit 23430cbf30
13 changed files with 26 additions and 26 deletions

View file

@ -1,4 +1,4 @@
# gorealis [![GoDoc](https://godoc.org/github.com/rdelval/gorealis?status.svg)](https://godoc.org/github.com/rdelval/gorealis)
# gorealis [![GoDoc](https://godoc.org/github.com/paypal/gorealis?status.svg)](https://godoc.org/github.com/paypal/gorealis)
Go library for interacting with [Apache Aurora](https://github.com/apache/aurora).

View file

@ -15,7 +15,7 @@
package realis
import (
"github.com/rdelval/gorealis/gen-go/apache/aurora"
"github.com/paypal/gorealis/gen-go/apache/aurora"
)
type Container interface {

View file

@ -93,7 +93,7 @@ $ sudo service aurora-scheduler restart
### Using a custom client
Pystachio does yet support launching tasks using custom executors. Therefore, a custom
client must be used in order to launch tasks using a custom executor. In this case,
we will be using [gorealis](https://github.com/rdelval/gorealis) to launch a task with
we will be using [gorealis](https://github.com/paypal/gorealis) to launch a task with
the compose executor on Aurora.
## Configuring the system to run a custom client and docker-compose executor
@ -179,7 +179,7 @@ $ sudo pip install docker-compose
Finally, we must get `gorealis` using the `go get` command:
```
go get github.com/rdelval/gorealis
go get github.com/paypal/gorealis
```
# Creating Aurora Jobs
@ -248,7 +248,7 @@ job = realis.NewJob().
Using a vagrant setup as an example, we can run the following command to create a compose job:
```
go run $GOPATH/src/github.com/rdelval/gorealis/examples/client.go -executor=compose -url=http://192.168.33.7:8081 -cmd=create
go run $GOPATH/src/github.com/paypal/gorealis/examples/client.go -executor=compose -url=http://192.168.33.7:8081 -cmd=create
```
If everything went according to plan, a new job will be shown in the Aurora UI.
@ -290,7 +290,7 @@ job = realis.NewJob().
Using a vagrant setup as an example, we can run the following command to create a Thermos job:
```
$ cd $GOPATH/src/github.com/rdelval/gorealis
$ cd $GOPATH/src/github.com/paypal/gorealis
$ go run examples/client.go -executor=thermos -url=http://192.168.33.7:8081 -cmd=create -executor=thermos
```
@ -310,6 +310,6 @@ $ aurora job killall devcluster/vagrant/prod/docker-compose
## Using gorealis
```
$ go run $GOPATH/src/github.com/rdelval/gorealis/examples/client.go -executor=compose -url=http://192.168.33.7:8081 -cmd=kill
$ go run $GOPATH/src/github.com/rdelval/gorealis/examples/client.go -executor=thermos -url=http://192.168.33.7:8081 -cmd=kill
$ go run $GOPATH/src/github.com/paypal/gorealis/examples/client.go -executor=compose -url=http://192.168.33.7:8081 -cmd=kill
$ go run $GOPATH/src/github.com/paypal/gorealis/examples/client.go -executor=thermos -url=http://192.168.33.7:8081 -cmd=kill
```

View file

@ -1,6 +1,6 @@
# How to leverage the library (based on the [sample client](../examples/client.go))
For a more complete look at the API, please visit https://godoc.org/github.com/rdelval/gorealis
For a more complete look at the API, please visit https://godoc.org/github.com/paypal/gorealis
* Create a default configuration file (alternatively, manually create your own Config):
```

View file

@ -29,21 +29,21 @@ executor examples, the vagrant box must be configured properly to use the docker
#### Creating a Thermos job
```
$ cd $GOPATH/src/github.com/rdelval/gorealis/examples
$ cd $GOPATH/src/github.com/paypal/gorealis/examples
$ go run client.go -executor=thermos -url=http://192.168.33.7:8081 -cmd=create
```
#### Kill a Thermos job
```
$ go run $GOPATH/src/github.com/rdelval/gorealis.git/examples/client.go -executor=thermos -url=http://192.168.33.7:8081 -cmd=kill
$ go run $GOPATH/src/github.com/paypal/gorealis/examples/client.go -executor=thermos -url=http://192.168.33.7:8081 -cmd=kill
```
### Docker Compose executor (custom executor)
#### Creating Docker Compose executor job
```
$ go run $GOPATH/src/github.com/rdelval/gorealis/examples/client.go -executor=compose -url=http://192.168.33.7:8081 -cmd=create
$ go run $GOPATH/src/github.com/paypal/gorealis/examples/client.go -executor=compose -url=http://192.168.33.7:8081 -cmd=create
```
#### Kill a Docker Compose executor job
```
$ go run $GOPATH/src/github.com/rdelval/gorealis/examples/client.go -executor=compose -url=http://192.168.33.7:8081 -cmd=kill
$ go run $GOPATH/src/github.com/paypal/gorealis/examples/client.go -executor=compose -url=http://192.168.33.7:8081 -cmd=kill
```

View file

@ -22,9 +22,9 @@ import (
"time"
"github.com/rdelval/gorealis"
"github.com/rdelval/gorealis/gen-go/apache/aurora"
"github.com/rdelval/gorealis/response"
"github.com/paypal/gorealis"
"github.com/paypal/gorealis/gen-go/apache/aurora"
"github.com/paypal/gorealis/response"
"strings"
)

View file

@ -18,7 +18,7 @@ import (
"encoding/json"
"flag"
"fmt"
"github.com/rdelval/gorealis"
"github.com/paypal/gorealis"
"os"
)

2
job.go
View file

@ -15,7 +15,7 @@
package realis
import (
"github.com/rdelval/gorealis/gen-go/apache/aurora"
"github.com/paypal/gorealis/gen-go/apache/aurora"
"strconv"
)

View file

@ -20,8 +20,8 @@ import (
"time"
"github.com/pkg/errors"
"github.com/rdelval/gorealis/gen-go/apache/aurora"
"github.com/rdelval/gorealis/response"
"github.com/paypal/gorealis/gen-go/apache/aurora"
"github.com/paypal/gorealis/response"
)
const (

View file

@ -27,8 +27,8 @@ import (
"git.apache.org/thrift.git/lib/go/thrift"
"github.com/pkg/errors"
"github.com/rdelval/gorealis/gen-go/apache/aurora"
"github.com/rdelval/gorealis/response"
"github.com/paypal/gorealis/gen-go/apache/aurora"
"github.com/paypal/gorealis/response"
)
const VERSION = "1.0.4"

View file

@ -16,8 +16,8 @@ package realis_test
import (
"fmt"
"github.com/rdelval/gorealis"
"github.com/rdelval/gorealis/gen-go/apache/aurora"
"github.com/paypal/gorealis"
"github.com/paypal/gorealis/gen-go/apache/aurora"
"github.com/stretchr/testify/assert"
"io/ioutil"
"os"

View file

@ -19,7 +19,7 @@ import (
"bytes"
"github.com/pkg/errors"
"github.com/rdelval/gorealis/gen-go/apache/aurora"
"github.com/paypal/gorealis/gen-go/apache/aurora"
)
// Get key from a response created by a StartJobUpdate call

View file

@ -15,7 +15,7 @@
package realis
import (
"github.com/rdelval/gorealis/gen-go/apache/aurora"
"github.com/paypal/gorealis/gen-go/apache/aurora"
)
// Structure to collect all information required to create job update