provider

package
v0.0.0-...-f9a9c55 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitignoreProvider

type GitignoreProvider interface {
	Get(template string) (content []byte, err error)
	List() (templates []string, err error)
}

GitignoreProvider describes the interface which provides gitignore content and information. The details are left to the implementations.

func GithubProvider

func GithubProvider(owner, repo, token string, logger logger.Logger) GitignoreProvider

GithubProvider returns a gitignoreProvider, which uses the official gitignore GitHub repo, as a source for all the gitignore info/content requests.

func LocalProvider

func LocalProvider(path string, logger logger.Logger) GitignoreProvider

LocalProvider returns a gitignoreProvider, which uses a local directory, as a source for all the gitignore info/content requests.

Jump to

Keyboard shortcuts

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