Documentation ¶
Overview ¶
Package pack provides functions for combining and parsing pack files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InvalidFileError ¶
type InvalidFileError struct {
Message string
}
InvalidFileError is return when a file is found that is not a pack file.
func (InvalidFileError) Error ¶
func (e InvalidFileError) Error() string
type Packer ¶
type Packer struct {
// contains filtered or unexported fields
}
Packer is used to create a new Pack.
func NewPacker ¶
NewPacker returns a new Packer that can be used to pack blobs together. If wr is nil, a bytes.Buffer is used.
func (*Packer) Add ¶
Add saves the data read from rd as a new blob to the packer. Returned is the number of bytes written to the pack.
Click to show internal directories.
Click to hide internal directories.