Added Lambda Node support as part of the regular functions workflow. (#601)

* Added Lambda Node support as part of the regular functions workflow.

* Fixes for PR comments.
This commit is contained in:
Travis Reeder
2017-03-22 13:41:27 -07:00
committed by Seif Lotfy سيف لطفي
parent 0492ca5dfb
commit ca18ae88fa
27 changed files with 591 additions and 137 deletions

26
fn/langs/lambda_node.go Normal file
View File

@@ -0,0 +1,26 @@
package langs
type LambdaNodeHelper struct {
BaseHelper
}
func (lh *LambdaNodeHelper) Entrypoint() string {
return ""
}
func (lh *LambdaNodeHelper) Cmd() string {
return "func.handler"
}
func (lh *LambdaNodeHelper) HasPreBuild() bool {
return false
}
// PreBuild for Go builds the binary so the final image can be as small as possible
func (lh *LambdaNodeHelper) PreBuild() error {
return nil
}
func (lh *LambdaNodeHelper) AfterBuild() error {
return nil
}