gorealis-v2/docs/using-the-sample-client.md
Renán I. Del Valle 30f804bc53
Update using-the-sample-client.md
Fixing typo on doc.
2020-05-20 18:26:33 -07:00

1.2 KiB

Using the Sample client

Usage:

Usage of ./client:
  -cluster string
        Name of cluster to run job on (default "devcluster")
  -clusters string
        Location of the clusters.json file used by aurora.
  -cmd string
        Job request type to send to Aurora Scheduler
  -executor string
        Executor to use (default "thermos")
  -password string
        Password to use for authorization (default "secret")
  -updateId string
        Update ID to operate on
  -url string
        URL at which the Aurora Scheduler exists as [url]:[port]
  -username string
        Username to use for authorization (default "aurora")

Sample commands:

Thermos

Creating a Thermos job

$ go run examples/client.go -url=http://localhost:8081 -executor=thermos -cmd=create

Kill a Thermos job

$ go run examples/client.go -url=http://localhost:8081 -executor=thermos -cmd=kill

Docker Compose executor (custom executor)

Creating Docker Compose executor job

$ go run examples/client.go -url=http://192.168.33.7:8081 -executor=compose -cmd=create

Kill a Docker Compose executor job

$ go run examples/client.go -url=http://192.168.33.7:8081 -executor=compose -cmd=kill