Documentation
¶
Overview ¶
Package git is used for encapsulating all the interaction with Git
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Walk ¶
Walk walks the file tree rooted at root, calling fn for each file or directory in the tree, including root. All errors that arise visiting files and directories are filtered by fn: see the WalkFunc documentation for details.
The files are walked in lexical order, which makes the output deterministic but requires Walk to read an entire directory into memory before proceeding to walk that directory. Walk does not follow symbolic links.
Function adapted from https://github.com/golang/go/blob/3b770f2ccb1fa6fecc22ea822a19447b10b70c5c/src/path/filepath/path.go#L500
Types ¶
type File ¶
type File struct { io.ReadCloser // contains filtered or unexported fields }
func GetFilesForPackage ¶
func GetFilesForPackage(log logger.LogInterface, filesGetter FilesGetter, pkg v1alpha1.Package) ([]*File, error)
GetFilesForPackage clones the package in memory
type FilesGetter ¶
type RealFilesGetter ¶
type RealFilesGetter struct{}
func (RealFilesGetter) WorkTreeForPackage ¶
func (filesGetter RealFilesGetter) WorkTreeForPackage(pkg v1alpha1.Package) (*billy.Filesystem, error)