pkg

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrManagerNotInstalled = errors.New("the package manager isn't installed")
	ErrPkgNotExists        = errors.New("the package not exists")
	ErrPkgNotInstalled     = errors.New("the package isn't installed")
	ErrNotAdministrator    = errors.New("not running as adminstrator")
	ErrPkgNotFound         = errors.New("package not found")
	ErrManagerIsInstalled  = errors.New("the package manager is not installed")
)

Functions

This section is empty.

Types

type Managerer

type Managerer interface {
	Name() string
	RequireAdmin() bool
	InstallByName(...string) error
	Install(...Packager) error
	UninstallByName(...string) error
	Uninstall(...Packager) error
	Version() string
	LocalPkgs() ([]Packager, error)
	RepoPkgByName(string) (Packager, error)
	LocalPkgByName(string) (Packager, error)
	IsInstalled() bool
	SearchInRepo(string) ([]Packager, error)
	SearchInLocal(string) ([]Packager, error)
	IsInRepo(Packager) bool
	IsInLocal(Packager) bool
	InstallManager() error
}

TODO:Comment and document this. TODO: Unbloat this...?

type Packager

type Packager interface {
	Install() error
	Uninstall() error
	Reinstall() error
	Version() string
	Name() string
	Installed() bool
	Manager() Managerer
	Local() bool
	Repo() bool
}

TODO:Comment and document this.

Directories

Path Synopsis
gui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL