Documentation
¶
Index ¶
- Constants
- func NewCocoaPods() *cocoapods
- type CPAN
- type Cargo
- type CondaIngestor
- type CondaParser
- type CondaRepository
- type Drupal
- type Elm
- type Go
- type Hackage
- type Hex
- type Ingestor
- type MavenIngestor
- type MavenParser
- type MavenRepository
- type NPM
- type Nuget
- type Packagist
- type PollingIngestor
- type Pub
- type PyPiRss
- type PyPiXmlRpc
- type PyPiXmlRpcResponse
- type RubyGems
- type TTLer
Constants ¶
View Source
const UserAgent = "LibrariesDepper/1.0 (support@libraries.io)"
Variables ¶
This section is empty.
Functions ¶
func NewCocoaPods ¶
func NewCocoaPods() *cocoapods
Types ¶
type CondaIngestor ¶
type CondaIngestor struct {
LatestRun time.Time
Repository CondaRepository
}
func NewConda ¶
func NewConda(repository CondaRepository) *CondaIngestor
func (*CondaIngestor) GetParser ¶
func (ingestor *CondaIngestor) GetParser() *CondaParser
func (*CondaIngestor) Ingest ¶
func (ingestor *CondaIngestor) Ingest() []data.PackageVersion
func (*CondaIngestor) Name ¶
func (ingestor *CondaIngestor) Name() string
func (*CondaIngestor) Schedule ¶
func (ingestor *CondaIngestor) Schedule() string
type CondaParser ¶
func NewCondaParser ¶
func NewCondaParser(url string, platform string) *CondaParser
func (*CondaParser) GetPackages ¶
func (parser *CondaParser) GetPackages(lastRun time.Time) ([]data.PackageVersion, error)
type CondaRepository ¶
type CondaRepository string
const ( CondaForge CondaRepository = "conda_forge" CondaMain CondaRepository = "conda_main" )
type Hackage ¶
func NewHackage ¶
func NewHackage() *Hackage
func (*Hackage) Ingest ¶
func (ingestor *Hackage) Ingest() []data.PackageVersion
type MavenIngestor ¶
type MavenIngestor struct {
LatestRun time.Time
Repository MavenRepository
}
func NewMaven ¶
func NewMaven(repository MavenRepository) *MavenIngestor
func (*MavenIngestor) GetParser ¶
func (ingestor *MavenIngestor) GetParser() *MavenParser
func (*MavenIngestor) Ingest ¶
func (ingestor *MavenIngestor) Ingest() []data.PackageVersion
func (*MavenIngestor) Name ¶
func (ingestor *MavenIngestor) Name() string
func (*MavenIngestor) Schedule ¶
func (ingestor *MavenIngestor) Schedule() string
func (*MavenIngestor) TTL ¶
func (ingestor *MavenIngestor) TTL() time.Duration
type MavenParser ¶
func NewMavenParser ¶
func NewMavenParser(url string, platform string) *MavenParser
func (*MavenParser) GetPackages ¶
func (parser *MavenParser) GetPackages() ([]data.PackageVersion, error)
type MavenRepository ¶
type MavenRepository string
const ( MavenCentral MavenRepository = "maven_mavencentral" GoogleMaven MavenRepository = "maven_google" )
type NPM ¶
type NPM struct {
}
func (*NPM) Ingest ¶
func (ingestor *NPM) Ingest() []data.PackageVersion
type Packagist ¶
func NewPackagist ¶
func NewPackagist() *Packagist
func (*Packagist) Ingest ¶
func (ingestor *Packagist) Ingest() []data.PackageVersion
type PollingIngestor ¶
type PollingIngestor interface {
Ingestor
Schedule() string
Ingest() []data.PackageVersion
}
Regular ingestors provide an API we can poll for changes. This polling is done on a regular schedule.
type PyPiRss ¶
func NewPyPiRss ¶
func NewPyPiRss() *PyPiRss
func (*PyPiRss) Ingest ¶
func (ingestor *PyPiRss) Ingest() []data.PackageVersion
type PyPiXmlRpc ¶
func NewPyPiXmlRpc ¶
func NewPyPiXmlRpc() *PyPiXmlRpc
func (*PyPiXmlRpc) Ingest ¶
func (ingestor *PyPiXmlRpc) Ingest() []data.PackageVersion
Retrieve a list of [name, version, timestamp, action] since the given since. All since timestamps are UTC values. The argument is a UTC integer seconds since the epoch (e.g., the timestamp method to a datetime.datetime object). calls "changelog(since, with_ids=False)" RPC
func (*PyPiXmlRpc) Name ¶
func (ingestor *PyPiXmlRpc) Name() string
func (*PyPiXmlRpc) Schedule ¶
func (ingestor *PyPiXmlRpc) Schedule() string
type PyPiXmlRpcResponse ¶
type PyPiXmlRpcResponse struct {
Name string
Version string
Timestamp int64
Action string
Serial int64
}
Structured storage for the tuple returned by the xmlrpc client
func (*PyPiXmlRpcResponse) GetPackageVersion ¶
func (response *PyPiXmlRpcResponse) GetPackageVersion() data.PackageVersion
Get the PackageVersion struct for this response
func (*PyPiXmlRpcResponse) IsIngestionAction ¶
func (response *PyPiXmlRpcResponse) IsIngestionAction() bool
Return trhe if this response is an ingestable action
type RubyGems ¶
func NewRubyGems ¶
func NewRubyGems() *RubyGems
func (*RubyGems) Ingest ¶
func (ingestor *RubyGems) Ingest() []data.PackageVersion
Click to show internal directories.
Click to hide internal directories.