repo

package
v0.0.0-...-39bc41e Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitRepo

type GitRepo struct {
	// contains filtered or unexported fields
}

func (*GitRepo) Clone

func (repo *GitRepo) Clone(localPath string, repoUrl string) (*git.Repository, error)

func (*GitRepo) Delete

func (repo *GitRepo) Delete(localPath string) error

func (*GitRepo) Init

func (repo *GitRepo) Init(localPath string) (*git.Repository, error)

func (GitRepo) Open

func (GitRepo) Open(localPath string) (*git.Repository, error)

func (*GitRepo) Pull

func (repo *GitRepo) Pull(repository *git.Repository) error

type Repo

type Repo interface {
	Clone(localPath string, repoUrl string) (*git.Repository, error)
	Delete(localPath string) error
	Init(localPath string) (*git.Repository, error)
	Open(localPath string) (*git.Repository, error)
	Pull(repository *git.Repository) error
}

func New

func New(verbose bool) Repo

Jump to

Keyboard shortcuts

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