Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyPatch ¶
func ApplyPatch(dir string, r io.ReadCloser) ([]string, error)
func PatchArchive ¶
func PatchArchive(baseDir string, ops []DiffOp, ignores *ignore.FileIgnores) (io.Reader, int, error)
PatchArchive creates a tarball for given operations in baseDir and returns its size.
Types ¶
type DiffOp ¶
type FSNode ¶
type FSNode struct { Name string `json:"name"` Mode os.FileMode `json:"mode"` Size int64 `json:"size,omitempty"` // zero for dirs and whiteout files Mtime time.Time `json:"mtime"` // in UTC, zero time for dirs Nodes []FSNode `json:"nodes,omitempty"` }
func (FSNode) RootChecksum ¶
RootChecksum computes the checksum of the directory through its child nodes. It doesn't take f’s own name, mode, size and mtime into account.
Click to show internal directories.
Click to hide internal directories.