collector

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGitURL

func IsGitURL(str string) bool

IsGitURL returns true if the provided str is a git repository URL.

func IsURL

func IsURL(str string) bool

IsURL returns true if the provided str is an HTTP(S) URL.

Types

type Collector

type Collector interface {
	// Collect git package;download common file work as wget or curl;copy local file to dst.
	Collect(buildContext, src, savePath string) error
}

func NewCollector

func NewCollector(src string) (Collector, error)

func NewGitCollector

func NewGitCollector() Collector

func NewLocalCollector

func NewLocalCollector() Collector

func NewWebFileCollector

func NewWebFileCollector() Collector

Jump to

Keyboard shortcuts

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