shutdown

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 2 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

Jump to

Keyboard shortcuts

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