Documentation ¶
Overview ¶
Package apk provides the common functions to install a package via apk. See also https://wiki.alpinelinux.org/wiki/Alpine_Package_Keeper.
Index ¶
Constants ¶
View Source
const (
// Tool is the tool name of apk
Tool = "apk"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonInstaller ¶
type CommonInstaller struct { Name string Execer fakeruntime.Execer }
CommonInstaller is the installer of a common apk
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) Uninstall ¶
func (d *CommonInstaller) Uninstall() (err error)
Uninstall uninstalls the target package
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.