Documentation
¶
Index ¶
- func ApplyChanges(ctx context.Context, fs billy.Filesystem, toDir, gcRootDir string) error
- func ApplyPatchDiff(ctx context.Context, fs billy.Filesystem, patchPath, destDir string) error
- func GenerateChanges(ctx context.Context, fs billy.Filesystem, fromDir, toDir, gcRootDir string, ...) error
- func GeneratePatchDiff(ctx context.Context, fs billy.Filesystem, patchPath, srcPath, dstPath string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyChanges ¶
ApplyChanges applies the changes from the gcOverlayDirpath, gcExcludeDirpath, and gcPatchDirpath within gcDir to toDir within the package filesystem
func ApplyPatchDiff ¶ added in v1.9.9
ApplyPatchDiff applies a patch file located at patchPath to the destDir on the filesystem
func GenerateChanges ¶
func GenerateChanges(ctx context.Context, fs billy.Filesystem, fromDir, toDir, gcRootDir string, replacePaths []string) error
GenerateChanges generates the change between fromDir and toDir and places it in the appropriate directories within gcDir
func GeneratePatchDiff ¶ added in v1.9.9
func GeneratePatchDiff(ctx context.Context, fs billy.Filesystem, patchPath, srcPath, dstPath string) (bool, error)
GeneratePatchDiff generates the patch between the files at srcPath and dstPath and outputs it to patchPath It returns whether the patch was generated or any errors that were encountered
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.