sysfs

package
v0.0.0-...-653d6e8 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeFile

func MakeFile(handler FileHandler, cacheData bool) *fsNode

Types

type ChoiceHandler

type ChoiceHandler struct {
	Choices  []string
	Selected string
}

func (*ChoiceHandler) GetData

func (h *ChoiceHandler) GetData() ([]byte, syscall.Errno)

func (*ChoiceHandler) LoadConfig

func (h *ChoiceHandler) LoadConfig(cfg map[string]interface{}) error

func (*ChoiceHandler) SetData

func (h *ChoiceHandler) SetData(data []byte) syscall.Errno

type FileHandler

type FileHandler interface {
	GetData() ([]byte, syscall.Errno)
	SetData([]byte) syscall.Errno
	LoadConfig(map[string]interface{}) error
}

type FixedHandler

type FixedHandler struct {
	Value       []byte
	AllowReads  bool
	AllowWrites bool
}

func (*FixedHandler) GetData

func (h *FixedHandler) GetData() ([]byte, syscall.Errno)

func (*FixedHandler) LoadConfig

func (h *FixedHandler) LoadConfig(cfg map[string]interface{}) error

func (*FixedHandler) SetData

func (h *FixedHandler) SetData(data []byte) syscall.Errno

type IntegerHandler

type IntegerHandler struct {
	Min     int
	Max     int
	Current int
}

func (*IntegerHandler) GetData

func (h *IntegerHandler) GetData() ([]byte, syscall.Errno)

func (*IntegerHandler) LoadConfig

func (h *IntegerHandler) LoadConfig(cfg map[string]interface{}) error

func (*IntegerHandler) SetData

func (h *IntegerHandler) SetData(data []byte) syscall.Errno

Jump to

Keyboard shortcuts

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