package
7.17.28
Repository: https://github.com/elastic/beats.git
Documentation: pkg.go.dev

# Functions

Folder returns a list of files in a folder.
NewZipWithLimits creates a Bundle that impose limit for the uncompressed data and the compressed data, using a limit of -1 with desactivate the check.
NewZipWithoutLimits creates a bundle that doesn't impose any limit on the uncompressed data and the compressed data.
ReadCloserWith takes a reader and a closer for the specific reader and return an io.ReaderCloser.

# Structs

LocalFile represents a local file on disk.
MemoryFile an in-memory representation of a physical file.
ReadCloser wraps a io.Reader and a file handle into a FileReadCloser interface, this leave the responsability on the consumer to close the handle when its done consuming the io.Reader.
RelativeFile is a Localfile which needs to be placed relatively in the root of the bundle.
ZipBundle accepts a set of local files to bundle them into a zip file, it also accept size limits for the uncompressed and the compressed data.

# Interfaces

Resource is the interface used to bundle the resource, a resource can be a local or a remote file.