Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Name is a short, human friendly name for the node invoker Name = "node" // Dependency is a key identifying the node invoker dependency in the build plan. Dependency = "riff-invoker-node" // functionArtifact is a key identifying the path to the function entrypoint in the build plan. FunctionArtifact = "fn" )
Variables ¶
This section is empty.
Functions ¶
func BuildPlanContribution ¶
func NewBuildpack ¶
Types ¶
type NodeBuildpack ¶
type NodeBuildpack struct {
// contains filtered or unexported fields
}
func (*NodeBuildpack) Id ¶
func (bp *NodeBuildpack) Id() string
type RiffNodeInvoker ¶
type RiffNodeInvoker struct {
// contains filtered or unexported fields
}
RiffNodeInvoker represents the Node invoker contributed by the buildpack.
func NewNodeInvoker ¶
func NewNodeInvoker(build build.Build) (RiffNodeInvoker, bool, error)
func (RiffNodeInvoker) Contribute ¶
func (r RiffNodeInvoker) Contribute() error
Contribute expands the node invoker tgz and creates launch configurations that run "node server.js"
Click to show internal directories.
Click to hide internal directories.