Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct { billy.Filesystem // contains filtered or unexported fields }
Repository allows for easy access of files in a remote git repo
func New ¶
func New(repoURL, commit string) (*Repository, error)
New returns a new Repository with the given URL and commit hash
func (*Repository) Checkout ¶
func (r *Repository) Checkout(commit string) error
Checkout sets the Repository's commit
func (*Repository) Hash ¶
func (r *Repository) Hash() (string, error)
Hash returns the hash currently checked out
Click to show internal directories.
Click to hide internal directories.