Documentation
¶
Index ¶
- type GitRemoteInteractor
- type GoGitRemoteInteractor
- func (g GoGitRemoteInteractor) Clone(s storage.Storer, worktree billy.Filesystem, o *git.CloneOptions) (*git.Repository, error)
- func (g GoGitRemoteInteractor) Fetch(repo *git.Repository, o *git.FetchOptions) error
- func (g GoGitRemoteInteractor) Pull(repo *git.Repository, o *git.PullOptions) error
- func (g GoGitRemoteInteractor) Push(repo *git.Repository, o *git.PushOptions) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitRemoteInteractor ¶
type GitRemoteInteractor interface {
// Clone clones a repository.
Clone(s storage.Storer, worktree billy.Filesystem, o *git.CloneOptions) (*git.Repository, error)
// Fetch fetches changes from a repository.
Fetch(repo *git.Repository, o *git.FetchOptions) error
// Push pushes changes to a repository.
Push(repo *git.Repository, o *git.PushOptions) error
// Pull pulls changes from a repository.
Pull(repo *git.Repository, o *git.PullOptions) error
}
GitRemoteInteractor is an interface for interacting with a git remote repository.
type GoGitRemoteInteractor ¶
type GoGitRemoteInteractor struct{}
GoGitRemoteInteractor is a GitRemoteInteractor that uses go-git.
func (GoGitRemoteInteractor) Clone ¶
func (g GoGitRemoteInteractor) Clone(s storage.Storer, worktree billy.Filesystem, o *git.CloneOptions) (*git.Repository, error)
func (GoGitRemoteInteractor) Fetch ¶
func (g GoGitRemoteInteractor) Fetch(repo *git.Repository, o *git.FetchOptions) error
func (GoGitRemoteInteractor) Pull ¶
func (g GoGitRemoteInteractor) Pull(repo *git.Repository, o *git.PullOptions) error
func (GoGitRemoteInteractor) Push ¶
func (g GoGitRemoteInteractor) Push(repo *git.Repository, o *git.PushOptions) error
Click to show internal directories.
Click to hide internal directories.