app

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Managers managers.ManagerFactoryFace
	Manifest manifest.ManifestFace
	State    state.StateFace
	// contains filtered or unexported fields
}

func NewApp

func NewApp(managers managers.ManagerFactoryFace, manifest manifest.ManifestFace, state state.StateFace) *App

func (*App) Install

func (a *App) Install(ctx context.Context, apkgs []string, managerName shared.ManagerName, mType manifest.ManifestObjectType, host bool, group string) error

func (*App) InstallValidArgsFunc

func (a *App) InstallValidArgsFunc(ctx context.Context, managerName shared.ManagerName, toComplete string, mType manifest.ManifestObjectType) (pkgs []string, err error)

func (*App) ListManagers

func (a *App) ListManagers() []shared.ManagerName

func (*App) ListStatus

func (a *App) ListStatus(ctx context.Context, managerNames []shared.ManagerName) (status.Status, error)

func (*App) PrintPackageList

func (a *App) PrintPackageList(s status.Status) error

func (*App) Remove

func (a *App) Remove(ctx context.Context, apkgs []string, managerName shared.ManagerName, mType manifest.ManifestObjectType) error

func (*App) RemoveValidArgsFunc

func (a *App) RemoveValidArgsFunc(ctx context.Context, toComplete string, managerName shared.ManagerName, mType manifest.ManifestObjectType) ([]string, error)

func (*App) Sync

func (a *App) Sync(ctx context.Context, managerNames []shared.ManagerName) (err error)

type AppFace

type AppFace interface {
	Install(ctx context.Context, apkgs []string, managerName shared.ManagerName, mType manifest.ManifestObjectType, host bool, group string) error
	InstallValidArgsFunc(ctx context.Context, managerName shared.ManagerName, toComplete string, mType manifest.ManifestObjectType) (pkgs []string, err error)
	ListStatus(ctx context.Context, managerNames []shared.ManagerName) (status.Status, error)
	Remove(ctx context.Context, apkgs []string, managerName shared.ManagerName, mType manifest.ManifestObjectType) error
	RemoveValidArgsFunc(ctx context.Context, toComplete string, managerName shared.ManagerName, mType manifest.ManifestObjectType) ([]string, error)
	Sync(ctx context.Context, managerNames []shared.ManagerName) (err error)
	PrintPackageList(s status.Status) error
	ListManagers() []shared.ManagerName
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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