dnf

package
v0.0.78 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DNFName = "dnf"

DNFName is the tool name

Variables

This section is empty.

Functions

func SetInstallerRegistry added in v0.0.77

func SetInstallerRegistry(registry core.InstallerRegistry, defaultExecer exec.Execer)

SetInstallerRegistry sets the installer of registry

Types

type CommonInstaller

type CommonInstaller struct {
	Name   string
	Execer exec.Execer
}

CommonInstaller is the installer of a common dnf

func (*CommonInstaller) Available

func (d *CommonInstaller) Available() (ok bool)

Available check if support current platform

func (*CommonInstaller) Install

func (d *CommonInstaller) Install() (err error)

Install installs the target package

func (*CommonInstaller) Start

func (d *CommonInstaller) Start() error

Start starts the target service

func (*CommonInstaller) Stop

func (d *CommonInstaller) Stop() error

Stop stops the target service

func (*CommonInstaller) Uninstall

func (d *CommonInstaller) Uninstall() (err error)

Uninstall uninstalls the target

func (*CommonInstaller) WaitForStart

func (d *CommonInstaller) WaitForStart() (ok bool, err error)

WaitForStart waits for the service be started

Jump to

Keyboard shortcuts

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