node

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 BuildPlanContribution(d detect.Detect, m function.Metadata) buildplan.Plan

func DetectNode

func DetectNode(d detect.Detect) (bool, error)

func NewBuildpack

func NewBuildpack() function.Buildpack

Types

type NodeBuildpack

type NodeBuildpack struct {
	// contains filtered or unexported fields
}

func (*NodeBuildpack) Build

func (*NodeBuildpack) Build(b build.Build) error

func (*NodeBuildpack) Detect

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"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL