Change PAYLOAD input to STDIN (#111)

* change to iron-io/runner dependency
* Fix runner dependency
* Change PAYLOAD input to STDIN, fixes #40
This commit is contained in:
Seif Lotfy سيف لطفي
2016-10-06 23:44:58 +02:00
committed by Pedro Nasser
parent b7bf73f5d2
commit 52cab30056
11 changed files with 39 additions and 49 deletions

View File

@@ -29,6 +29,7 @@ type Config struct {
AppName string
Memory uint64
Env map[string]string
Input io.Reader
Stdout io.Writer
Stderr io.Writer
}

View File

@@ -21,6 +21,9 @@ func (t *containerTask) Command() string { return "" }
func (t *containerTask) EnvVars() map[string]string {
return t.cfg.Env
}
func (t *containerTask) Input() io.Reader {
return t.cfg.Input
}
func (t *containerTask) Labels() map[string]string {
return map[string]string{