system

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderNotFound

func RenderNotFound() string

Types

type PxeConfig

type PxeConfig struct {
	Kernel           string
	Initrd           string
	KernelParameters kernelparameters.KernelParameters
}

func NewPxeConfig

func NewPxeConfig(kernel string, initrd string, kernelParameters kernelparameters.KernelParameters) PxeConfig

func (PxeConfig) Render

func (p PxeConfig) Render() string

type Repository

type Repository interface {
	GetSystems() ([]System, error)
	GetSystemByMacAddress(macAddress net.HardwareAddr) (System, error)
	GetSystemById(id uuid.UUID) (System, error)
	SetSystem(s System) error
	DeleteSystemById(id uuid.UUID) error
}

type System

type System struct {
	Id               uuid.UUID
	Name             string
	Description      string
	Profile          uuid.UUID
	Mac              net.HardwareAddr
	KernelParameters kernelparameters.KernelParameters
}

func New

func New(id uuid.UUID, name string, description string, profile uuid.UUID, mac net.HardwareAddr, kernelParameters kernelparameters.KernelParameters) (System, error)

Jump to

Keyboard shortcuts

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