linux

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const LinuxDriverID common.NodeDriverID = "linux"

Variables

This section is empty.

Functions

func NewLinuxDriverFromConfig

func NewLinuxDriverFromConfig(ctx common.NodeContext, c *any) (common.NodeDriver, error)

Types

type LinuxConfig

type LinuxConfig struct {
	WakeOnLan bool   `json:"wol"`
	MAC       string `json:"MAC"`
}

type LinuxDriver

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

func (*LinuxDriver) Config

func (l *LinuxDriver) Config() common.NodeDriverConfig

func (*LinuxDriver) ID

func (*LinuxDriver) Info

func (l *LinuxDriver) Info() (common.NodeDriverInfo, error)

func (*LinuxDriver) PowerOff

func (l *LinuxDriver) PowerOff() error

func (*LinuxDriver) PowerOn

func (l *LinuxDriver) PowerOn(_ *cloudinit.CloudInit) error

func (*LinuxDriver) RefreshStatus

func (l *LinuxDriver) RefreshStatus() (common.NodeStatus, error)

func (*LinuxDriver) Restart

func (l *LinuxDriver) Restart(message string, time uint32) error

func (*LinuxDriver) Shutdown

func (l *LinuxDriver) Shutdown(message string, time uint32) error

func (*LinuxDriver) State

func (l *LinuxDriver) State() (common.NodeState, error)

Jump to

Keyboard shortcuts

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