packer

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pack

func Pack(svcName string, fn types.ServiceFunctionSource) (types.Project, error)

Pack a function to be a docker project which is web service, handle the imcome request with given function

func PackIntoDir

func PackIntoDir(lang string, source string, outputDir string) error

PackIntoDir pack service code into directory

func PackIntoTar

func PackIntoTar(lang string, source string, path string) error

PackIntoTar pack service code into directory

Types

type DockerPacker

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

DockerPacker pack a function source code to a Docker build-able project

func NewDockerPacker

func NewDockerPacker(box packr.Box) *DockerPacker

NewDockerPacker new a Docker packer

func (*DockerPacker) Pack

func (p *DockerPacker) Pack(serviceName string, fn types.ServiceFunctionSource) (types.Project, error)

Pack pack a single function source code to be project

type Packer

type Packer interface {
	Pack(serviceName string, fn types.ServiceFunctionSource) (types.Project, error)
}

Packer interface

Directories

Path Synopsis
images
go

Jump to

Keyboard shortcuts

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