linux

package
v0.2.8-rc7 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: AGPL-3.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) 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)

func (*LinuxDriver) UpdateStatus added in v0.2.7

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

Jump to

Keyboard shortcuts

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