zip

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildFileList

func BuildFileList(path string, include []string, exclude []string) []string

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.

Jump to

Keyboard shortcuts

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