package
Version:
v0.0.0
Opens a new window with list of versions in this module.
Published: Jul 21, 2016
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package storage allows access to git directories stored in a (usually
registry-specific) storage directory.
func PeelTree(repo *git.Repository, id *git.Oid) (*git.Tree, error)
PeelTree recursively traverses the passed in Git object until a Git tree
object is found.
type Download struct {
Repo *git.Repository
Tree *git.Tree
}
Download represents an ongoing download.
func NewDownload(repo *git.Repository, id *git.Oid) (*Download, error)
NewDownload creates a new download.
Start recursively traverses the internal Git object tree and dynamically
creates and compresses the corresponding tarball.
type Storage struct {
Dir string
}
Storage manages a directory of Git repositories.
New creates a new storage bound to the specified directory.
GetRepo opens the repository in the sub-directory "name".
Ls lists all available repository names.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.