Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Pack ¶
Pack a function to be a docker project which is web service, handle the imcome request with given function
func PackIntoDir ¶
PackIntoDir 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
Click to show internal directories.
Click to hide internal directories.