Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildFileList ¶
BuildFileList uses a base path along with arrays on include and exclude globs to build a list of files which must be added to the archive
func Create ¶
func Create(path string, include []string, exclude []string, rootDir string, symlinkNodeModules bool) *bytes.Buffer
Create takes a base path, include and exclude arrays of glob patterns, a rootDir which defines a base path within the zip archive, and a boolean to indicate whether it should create a symlink from the lambada layer path to the function's node_modules path. It uses these arguments to create a list of files to be added to the archive, creates the archive, and returns it as a buffer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.