mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
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:
committed by
Pedro Nasser
parent
b7bf73f5d2
commit
52cab30056
@@ -29,6 +29,7 @@ type Config struct {
|
||||
AppName string
|
||||
Memory uint64
|
||||
Env map[string]string
|
||||
Input io.Reader
|
||||
Stdout io.Writer
|
||||
Stderr io.Writer
|
||||
}
|
||||
|
||||
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user