Documentation ¶
Index ¶
- Constants
- func ListFromFile(filename string) ([]string, error)
- func TryLibrariesIO(name string) string
- type Dependencyproblem
- func GetFileAndParseResult(filename string, PF ParserFunc, logger *log.Logger, c *github.Client, ...) ([]string, []Dependencyproblem, error)
- func GithubDependencyCrawl(logger *log.Logger, c *github.Client, r *github.Repository, config interface{}) ([]string, []Dependencyproblem)
- func ParseGem(contentbytes []byte) ([]string, []Dependencyproblem)
- func ParseGoDep(contentbytes []byte) ([]string, []Dependencyproblem)
- func ParseGoMod(contentbytes []byte) ([]string, []Dependencyproblem)
- func ParseNPM(contentbytes []byte) ([]string, []Dependencyproblem)
- func ParsePip(contentbytes []byte) ([]string, []Dependencyproblem)
- type ParserFunc
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 TryLibrariesIO ¶
Types ¶
type Dependencyproblem ¶
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)
Click to show internal directories.
Click to hide internal directories.