project

package
v0.0.0-...-e8b59ad Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const FileScheme = "file"
View Source
const GitScheme = "git"
View Source
const HTTPSScheme = "https"
View Source
const HTTPScheme = "http"
View Source
const LocalScheme = "local"

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

type Fetcher interface {
	Match(*url.URL) bool
	Fetch(*url.URL) (billy.Filesystem, error)
}

type GitFetcher

type GitFetcher struct{}

func NewGitFetcher

func NewGitFetcher() *GitFetcher

func (*GitFetcher) Fetch

func (f *GitFetcher) Fetch(url *url.URL) (billy.Filesystem, error)

func (*GitFetcher) Match

func (f *GitFetcher) Match(url *url.URL) bool

type LocalFetcher

type LocalFetcher struct{}

func NewLocalFetcher

func NewLocalFetcher() *LocalFetcher

func (*LocalFetcher) Fetch

func (f *LocalFetcher) Fetch(url *url.URL) (billy.Filesystem, error)

func (*LocalFetcher) Match

func (f *LocalFetcher) Match(url *url.URL) bool

Jump to

Keyboard shortcuts

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