Documentation ¶
Index ¶
- Constants
- func BuildImage(image string, handler string, functionName string, language string, ...) error
- func CopyFiles(src, dest string) error
- func ExecCommand(tempPath string, builder []string)
- func ExecCommandWithOutput(builder []string, skipFailure bool) string
- func GetGitBranch() string
- func GetGitSHA() string
Constants ¶
View Source
const AdditionalPackageBuildArg = "ADDITIONAL_PACKAGE"
AdditionalPackageBuildArg holds the special build-arg keyname for use with build-opts. Can also be passed as a build arg hence needs to be accessed from commands
Variables ¶
This section is empty.
Functions ¶
func BuildImage ¶
func BuildImage(image string, handler string, functionName string, language string, nocache bool, squash bool, shrinkwrap bool, buildArgMap map[string]string, buildOptions []string, tag string) error
BuildImage construct Docker image from function parameters
func ExecCommand ¶
ExecCommand run a system command
func ExecCommandWithOutput ¶
ExecCommand run a system command an return stdout
func GetGitBranch ¶
func GetGitBranch() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.