Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedReader ¶ added in v0.2.0
func NewCachedReader ¶ added in v0.2.0
NewCachedReader creates a new cached reader
type Chunk ¶ added in v0.2.0
type Chunk struct { Path string `json:"path,omitempty"` Mode fs.FileMode `json:"mode,omitempty"` Size int64 `json:"size,omitempty"` Hash string `json:"hash,omitempty"` ModTime int64 `json:"modtime,omitempty"` // Data can be set if the file is small enough to fit in one chunk. Otherwise // it will be nil and the file will be chunked with links to the blobs Data []byte `json:"data,omitempty"` Refs []*Ref `json:"refs,omitempty"` }
Chunk can either be file metadata or a blob. If the file is small enough to fit in one chunk, it can be a file with data.
func (*Chunk) Print ¶ added in v0.2.0
func (c *Chunk) Print(w io.StringWriter)
type Pack ¶
type Pack struct {
// contains filtered or unexported fields
}
func (*Pack) Print ¶ added in v0.2.0
func (p *Pack) Print(w io.StringWriter)
Click to show internal directories.
Click to hide internal directories.