Documentation ¶
Index ¶
- Variables
- type ArchiveWriter
- func (archive *ArchiveWriter) AppendBytes(rtype format.RecordType, flags format.RecordFlags, ...) error
- func (archive *ArchiveWriter) AppendDirectory(path string, info fs.FileInfo) error
- func (archive *ArchiveWriter) AppendEnd() error
- func (archive *ArchiveWriter) AppendFile(path string, source string, compressionType format.CompressionType, ...) error
- func (archive *ArchiveWriter) AppendStart(prefix string, comment string) error
- func (archive *ArchiveWriter) AppendStream(rtype format.RecordType, flags format.RecordFlags, ...) error
- func (archive *ArchiveWriter) AppendSymlink(path string, destination string, info fs.FileInfo) error
- func (archive *ArchiveWriter) AppendZstdDict(dictionary []byte) error
- func (archive *ArchiveWriter) Close() error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMisalignedWrite = errors.New("unexpected number of bytes written")
)
Functions ¶
This section is empty.
Types ¶
type ArchiveWriter ¶
type ArchiveWriter struct { MaxReadBuffer uint64 // contains filtered or unexported fields }
func (*ArchiveWriter) AppendBytes ¶
func (archive *ArchiveWriter) AppendBytes( rtype format.RecordType, flags format.RecordFlags, compression format.CompressionType, recordInfo any, data []byte) error
AppendBytes adds a raw, uncompressed block of data to the end of the archive. This includes the header and relevant body (`recordInfo`)
func (*ArchiveWriter) AppendDirectory ¶
func (archive *ArchiveWriter) AppendDirectory(path string, info fs.FileInfo) error
func (*ArchiveWriter) AppendEnd ¶
func (archive *ArchiveWriter) AppendEnd() error
func (*ArchiveWriter) AppendFile ¶
func (archive *ArchiveWriter) AppendFile(path string, source string, compressionType format.CompressionType, info fs.FileInfo) error
func (*ArchiveWriter) AppendStart ¶
func (archive *ArchiveWriter) AppendStart(prefix string, comment string) error
func (*ArchiveWriter) AppendStream ¶
func (archive *ArchiveWriter) AppendStream(rtype format.RecordType, flags format.RecordFlags, compression format.CompressionType, recordInfo any, stream io.Reader) error
func (*ArchiveWriter) AppendSymlink ¶
func (*ArchiveWriter) AppendZstdDict ¶
func (archive *ArchiveWriter) AppendZstdDict(dictionary []byte) error
func (*ArchiveWriter) Close ¶
func (archive *ArchiveWriter) Close() error
Click to show internal directories.
Click to hide internal directories.