Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArchLinuxManager ¶
type ArchLinuxManager struct{}
ArchLinuxManager manages packages on Arch Linux.
func (*ArchLinuxManager) Install ¶
func (p *ArchLinuxManager) Install(pkg, version string) (bool, error)
func (*ArchLinuxManager) Setup ¶
func (p *ArchLinuxManager) Setup() error
type Manager ¶
type Manager interface { // Install install the given package at the given version, the returned boolean is true. // Does nothing if package is already installed, in this case the returned boolean is false. Install(pkg, version string) (bool, error) // Unitfile returns the location of the unitfile for the given package // Returns an error if no unitfiles were found Unitfile(pkg string) (string, error) }
Manager represents OS package management.
type NoopManager ¶
type NoopManager struct{}
NoopManager implements a no-op of the Manager interface. Its purpose is to enable scenarios where no package handling is required, i.e. the necessary executables are already available on the host.
func (*NoopManager) Setup ¶
func (p *NoopManager) Setup() error
Click to show internal directories.
Click to hide internal directories.