Added a new username and password field. Reworded some of the -h messages
This commit is contained in:
parent
c3a29f4940
commit
0e6166b104
1 changed files with 7 additions and 5 deletions
|
@ -25,10 +25,12 @@ import (
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
cmd := flag.String("cmd", "", "Action to execute on Apache Aurora Sched")
|
cmd := flag.String("cmd", "", "Job request type to send to Aurora Scheduler")
|
||||||
executor := flag.String("executor", "thermos", "Executor to use, thermos by default")
|
executor := flag.String("executor", "thermos", "Executor to use")
|
||||||
url := flag.String("url", "", "URL at which the Apache Aurora Scheduler exists [url]:[port]")
|
url := flag.String("url", "", "URL at which the Aurora Scheduler exists as [url]:[port]")
|
||||||
updateId := flag.String("updateId", "", "Update ID to operate on")
|
updateId := flag.String("updateId", "", "Update ID to operate on")
|
||||||
|
username := flag.String("username", "aurora", "Username to use for authorization")
|
||||||
|
password := flag.String("password", "secret", "Password to use for authorization")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
//Create new configuration with default transport layer
|
//Create new configuration with default transport layer
|
||||||
|
@ -38,8 +40,8 @@ func main() {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Needed for authorization for Vagrant
|
// Configured for vagrant
|
||||||
realis.AddBasicAuth(&config, "aurora", "secret")
|
realis.AddBasicAuth(&config, *username, *password)
|
||||||
r := realis.NewClient(config)
|
r := realis.NewClient(config)
|
||||||
defer r.Close()
|
defer r.Close()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue