frontends

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseFrontEnd

type BaseFrontEnd struct {
	Name       string
	OlDir      string
	ProjectDir string
}

func (*BaseFrontEnd) FrontEndName

func (bf *BaseFrontEnd) FrontEndName() string

func (*BaseFrontEnd) GetId

func (fe *BaseFrontEnd) GetId(p string) (id string, err error)

Returns the ID for a given lambda path Id's are used to identify an individual lambda throughout the system Docker image tags are an example use of Id's

Given 'hello/my/name.go' Returns 'hello-my-name'

func (*BaseFrontEnd) OlDirLocation

func (bf *BaseFrontEnd) OlDirLocation() string

func (*BaseFrontEnd) ProjectDirLocation

func (bf *BaseFrontEnd) ProjectDirLocation() string

type FrontEnd

type FrontEnd interface {

	// Adds a template lambda at <location>
	// Must be provided by frontend
	AddLambda(location string)

	// Builds lambda at <path>
	// Must be provided by frontend
	BuildLambda(path string)

	// Returns the ID for a given lambda path
	// Id's are used to identify an individual lambda throughout the system
	// Docker image tags are an example use of Id's
	// Implemented in base.go, override only if needed
	GetId(path string) (string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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