Documentation ¶
Index ¶
- type Git
- type Repository
- func (r *Repository) Fetch() error
- func (r *Repository) GetCurrentCommit() (string, error)
- func (r *Repository) Lock() (*lock.Lock, error)
- func (r *Repository) OpenOrClone() error
- func (r *Repository) Path() string
- func (r *Repository) Reset(refname string) error
- func (r *Repository) WalkDir(fn fs.WalkDirFunc) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(path string, lock *lock.Lock, dep *vending.Dependency) *Repository
func (*Repository) Fetch ¶
func (r *Repository) Fetch() error
func (*Repository) GetCurrentCommit ¶
func (r *Repository) GetCurrentCommit() (string, error)
func (*Repository) OpenOrClone ¶
func (r *Repository) OpenOrClone() error
func (*Repository) Path ¶
func (r *Repository) Path() string
func (*Repository) Reset ¶
func (r *Repository) Reset(refname string) error
func (*Repository) WalkDir ¶
func (r *Repository) WalkDir(fn fs.WalkDirFunc) error
Click to show internal directories.
Click to hide internal directories.