managers

package
v0.0.0-...-c429f89 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	RepoHandler func(repoAction shared.DefinitionPackagesRepository) error
	// contains filtered or unexported fields
}

A Manager represents a package manager.

func Get

func Get(name string) *Manager

Get returns a Manager specified by name.

func GetCustom

GetCustom returns a custom Manager specified by a Definition.

func NewApk

func NewApk() *Manager

NewApk creates a new Manager instance.

func NewApt

func NewApt() *Manager

NewApt creates a new Manager instance.

func NewDnf

func NewDnf() *Manager

NewDnf creates a new Manager instance.

func NewEgoPortage

func NewEgoPortage() *Manager

NewEgoPortage creates a new Manager instance.

func NewEquo

func NewEquo() *Manager

NewEquo creates a new Manager instance

func NewLuet

func NewLuet() *Manager

NewLuet create a new Manager instance

func NewOpkg

func NewOpkg() *Manager

NewOpkg creates a new Manager instance.

func NewPacman

func NewPacman() *Manager

NewPacman creates a new Manager instance.

func NewPortage

func NewPortage() *Manager

NewPortage creates a new Manager instance.

func NewXbps

func NewXbps() *Manager

NewXbps creates a new Manager instance.

func NewYum

func NewYum() *Manager

NewYum creates a new Manager instance.

func NewZypper

func NewZypper() *Manager

NewZypper create a new Manager instance.

func (Manager) Clean

func (m Manager) Clean() error

Clean cleans up cached files used by the package managers.

func (Manager) Install

func (m Manager) Install(pkgs, flags []string) error

Install installs packages to the rootfs.

func (Manager) Refresh

func (m Manager) Refresh() error

Refresh refreshes the local package database.

func (Manager) Remove

func (m Manager) Remove(pkgs, flags []string) error

Remove removes packages from the rootfs.

func (*Manager) SetInstallFlags

func (m *Manager) SetInstallFlags(flags ...string)

SetInstallFlags overrides the default install flags.

func (Manager) Update

func (m Manager) Update() error

Update updates all packages.

type ManagerCommands

type ManagerCommands struct {
	// contains filtered or unexported fields
}

ManagerCommands represents all commands.

type ManagerFlags

type ManagerFlags struct {
	// contains filtered or unexported fields
}

ManagerFlags represents flags for all subcommands of a package manager.

type ManagerHooks

type ManagerHooks struct {
	// contains filtered or unexported fields
}

ManagerHooks represents custom hooks.

Jump to

Keyboard shortcuts

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