managers

package
v0.0.0-...-38ab1a1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2018 License: Apache-2.0 Imports: 4 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 {
	// 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 NewApk

func NewApk() *Manager

NewApk creates a new Manager instance.

func NewApt

func NewApt() *Manager

NewApt creates a new Manager instance.

func NewPacman

func NewPacman() *Manager

NewPacman creates a new Manager instance.

func NewYum

func NewYum() *Manager

NewYum creates 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 []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 []string) error

Remove removes packages from the rootfs.

func (Manager) Update

func (m Manager) Update() error

Update updates all packages.

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