function_common

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DockerFunctionDIR string = "app"

DockerFunctionDIR dir which function is locted

Variables

This section is empty.

Functions

func CopyArtifactSourceToTarget

func CopyArtifactSourceToTarget(
	functionArtifact multipart.File,
	targetFunctionArtifactPath string) error

func CreateHandlerTar

func CreateHandlerTar(artifactPath string, targetArtifactPath string) error

copy original artifact into funtionDir and compress it as .tar

func GetDockerFilePath

func GetDockerFilePath(functionID string) string

func GetDockerFunctionDir

func GetDockerFunctionDir() string

Dir inside docker container

func GetFunctionDir

func GetFunctionDir(functionID string) string

GetFunctionDir get function artifact creating location

func PrepareBuildContextLocation

func PrepareBuildContextLocation(functionID string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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