Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CmdWithArgs ¶
CmdWithArgs is a command and with args
type CommonInstaller ¶
type CommonInstaller struct { Name string OS string InstallCmd CmdWithArgs UninstallCmd CmdWithArgs }
CommonInstaller is the installer of a common bash
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 Conntrack service
func (*CommonInstaller) Stop ¶
func (d *CommonInstaller) Stop() error
Stop stops the Conntrack service
func (*CommonInstaller) Uninstall ¶
func (d *CommonInstaller) Uninstall() (err error)
Uninstall uninstalls the Conntrack
func (*CommonInstaller) WaitForStart ¶
func (d *CommonInstaller) WaitForStart() (ok bool, err error)
WaitForStart waits for the service be started
Click to show internal directories.
Click to hide internal directories.