Documentation ¶
Index ¶
- type InitSystem
- type Systemd
- func (s *Systemd) CreateService(ctx context.Context) error
- func (s *Systemd) IsDisplayManagerStopped(ctx context.Context) (bool, error)
- func (s *Systemd) StartDisplayManager(ctx context.Context) error
- func (s *Systemd) StartUnit(ctx context.Context, name string) error
- func (s *Systemd) StopDisplayManager(ctx context.Context) error
- func (s *Systemd) StopUnit(ctx context.Context, name string) error
- func (s *Systemd) TeardownService(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InitSystem ¶
type InitSystem interface { CreateService(context.Context) error TeardownService(context.Context) error StopUnit(context.Context, string) error StartUnit(context.Context, string) error StopDisplayManager(context.Context) error StartDisplayManager(context.Context) error IsDisplayManagerStopped(context.Context) (bool, error) }
func GetInitSystem ¶
func GetInitSystem() (InitSystem, error)
type Systemd ¶
type Systemd struct {
// contains filtered or unexported fields
}
func (*Systemd) IsDisplayManagerStopped ¶
func (*Systemd) StartDisplayManager ¶
func (*Systemd) StopDisplayManager ¶
Click to show internal directories.
Click to hide internal directories.