Documentation ¶
Index ¶
- Constants
- func CompressContent(content []byte) []byte
- func CompressEncodeString(content string) string
- func DecodeDecompressString(content string) (string, error)
- func DecompressContent(content []byte) ([]byte, error)
- func ExistsInTar(sourcePath string, tarReader TarReader) bool
- func GetGzipReader(reader io.Reader) (io.ReadCloser, error)
- type TarReader
Constants ¶
View Source
const ( GZipImplEnvVarKey = "GZIP_IMPLEMENTATION" GZIP = "GZip" PGZIP = "PGZip" )
Variables ¶
This section is empty.
Functions ¶
func CompressContent ¶
CompressContent will compress the byte array using zip writer
func CompressEncodeString ¶
CompressEncodeString will return the compressed string with base64 encoded
func DecodeDecompressString ¶
DecodeDecompressString will return decode and decompress the
func DecompressContent ¶
DecompressContent will return the uncompressed content
func ExistsInTar ¶
ExistsInTar return true if file or directory exists in tar
func GetGzipReader ¶ added in v3.1.0
func GetGzipReader(reader io.Reader) (io.ReadCloser, error)
GetGzipReader gets the GzipReader based on `GZipImplEnvVarKey` environment variable.
Types ¶
Click to show internal directories.
Click to hide internal directories.