Documentation ¶
Index ¶
- func GetDependenciesNames(deps []Dependency) []string
- func SaveRepoData(key 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 ¶
func SaveRepoData(key string)
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 (d *Dependency) GetHashName() string
func (*Dependency) GetName ¶
func (d *Dependency) GetName() string
func (*Dependency) GetURL ¶
func (d *Dependency) GetURL() string
func (*Dependency) GetURLPrefix ¶
func (d *Dependency) GetURLPrefix() string
func (*Dependency) GetVersion ¶
func (d *Dependency) GetVersion() string
type DependencyArtifacts ¶
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:"-"` }
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) RemoveDependency ¶
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.