Documentation ¶
Index ¶
- Variables
- func AddCommand(cmds ...*cobra.Command)
- func CreateUnit(binName, desc, path string, args ...string) ([]byte, error)
- func Execute(action ActionFunc)
- func RegisterConfig(v any)
- func RootCmd() *cobra.Command
- func SetUnitConfig(section, name, value string)
- type ActionFunc
- type Daemon
- func (d *Daemon) Description() string
- func (d *Daemon) Install(args ...string) error
- func (d *Daemon) Kill(all bool, tags ...string) error
- func (d *Daemon) Name() string
- func (d *Daemon) Reload(all bool, tags ...string) error
- func (d *Daemon) Remove() error
- func (d *Daemon) Restart(all bool, tags ...string) error
- func (d *Daemon) Start(num int, tags ...string) error
- func (d *Daemon) Status(show bool) ([]systemd.UnitStatus, error)
- func (d *Daemon) Stop(all bool, tags ...string) error
- func (d *Daemon) Version() string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
InstanceTag = ""
)
Functions ¶
func AddCommand ¶
func CreateUnit ¶ added in v2.0.5
func Execute ¶
func Execute(action ActionFunc)
func RegisterConfig ¶ added in v2.1.7
func RegisterConfig(v any)
func SetUnitConfig ¶ added in v2.0.5
func SetUnitConfig(section, name, value string)
Types ¶
type Daemon ¶
type Daemon struct {
// contains filtered or unexported fields
}
func (*Daemon) Description ¶
Click to show internal directories.
Click to hide internal directories.