Documentation ¶
Index ¶
- Constants
- func ParseIndexDependency(dep string) (string, string)
- type PackageManager
- func (pacman *PackageManager) Download(depends []string, replace bool) ([]string, map[string]struct{}, error)
- func (pacman *PackageManager) InstallIndexDependencies() ([]string, error)
- func (pacman *PackageManager) InstallNewDependencies(depends []string, replace bool) ([]string, error)
- func (pacman *PackageManager) Pack() error
- func (pacman *PackageManager) Validate() []error
Constants ¶
View Source
const ( DependencyDirName = ".dep" BundleName = "bundle.zip" )
Variables ¶
This section is empty.
Functions ¶
func ParseIndexDependency ¶
Types ¶
type PackageManager ¶
type PackageManager struct { Package *_package.Package PackageCacheDir string DependenciesDir string BaseDir string }
func New ¶
func New(idxFile string) (*PackageManager, error)
func (*PackageManager) InstallIndexDependencies ¶
func (pacman *PackageManager) InstallIndexDependencies() ([]string, error)
func (*PackageManager) InstallNewDependencies ¶
func (pacman *PackageManager) InstallNewDependencies(depends []string, replace bool) ([]string, error)
func (*PackageManager) Pack ¶
func (pacman *PackageManager) Pack() error
func (*PackageManager) Validate ¶
func (pacman *PackageManager) Validate() []error
Click to show internal directories.
Click to hide internal directories.