datasource

package
v0.0.0-...-0e48e74 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2020 License: Apache-2.0 Imports: 8 Imported by: 1

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(dstype string) DataSource

New creates a new DataSource, whose type depends on the configured URL.

type FileSystemDataSource

type FileSystemDataSource struct{}

FileSystemDataSource is the file system data source object.

func (*FileSystemDataSource) Fetch

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

Fetch creates the output folder, clears it and copies the repository there.

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