repo

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitRepository

type GitRepository struct {
	Fs       billy.Filesystem
	Name     string
	URL      string
	Protocol string
	// contains filtered or unexported fields
}

GitRepository holds info for git repos and implements the Repository interface

func NewGitRepository

func NewGitRepository(name, url string) *GitRepository

NewGitRepository creates a GitRepository

func (*GitRepository) Clone

func (gr *GitRepository) Clone(path string) error

Clone git repository to path

type Repository

type Repository interface {
	Clone(path string) error
}

Repository struct holds information for a repository

Jump to

Keyboard shortcuts

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