apt

package
v0.0.0-...-752702c Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExitSuccess = 0
	ExitFailure = 1
	ExitPause   = 2
)

Variables

This section is empty.

Functions

func New

func New() system.System

func ParsePkgSystemError

func ParsePkgSystemError(out, err []byte) error

func ParseProgressInfo

func ParseProgressInfo(id, line string) (system.JobProgressInfo, error)

func WaitDpkgLockRelease

func WaitDpkgLockRelease()

Types

type APTSystem

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

func (*APTSystem) Abort

func (p *APTSystem) Abort(jobId string) error

func (*APTSystem) AddCMD

func (p *APTSystem) AddCMD(cmd *aptCommand)

func (*APTSystem) AttachIndicator

func (p *APTSystem) AttachIndicator(f system.Indicator)

func (*APTSystem) Clean

func (p *APTSystem) Clean(jobId string) error

func (*APTSystem) DistUpgrade

func (p *APTSystem) DistUpgrade(jobId string, environ map[string]string) error

func (*APTSystem) Download

func (p *APTSystem) Download(jobId string, packages []string) error

func (*APTSystem) FindCMD

func (p *APTSystem) FindCMD(id string) *aptCommand

func (*APTSystem) FixError

func (p *APTSystem) FixError(jobId string, errType string,
	environ map[string]string) error

func (*APTSystem) Install

func (p *APTSystem) Install(jobId string, packages []string, environ map[string]string) error

func (*APTSystem) Remove

func (p *APTSystem) Remove(jobId string, packages []string, environ map[string]string) error

func (*APTSystem) RemoveCMD

func (p *APTSystem) RemoveCMD(id string)

func (*APTSystem) UpdateSource

func (p *APTSystem) UpdateSource(jobId string) error

type CommandSet

type CommandSet interface {
	AddCMD(cmd *aptCommand)
	RemoveCMD(id string)
	FindCMD(id string) *aptCommand
}

Jump to

Keyboard shortcuts

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