crawl

package
v0.0.0-...-8d9ef14 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: MIT Imports: 9 Imported by: 0

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 ParseGoMod

func ParseGoMod(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