Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Sources []*Source Test *TestConfig NoDepdump bool NoInstall bool CPANFile string LogLevel string CPUs int CacheDir string InstallDir string MetaCPAN bool MetaSources []*Source }
func DefaultConfig ¶
func DefaultConfig() *Config
type Dependency ¶
type Dependency struct { Name string Version string Modifier string Module *Module Additional []*Dependency }
func DependencyFromString ¶
func DependencyFromString(name string, dependency string) (*Dependency, error)
func ParseCPANLine ¶
func ParseCPANLine(line string) (*Dependency, error)
func (*Dependency) Matches ¶
func (v *Dependency) Matches(module *Module) bool
func (*Dependency) MatchesVersion ¶
func (v *Dependency) MatchesVersion(version string) bool
func (*Dependency) Resolve ¶
func (v *Dependency) Resolve() error
func (*Dependency) String ¶
func (d *Dependency) String() string
type DependencyList ¶
type DependencyList struct { Dependencies []*Dependency Parent *Module }
func (*DependencyList) AddDependency ¶
func (d *DependencyList) AddDependency(dep *Dependency)
func (*DependencyList) Install ¶
func (d *DependencyList) Install() (int, error)
func (*DependencyList) PrintDeps ¶
func (deps *DependencyList) PrintDeps(d int)
func (*DependencyList) Resolve ¶
func (d *DependencyList) Resolve() error
func (*DependencyList) UniqueInstalled ¶
func (d *DependencyList) UniqueInstalled() int
type Module ¶
type Module struct { Name string Version string Url string Source *Source Cached string Extracted string Dir string Deps *DependencyList Formod *Module }
func (*Module) IsCircular ¶
type Source ¶
type Source struct { Type string Index string URL string ModuleList map[string]*Module Priority int }
func DefaultSources ¶
func NewMetaSource ¶
func (*Source) ModuleFromBackPANIndex ¶
func (*Source) ModuleFromCPANIndex ¶
type TestConfig ¶
type VersionOutput ¶
FIXME same structs in both smartpan and getpan
type WhereOutput ¶
type WhereOutput struct { Module string Latest float64 Versions []*VersionOutput }
Click to show internal directories.
Click to hide internal directories.