Documentation
¶
Index ¶
- Constants
- type Block
- type Dir
- type Header
- type Trailer
- type WriteOptions
- type Writer
- func (w *Writer) Close() error
- func (w *Writer) WriteBlock(b []byte, typ int) int64
- func (w *Writer) WriteBlockDir(d *Dir) int64
- func (w *Writer) WriteDir(dir string, di os.FileInfo) (*Dir, error)
- func (w *Writer) WriteFile(r io.Reader, fi os.FileInfo) (*Dir, error)
- func (w *Writer) WriteHeader()
- func (w *Writer) WriteTrailer(root uint32)
Constants ¶
View Source
const ( DirBlock = iota DataBlock PointerBlock )
View Source
const ( NoEnc = iota DeflateEnc )
View Source
const ( HeaderMagic = 0x529ab12b HeaderSize = 44 BigHeaderMagic = 0x25a9 BlockMagic = 0x198a1cbf BlockSize = 12 BigBlockMagic = 0x91a8 TrailerMagic = 0x6b46e688 TrailerSize = 28 Version = 1 MaxBlockSize = 512 * 1024 MinBlockSize = 512 MinDirSize = 28 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WriteOptions ¶
type WriteOptions struct { Time time.Time Compress bool Label string Version int BlockSize int Uid string Gid string }
func DefaultWriteOptions ¶
func DefaultWriteOptions() *WriteOptions
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) WriteBlockDir ¶
func (*Writer) WriteHeader ¶
func (w *Writer) WriteHeader()
func (*Writer) WriteTrailer ¶
Click to show internal directories.
Click to hide internal directories.