Documentation ¶
Index ¶
- Constants
- type HashFD
- type Packer
- type PortableExecutablePacker
- type RespondWriter
- type TargzPacker
- type ZipPacker
- func (zp *ZipPacker) AddFile(src, nameInArchive string) error
- func (zp *ZipPacker) AddFileEx(src, nameInArchive string, exerights bool) error
- func (zp *ZipPacker) AddTargetLink(nameInArchive, linkName string) error
- func (zp *ZipPacker) Close() error
- func (zp *ZipPacker) SetComment(comment string) error
Constants ¶
View Source
const ( Store uint16 = 0 // no compression Deflate uint16 = 8 // DEFLATE compressed BZIP2 uint16 = 12 // bzip2 LZMA uint16 = 14 //LZMA ZSTD uint16 = 93 //see https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT. XZ uint16 = 95 //XZ BROTLI uint16 = 121 // private )
Compression methods.
View Source
const (
RespondName = "bali_post_install.sh"
)
RespondName
View Source
const (
TarISVTX = 01000
)
ISVTX todo
View Source
const (
ZipISVTX = 0x200
)
Zip
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Packer ¶
type Packer interface { Close() error AddFileEx(src, nameInArchive string, exerights bool) error AddFile(src, nameInArchive string) error AddTargetLink(nameInArchive, linkName string) error }
Packer todo
type PortableExecutablePacker ¶
type PortableExecutablePacker struct { }
PortableExecutablePacker PE WIP
type RespondWriter ¶
type RespondWriter struct { Path string // contains filtered or unexported fields }
RespondWriter todo
func (*RespondWriter) AddProfile ¶
func (rw *RespondWriter) AddProfile(relname string) error
AddProfile todo
func (*RespondWriter) AddTarget ¶
func (rw *RespondWriter) AddTarget(relname string) error
AddTarget todo
type TargzPacker ¶
type TargzPacker struct {
// contains filtered or unexported fields
}
TargzPacker todo
func (*TargzPacker) AddFile ¶
func (pk *TargzPacker) AddFile(src, nameInArchive string) error
AddFile todo
func (*TargzPacker) AddFileEx ¶
func (pk *TargzPacker) AddFileEx(src, nameInArchive string, exerights bool) error
AddFileEx todo
func (*TargzPacker) AddTargetLink ¶
func (pk *TargzPacker) AddTargetLink(nameInArchive, linkName string) error
AddTargetLink todo
type ZipPacker ¶
type ZipPacker struct { FileMethod uint16 // zip filemethod // contains filtered or unexported fields }
ZipPacker todo
func NewZipPackerEx ¶
NewZipPackerEx todo
func (*ZipPacker) AddTargetLink ¶
AddTargetLink create zip symlink
func (*ZipPacker) SetComment ¶
Click to show internal directories.
Click to hide internal directories.