Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSystemAdapter ¶
type FileSystemAdapter struct {
// contains filtered or unexported fields
}
FileSystemAdapter maintains two caches. One is a cache for the root filesystems. The other was intended to be a cache that was periodically pruned.
func NewFileSystemAdapter ¶
func NewFileSystemAdapter(cfg *config.CloneConfiguration) *FileSystemAdapter
NewFileSystemAdapter create a new FileSystemAdapter from the provided configuration. This method encapsulates creation of some caches.
func (*FileSystemAdapter) Clone ¶
func (fsa *FileSystemAdapter) Clone(url *URL) (billy.Filesystem, error)
Clone accepts a url and clones it to an underlying filesystem.
type URL ¶
URL defines the address where a repository is located.
func ParseURL ¶
ParseURL accepts a url string and parses it into a well structured url.
git: git@<<HOST>>:<<PATH>>.git https://<<HOST>><<PATH>>.git http://<<HOST>><<PATH>>.git
svn: svn://<<HOST>><<PATH>> svn+ssh://<<HOST>>/<PATH>
hg: local/filesystem/path[#revision] file://local/filesystem/path[#revision] http://[user[:pass]@]host[:port]/path[#revision] https://[user[:pass]@]host[:port]/path[#revision] ssh://[user@]host[:port]/path[#revision]
type VCS ¶
type VCS = string
VCS defines the version control system used to manage the repo.
const ( // GIT defines the constant used to represent the `git` version control system. GIT VCS = "git" // SVN defines the constant used to represent the `svn` version control system. SVN VCS = "svn" // MERCURIAL defines the constant used to represent the `hg` version control system. MERCURIAL VCS = "hg" )