crawl

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2018 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	PypiURLprefix = "https://pypi.org/project"
	//Libraries.IO is a great tool but rate limiting is cap at 60 requests per minute so unless
	// there is a way to up the limit, we cant use this for now.
	LibrariesIOprefix = "https://libraries.io/api/pypi"
)
View Source
const (
	NPMregistryURL = "https://registry.npmjs.org"
)
View Source
const (
	RubygemURLprefix = "https://rubygems.org/api/v1/gems"
)

Variables

This section is empty.

Functions

func ListFromFile

func ListFromFile(filename string) ([]string, error)

func TryLibrariesIO

func TryLibrariesIO(name string) string

Types

type Dependencyproblem

type Dependencyproblem struct {
	Name      string
	URL       string
	RiskNotes []string
}

func GetFileAndParseResult

func GetFileAndParseResult(filename string, PF ParserFunc, logger *log.Logger, c *github.Client, r *github.Repository, config interface{}) ([]string, []Dependencyproblem, error)

func GithubDependencyCrawl

func GithubDependencyCrawl(logger *log.Logger, c *github.Client, r *github.Repository, config interface{}) ([]string, []Dependencyproblem)

func ParseGem

func ParseGem(contentbytes []byte) ([]string, []Dependencyproblem)

func ParseGoDep

func ParseGoDep(contentbytes []byte) ([]string, []Dependencyproblem)

func ParseNPM

func ParseNPM(contentbytes []byte) ([]string, []Dependencyproblem)

func ParsePip

func ParsePip(contentbytes []byte) ([]string, []Dependencyproblem)

type ParserFunc

type ParserFunc func(filecontent []byte) ([]string, []Dependencyproblem)

Jump to

Keyboard shortcuts

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