Documentation ¶
Index ¶
- func GetDependenciesNames(deps []Dependency) []string
- func SaveRepoData(key string, versions []string)
- type Dependency
- type DependencyArtifacts
- type LockedDependency
- type Package
- type PackageLock
- func (p PackageLock) AddInstalled(dep Dependency, version string)
- func (p PackageLock) CleanRemoved(deps []Dependency)
- func (p PackageLock) GetArtifactList() []string
- func (p PackageLock) GetInstalled(dep Dependency) LockedDependency
- func (p PackageLock) NeedUpdate(dep Dependency, version string) bool
- func (p PackageLock) Save()
- func (p PackageLock) SetInstalled(dep Dependency, locked LockedDependency)
- type RepoInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDependenciesNames ¶
func GetDependenciesNames(deps []Dependency) []string
func SaveRepoData ¶
Types ¶
type Dependency ¶
func GetDependencies ¶
func GetDependencies(deps map[string]interface{}) []Dependency
func ParseDependency ¶
func ParseDependency(repo string, info string) Dependency
func (*Dependency) GetHashName ¶
func (p *Dependency) GetHashName() string
func (*Dependency) GetName ¶
func (p *Dependency) GetName() string
func (*Dependency) GetURL ¶
func (p *Dependency) GetURL() string
func (*Dependency) GetURLPrefix ¶
func (p *Dependency) GetURLPrefix() string
func (*Dependency) GetVersion ¶
func (p *Dependency) GetVersion() string
type DependencyArtifacts ¶
type DependencyArtifacts struct { Bin []string `json:"bin,omitempty"` Dcp []string `json:"dcp,omitempty"` Dcu []string `json:"dcu,omitempty"` Bpl []string `json:"bpl,omitempty"` }
func (*DependencyArtifacts) Clean ¶
func (p *DependencyArtifacts) Clean()
type LockedDependency ¶
type LockedDependency struct { Name string `json:"name"` Version string `json:"version"` Hash string `json:"hash"` Artifacts DependencyArtifacts `json:"artifacts"` Failed bool `json:"failed"` Changed bool `json:"changed"` }
func (LockedDependency) GetArtifacts ¶
func (p LockedDependency) GetArtifacts() []string
type Package ¶
type Package struct { IsNew bool `json:"-"` Name string `json:"name"` Description string `json:"description"` Version string `json:"version"` Homepage string `json:"homepage"` MainSrc string `json:"mainsrc"` Projects []string `json:"projects"` Scripts interface{} `json:"scripts,omitempty"` Dependencies interface{} `json:"dependencies"` Lock PackageLock `json:"-"` // contains filtered or unexported fields }
func LoadPackage ¶
func LoadPackageOther ¶
func (*Package) AddDependency ¶
func (*Package) AddProject ¶
func (*Package) UninstallDependency ¶
type PackageLock ¶
type PackageLock struct { Hash string `json:"hash"` Updated time.Time `json:"updated"` Installed map[string]LockedDependency `json:"installedModules"` // contains filtered or unexported fields }
func LoadPackageLock ¶
func LoadPackageLock(parentPackage *Package) PackageLock
func (PackageLock) AddInstalled ¶
func (p PackageLock) AddInstalled(dep Dependency, version string)
func (PackageLock) CleanRemoved ¶
func (p PackageLock) CleanRemoved(deps []Dependency)
func (PackageLock) GetArtifactList ¶
func (p PackageLock) GetArtifactList() []string
func (PackageLock) GetInstalled ¶
func (p PackageLock) GetInstalled(dep Dependency) LockedDependency
func (PackageLock) NeedUpdate ¶
func (p PackageLock) NeedUpdate(dep Dependency, version string) bool
func (PackageLock) Save ¶
func (p PackageLock) Save()
func (PackageLock) SetInstalled ¶
func (p PackageLock) SetInstalled(dep Dependency, locked LockedDependency)
Click to show internal directories.
Click to hide internal directories.