shutdown

package
v1.2.17 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	IsShutdownCommandExecutable() bool
	Shutdown() error
	Reboot() error
}

func NewCommand

func NewCommand() Command

type CommandImpl

type CommandImpl struct{}

func (*CommandImpl) IsShutdownCommandExecutable

func (c *CommandImpl) IsShutdownCommandExecutable() bool

func (*CommandImpl) Reboot

func (c *CommandImpl) Reboot() error

func (*CommandImpl) Shutdown

func (c *CommandImpl) Shutdown() error

type Syscall

type Syscall interface {
	Reboot() error
	Shutdown() error
}

func NewSyscall

func NewSyscall() Syscall

type SyscallImpl

type SyscallImpl struct{}

func (SyscallImpl) Reboot

func (s SyscallImpl) Reboot() error

func (SyscallImpl) Shutdown

func (s SyscallImpl) Shutdown() error

type Sysrq

type Sysrq interface {
	Reboot() error
	Shutdown() error
}

func NewSysrq

func NewSysrq() Sysrq

type SysrqImpl

type SysrqImpl struct{}

func (SysrqImpl) Reboot

func (s SysrqImpl) Reboot() error

func (SysrqImpl) Shutdown

func (s SysrqImpl) Shutdown() error

Jump to

Keyboard shortcuts

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