Documentation ¶
Index ¶
- type App
- func (a *App) Install(ctx context.Context, apkgs []string, managerName shared.ManagerName, ...) error
- func (a *App) InstallValidArgsFunc(ctx context.Context, managerName shared.ManagerName, toComplete string, ...) (pkgs []string, err error)
- func (a *App) ListManagers() []shared.ManagerName
- func (a *App) ListStatus(ctx context.Context, managerNames []shared.ManagerName) (status.Status, error)
- func (a *App) PrintPackageList(s status.Status) error
- func (a *App) Remove(ctx context.Context, apkgs []string, managerName shared.ManagerName, ...) error
- func (a *App) RemoveValidArgsFunc(ctx context.Context, toComplete string, managerName shared.ManagerName, ...) ([]string, error)
- func (a *App) Sync(ctx context.Context, managerNames []shared.ManagerName) (err error)
- type AppFace
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) 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 (*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)
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 }
Click to show internal directories.
Click to hide internal directories.