{"modulePath":"github.com/heroku/node-function-buildpack","version":"v0.7.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package node\n\n## Constants\n\n```go\nconst (\n\t// Name is a short, human friendly name for the node invoker\n\tName = \"node\"\n\n\t// Dependency is a key identifying the node invoker dependency in the build plan.\n\tDependency = \"riff-invoker-node\"\n\n\t// functionArtifact is a key identifying the path to the function entrypoint in the build plan.\n\tFunctionArtifact = \"fn\"\n)\n```\n\n## Functions\n\n```go\nfunc BuildPlanContribution(d detect.Detect, m function.Metadata) buildplan.Plan\n```\n\n```go\nfunc DetectNode(d detect.Detect) (bool, error)\n```\n\n```go\nfunc NewBuildpack() function.Buildpack\n```\n\n## Types\n\n```go\ntype NodeBuildpack struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*NodeBuildpack) Build(b build.Build) error\n```\n\n```go\nfunc (bp *NodeBuildpack) Detect(d detect.Detect, m function.Metadata) (*buildplan.Plan, error)\n```\n\n```go\nfunc (bp *NodeBuildpack) Id() string\n```\n\n```go\ntype RiffNodeInvoker struct {\n\t// contains filtered or unexported fields\n}\n```\nRiffNodeInvoker represents the Node invoker contributed by the buildpack.\n\n```go\nfunc NewNodeInvoker(build build.Build) (RiffNodeInvoker, bool, error)\n```\n\n```go\nfunc (r RiffNodeInvoker) Contribute() error\n```\nContribute expands the node invoker tgz and creates launch configurations that run \"node server.js\"\n\n","path":"github.com/heroku/node-function-buildpack/node","name":"node","synopsis":"","isRedistributable":true}
