Documentation ¶
Overview ¶
Package brew provides the common functions to install a package via brew. See also https://brew.sh/.
Index ¶
Constants ¶
View Source
const (
// Tool is the tool name of brew
Tool = "brew"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonInstaller ¶ added in v0.0.65
type CommonInstaller struct { Name string Execer fakeruntime.Execer }
CommonInstaller is the installer of a common brew
func (*CommonInstaller) Available ¶ added in v0.0.65
func (d *CommonInstaller) Available() (ok bool)
Available check if support current platform
func (*CommonInstaller) Install ¶ added in v0.0.65
func (d *CommonInstaller) Install() (err error)
Install installs the target package
func (*CommonInstaller) Start ¶ added in v0.0.65
func (d *CommonInstaller) Start() error
Start starts the Conntrack service
func (*CommonInstaller) Stop ¶ added in v0.0.65
func (d *CommonInstaller) Stop() error
Stop stops the Conntrack service
func (*CommonInstaller) Uninstall ¶ added in v0.0.65
func (d *CommonInstaller) Uninstall() (err error)
Uninstall uninstalls the Conntrack
func (*CommonInstaller) WaitForStart ¶ added in v0.0.65
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.