manager

package
v0.0.0-...-e45d723 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Openrc

type Openrc struct {
	Client *ssh.SSHClient
	// contains filtered or unexported fields
}

func NewOpenrc

func NewOpenrc() *Openrc

func (*Openrc) IsActive

func (s *Openrc) IsActive(serviceName string) (bool, error)

func (*Openrc) IsEnable

func (s *Openrc) IsEnable(serviceName string) (bool, error)

func (*Openrc) IsExist

func (s *Openrc) IsExist(serviceName string) (bool, error)

func (*Openrc) Name

func (s *Openrc) Name() string

func (*Openrc) Operate

func (s *Openrc) Operate(operate, serviceName string) error

func (*Openrc) Reload

func (s *Openrc) Reload() error

func (*Openrc) Status

func (s *Openrc) Status(serviceName string) (string, error)

type Snap

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

func NewSnap

func NewSnap() *Snap

func (*Snap) IsActive

func (s *Snap) IsActive(serviceName string) bool

func (*Snap) IsEnable

func (s *Snap) IsEnable(serviceName string) bool

func (*Snap) IsExist

func (s *Snap) IsExist(serviceName string) bool

func (*Snap) Operate

func (s *Snap) Operate(operate, serviceName string) error

type Systemd

type Systemd struct {
	Client *ssh.SSHClient
	// contains filtered or unexported fields
}

func NewSystemd

func NewSystemd() *Systemd

func (*Systemd) IsActive

func (s *Systemd) IsActive(serviceName string) (bool, error)

func (*Systemd) IsEnable

func (s *Systemd) IsEnable(serviceName string) (bool, error)

func (*Systemd) IsExist

func (s *Systemd) IsExist(serviceName string) (bool, error)

func (*Systemd) Name

func (s *Systemd) Name() string

func (*Systemd) Operate

func (s *Systemd) Operate(operate, serviceName string) error

func (*Systemd) Reload

func (s *Systemd) Reload() error

func (*Systemd) Status

func (s *Systemd) Status(serviceName string) (string, error)

type Sysvinit

type Sysvinit struct {
	Client *ssh.SSHClient
	// contains filtered or unexported fields
}

func NewSysvinit

func NewSysvinit() *Sysvinit

func (*Sysvinit) IsActive

func (s *Sysvinit) IsActive(serviceName string) (bool, error)

func (*Sysvinit) IsEnable

func (s *Sysvinit) IsEnable(serviceName string) (bool, error)

func (*Sysvinit) IsExist

func (s *Sysvinit) IsExist(serviceName string) (bool, error)

func (*Sysvinit) Name

func (s *Sysvinit) Name() string

func (*Sysvinit) Operate

func (s *Sysvinit) Operate(operate, serviceName string) error

func (*Sysvinit) Reload

func (s *Sysvinit) Reload() error

func (*Sysvinit) Status

func (s *Sysvinit) Status(serviceName string) (string, error)

Jump to

Keyboard shortcuts

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