apt

package
v0.0.72 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetInstallerRegistry

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

SetInstallerRegistry sets the installer of registry

Types

type CommonInstaller added in v0.0.63

type CommonInstaller struct {
	Name   string
	Execer exec.Execer
}

CommonInstaller is the installer of Conntrack in CentOS

func (*CommonInstaller) Available added in v0.0.63

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

Available check if support current platform

func (*CommonInstaller) Install added in v0.0.63

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

Install installs the Conntrack

func (*CommonInstaller) Start added in v0.0.63

func (d *CommonInstaller) Start() error

Start starts the Conntrack service

func (*CommonInstaller) Stop added in v0.0.63

func (d *CommonInstaller) Stop() error

Stop stops the Conntrack service

func (*CommonInstaller) Uninstall added in v0.0.63

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

Uninstall uninstalls the Conntrack

func (*CommonInstaller) WaitForStart added in v0.0.63

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