Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CompNone = enrollComp("none") CompZip = enrollComp("zip") Comp7Z = enrollComp("7z") CompSnappy = enrollComp("snappy") CompS2 = enrollComp("s2") CompGzip = enrollComp("gzip") CompPgZip = enrollComp("pgzip") CompZStd = enrollComp("zstd") CompZLib = enrollComp("zlib") CompFlate = enrollComp("flate") LevelStore = enrollLevel("store") LevelDeflate = enrollLevel("deflate") EncryptAES128 = enrollEncrypt("aes-128") EncryptAES192 = enrollEncrypt("aes-192") EncryptAES256 = enrollEncrypt("aes-256") )
Functions ¶
func UnCompressGzip ¶
UnCompressGzip un-compress using Gzip
Types ¶
type BufferCompress ¶
type BufferCompress struct {
// contains filtered or unexported fields
}
func NewBufferCompress ¶
type CompFile ¶
type CompFile struct {
// contains filtered or unexported fields
}
func NewCompFile ¶
func NewCompFile(filename string, compAlgo Comp, password string, param *CompParam) (*CompFile, error)
NewCompFile open/create compressed file.
func (*CompFile) AddFile ¶
func (cf *CompFile) AddFile(filenameInsideZip string, encrypt Encrypt, level Level) (gio.WriteFlushCloser, error)
AddFile adds new file into zip file.
type CompReadWriteCloser ¶
type CompReadWriteCloser struct {
// contains filtered or unexported fields
}
CompReadWriteCloser implements io.ReadWriteCloser
func NewCompReadWriteCloser ¶
func NewCompReadWriteCloser(compAlgo Comp, param *CompParam, rwc io.ReadWriteCloser) (*CompReadWriteCloser, error)
NewCompReadWriteCloser create compress-orient ReadWriteCloser.
func (*CompReadWriteCloser) Close ¶
func (c *CompReadWriteCloser) Close() error
Close implements io.ReadWriteCloser.
Click to show internal directories.
Click to hide internal directories.