remote

package
v0.0.0-...-2267940 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2025 License: Apache-2.0, MIT Imports: 3 Imported by: 3

Documentation

Index

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL