runtime

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package runtime provides interfaces for defining Lambda runtimes and appropriate shims for arbitrary language support.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompiledRuntime

type CompiledRuntime interface {
	// Build the given `target`, which should default to a language
	// specific convention such as "main.go" when zero.
	Build(target string) error

	// Clean removes the build artifacts after deployment.
	Clean() error
}

CompiledRuntime is a language runtime requiring compilation.

type Runtime

type Runtime interface {
	// Name returns the canonical runtime to be used, for example
	// since Go must be run as a shim, this is "nodejs", not "golang".
	Name() string

	// Handler returns the handler name for the runtime in the form "<file>.<func>".
	Handler() string

	// Shimmed returns true if the program should be shimmed.
	Shimmed() bool
}

Runtime is a language runtime.

func ByName

func ByName(name string) (Runtime, error)

ByName returns the runtime by `name`.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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