datasource

package
v0.0.0-...-4acf0ac Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSource

type DataSource interface {
	Fetch(from, to string) ([]string, error)
}

DataSource is the data-source fetching interface

func New

func New() DataSource

New creates a new GitDataSource

type GitDataSource

type GitDataSource struct{}

GitDataSource is the git data source object

func (*GitDataSource) Fetch

func (ds *GitDataSource) Fetch(from, to string) ([]string, error)

Fetch creates the output folder, clears it and clones the repository there

Jump to

Keyboard shortcuts

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