Documentation ¶
Index ¶
- Constants
- type CommandExecutorFace
- type Go
- func (g *Go) AddDependencies(ctx context.Context, depsToAdd []string) (depsUpdated []string, userWarnings []string, err error)
- func (g *Go) AddPackages(ctx context.Context, pkgsToAdd []string) (packagesUpdated []string, userWarnings []string, err error)
- func (g *Go) GetDependencyNames(ctx context.Context, deps []string) []string
- func (g *Go) GetPackageNames(ctx context.Context, packages []string) []string
- func (g *Go) Icon() string
- func (g *Go) InitCheckCmd() error
- func (g *Go) InitCheckConfig() error
- func (g *Go) InitConfig()
- func (g *Go) InstallValidArgs(ctx context.Context, toComplete string, dependencies bool) ([]string, error)
- func (g *Go) ListDependencies(ctx context.Context, deps []string, stateDeps []string) (depStatus status.DependenciesStatus, err error)
- func (g *Go) ListPackages(ctx context.Context, packages []string, statePkgs []string) (packageStatus status.PackageStatus, err error)
- func (g *Go) LongDesc() string
- func (g *Go) Name() shared.ManagerName
- func (g *Go) NeedsSudo() []shared.CommandName
- func (g *Go) RemoveDependencies(ctx context.Context, allDeps []string, depsToRemove []string) (depsUpdated []string, userWarnings []string, err error)
- func (g *Go) RemovePackages(ctx context.Context, allPkgs []string, pkgs []string) (packagesUpdated []string, userWarnings []string, err error)
- func (g *Go) ShortDesc() string
- func (g *Go) SyncDependencies(ctx context.Context, depStatus status.DependenciesStatus) (userWarnings []string, err error)
- func (g *Go) SyncPackages(ctx context.Context, packageStatus status.PackageStatus) (userWarnings []string, err error)
Constants ¶
View Source
const Name shared.ManagerName = "go"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandExecutorFace ¶
type CommandExecutorFace interface { Install(ctx context.Context, pkg shared.Package) error Remove(pkg shared.Package) error ListInstalled(ctx context.Context) (packages []shared.Package, err error) BinPath() (binPath string, err error) GetBinaryInfo(ctx context.Context, binaryPath string) (pkg shared.Package, err error) }
type Go ¶
type Go struct {
CommandExecutorFace
}
func (*Go) AddDependencies ¶
func (*Go) AddPackages ¶
func (*Go) GetDependencyNames ¶
func (*Go) GetPackageNames ¶
func (*Go) InitCheckCmd ¶
func (*Go) InitCheckConfig ¶
func (*Go) InitConfig ¶
func (g *Go) InitConfig()
func (*Go) InstallValidArgs ¶
func (*Go) ListDependencies ¶
func (*Go) ListPackages ¶
func (*Go) Name ¶
func (g *Go) Name() shared.ManagerName
func (*Go) NeedsSudo ¶
func (g *Go) NeedsSudo() []shared.CommandName
func (*Go) RemoveDependencies ¶
func (*Go) RemovePackages ¶
func (*Go) SyncDependencies ¶
func (*Go) SyncPackages ¶
Click to show internal directories.
Click to hide internal directories.