Documentation
¶
Index ¶
- func Apk(pkg string) *apk
- func Apt(pkg string) *apt
- func AptGet(pkg string) *aptGet
- func Cat(file string) (out string, ok bool, err error)
- func Dnf(pkg string) *dnf
- func Dpkg(pkg string) *dpkg
- func Pacman(pkg string) *pacman
- func Rpm(pkg string) *rpm
- func Yum(pkg string) *yum
- type Service
- type Systemctl
- func (s *Systemctl) Disable() (out string, ok bool, err error)
- func (s *Systemctl) Enable() (out string, ok bool, err error)
- func (s *Systemctl) Restart() (out string, ok bool, err error)
- func (s *Systemctl) Start() (out string, ok bool, err error)
- func (s *Systemctl) Status() (out string, ok bool, err error)
- func (s *Systemctl) Stop() (out string, ok bool, err error)
- func (s *Systemctl) Version() (out string, ok bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Systemctl ¶
type Systemctl struct {
// contains filtered or unexported fields
}
func NewSystemctl ¶
Click to show internal directories.
Click to hide internal directories.