nodes

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const LinuxDriverID common.NodeDriverID = "linux"

Variables

This section is empty.

Functions

func NewLinuxDriverFromConfig

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

Types

type LinuxConfig

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

type LinuxDriver

type LinuxDriver struct {
	Config LinuxConfig
}

func (LinuxDriver) DriverInfo

func (l LinuxDriver) DriverInfo() common.NodeDriverInfo

func (LinuxDriver) GetDriverConfig

func (l LinuxDriver) GetDriverConfig() common.NodeDriverConfig

func (LinuxDriver) GetNodeDriverID

func (l LinuxDriver) GetNodeDriverID() common.NodeDriverID

func (LinuxDriver) GetStatus

func (l LinuxDriver) GetStatus() (common.NodeStatus, error)

func (LinuxDriver) MarshalJSON

func (l LinuxDriver) MarshalJSON() ([]byte, error)

func (LinuxDriver) PlanAndRegister

func (l LinuxDriver) PlanAndRegister(nodeName string, repository common.NodesRepository) 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) Startup

func (l LinuxDriver) Startup() error

func (LinuxDriver) UnmarshalJSON

func (l LinuxDriver) UnmarshalJSON(data []byte) error

func (LinuxDriver) Verify

func (l LinuxDriver) Verify() error

Jump to

Keyboard shortcuts

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