Documentation ¶
Index ¶
- type CantFindExactVersionMatchError
- type Manager
- func (mgr *Manager) GetInstalledCommands(paths context.Paths) []dependency.DependenciesIndexEntry
- func (mgr *Manager) GetUpdateFor(dep dependency.Dependency) (Updates, error)
- func (mgr *Manager) InstallDependency(dep *dependency.Dependency, installDir string) error
- func (mgr *Manager) RemoveDependency(dep *dependency.Dependency, installDir string) error
- type Updates
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CantFindExactVersionMatchError ¶
type CantFindExactVersionMatchError struct {
// contains filtered or unexported fields
}
func (*CantFindExactVersionMatchError) Error ¶
func (e *CantFindExactVersionMatchError) Error() string
type Manager ¶
type Manager struct { DefaultRegistry string // contains filtered or unexported fields }
func (*Manager) GetInstalledCommands ¶
func (mgr *Manager) GetInstalledCommands(paths context.Paths) []dependency.DependenciesIndexEntry
GetInstalledCommands returns all the dependencies that are installed locally (both globally and within project scope). paths are the source of global and project install directories.
func (*Manager) GetUpdateFor ¶
func (mgr *Manager) GetUpdateFor(dep dependency.Dependency) (Updates, error)
GetUpdateFor gets updates for given dependency dep. If error doesn't occur, both major and minor updates are returned.
func (*Manager) InstallDependency ¶
func (mgr *Manager) InstallDependency(dep *dependency.Dependency, installDir string) error
InstallDependency installs a single dependency in the installDir directory. Dependency metadata is provided in dep.
func (*Manager) RemoveDependency ¶
func (mgr *Manager) RemoveDependency(dep *dependency.Dependency, installDir string) error
RemoveDependency removes a single dependency in the installDir directory. Dependency metadata is provided in dep.
Click to show internal directories.
Click to hide internal directories.