cmds

package
v0.0.0-beta6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apk

func Apk(pkg string) *apk

func Apt

func Apt(pkg string) *apt

func AptGet

func AptGet(pkg string) *aptGet

func Cat

func Cat(file string) (out string, ok bool, err error)

func Dnf

func Dnf(pkg string) *dnf

func Dpkg

func Dpkg(pkg string) *dpkg

func Pacman

func Pacman(pkg string) *pacman

func Rpm

func Rpm(pkg string) *rpm

func Yum

func Yum(pkg string) *yum

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(name string) *Service

func (*Service) Enable

func (s *Service) Enable() (out string, ok bool, err error)

func (*Service) Restart

func (s *Service) Restart() (out string, ok bool, err error)

func (*Service) Start

func (s *Service) Start() (out string, ok bool, err error)

func (*Service) Status

func (s *Service) Status() (out string, ok bool, err error)

func (*Service) Stop

func (s *Service) Stop() (out string, ok bool, err error)

type Systemctl

type Systemctl struct {
	// contains filtered or unexported fields
}

func NewSystemctl

func NewSystemctl(unit string) *Systemctl

func (*Systemctl) Disable

func (s *Systemctl) Disable() (out string, ok bool, err error)

func (*Systemctl) Enable

func (s *Systemctl) Enable() (out string, ok bool, err error)

func (*Systemctl) Restart

func (s *Systemctl) Restart() (out string, ok bool, err error)

func (*Systemctl) Start

func (s *Systemctl) Start() (out string, ok bool, err error)

func (*Systemctl) Status

func (s *Systemctl) Status() (out string, ok bool, err error)

func (*Systemctl) Stop

func (s *Systemctl) Stop() (out string, ok bool, err error)

func (*Systemctl) Version

func (s *Systemctl) Version() (out string, ok bool, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL