edgeguard

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: EPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BIOSIdentity

type BIOSIdentity struct {
	Manufacturer string `json:"manufacturer,omitempty"`
	Version      string `json:"version,omitempty"`
}

type CPUIdentity

type CPUIdentity struct {
	Vendor        string `json:"vendor,omitempty"`
	ModelName     string `json:"modelName,omitempty"`
	Family        string `json:"family,omitempty"`
	Model         string `json:"model,omitempty"`
	Stepping      int32  `json:"stepping,omitempty"`
	PhysicalCores int    `json:"physicalCores,omitempty"`
}

type DiskIdentity

type DiskIdentity struct {
	DeviceID string `json:"deviceId,omitempty"`
	Serial   string `json:"serial,omitempty"`
	WWN      string `json:"wwn,omitempty"`
	Model    string `json:"model,omitempty"`
}

type FingerprintPayload

type FingerprintPayload struct {
	SchemaVersion   int                        `json:"schemaVersion"`
	System          SystemIdentity             `json:"system"`
	BIOS            BIOSIdentity               `json:"bios"`
	Motherboard     MotherboardIdentity        `json:"motherboard"`
	CPU             CPUIdentity                `json:"cpu"`
	PCIDevices      []PCIDeviceIdentity        `json:"pciDevices"`
	GPUDevices      []GPUDeviceIdentity        `json:"gpuDevices,omitempty"` // derived from PCIDevices
	PlatformDevices []PlatformDeviceIdentity   `json:"platformDevices,omitempty"`
	RootDisk        DiskIdentity               `json:"rootDisk"`
	PrimaryNICs     []NICIdentity              `json:"primaryNICs"`
	USBDevices      []USBDeviceIdentity        `json:"usbDevices"`
	Optional        OptionalFingerprintSignals `json:"optional,omitempty"`
}

FingerprintPayload is the canonical normalized structure used for hashing/signing.

type FirmwareIdentity

type FirmwareIdentity struct {
	SecureBootState string `json:"secureBootState,omitempty"`
}

type GPUDeviceIdentity

type GPUDeviceIdentity struct {
	Slot     string `json:"slot,omitempty"`
	VendorID string `json:"vendorId,omitempty"`
	DeviceID string `json:"deviceId,omitempty"`
	Class    string `json:"class,omitempty"`
}

type JWK

type JWK struct {
	Kty string `json:"kty"` // Key type (must be "OKP")
	Crv string `json:"crv"` // Curve (must be "Ed25519")
	D   string `json:"d"`   // Private key (base64url encoded)
	X   string `json:"x"`   // Public key (base64url encoded)
	Kid string `json:"kid"` // Key ID (optional)
}

JWK represents a JSON Web Key structure for Ed25519

type Manager

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

Manager manages edge device security and attestation

func GetInstance

func GetInstance() *Manager

GetInstance returns the singleton Edge Guard Manager instance

func (*Manager) GetModuleIndex

func (m *Manager) GetModuleIndex() int

GetModuleIndex returns the module index (Edge Guard Manager doesn't have a specific index)

func (*Manager) GetName

func (m *Manager) GetName() string

GetName returns the module name

func (*Manager) InstanceConfigUpdated

func (m *Manager) InstanceConfigUpdated()

InstanceConfigUpdated handles configuration updates

func (*Manager) Start

func (m *Manager) Start() error

Start starts the Edge Guard Manager

func (*Manager) Stop

func (m *Manager) Stop() error

Stop stops the Edge Guard Manager

type MemoryModuleIdentity

type MemoryModuleIdentity struct {
	Locator    string `json:"locator,omitempty"`
	Serial     string `json:"serial,omitempty"`
	PartNumber string `json:"partNumber,omitempty"`
}

type MotherboardIdentity

type MotherboardIdentity struct {
	Product string `json:"product,omitempty"`
	Serial  string `json:"serial,omitempty"`
}

type NICIdentity

type NICIdentity struct {
	Name      string `json:"name,omitempty"`
	MAC       string `json:"mac,omitempty"`
	LinkState string `json:"linkState,omitempty"`
}

type OptionalFingerprintSignals

type OptionalFingerprintSignals struct {
	MemoryModules []MemoryModuleIdentity `json:"memoryModules,omitempty"`
	Firmware      FirmwareIdentity       `json:"firmware,omitempty"`
	TPM           TPMIdentity            `json:"tpm,omitempty"`
	DMIBoardUUID  string                 `json:"dmiBoardUuid,omitempty"`
	MachineID     string                 `json:"machineId,omitempty"`
}

type PCIDeviceIdentity

type PCIDeviceIdentity struct {
	Slot            string `json:"slot,omitempty"`
	Class           string `json:"class,omitempty"`
	VendorID        string `json:"vendorId,omitempty"`
	DeviceID        string `json:"deviceId,omitempty"`
	SubsystemVendor string `json:"subsystemVendor,omitempty"`
	SubsystemDevice string `json:"subsystemDevice,omitempty"`
}

type PlatformDeviceIdentity

type PlatformDeviceIdentity struct {
	Type  string `json:"type,omitempty"`
	Name  string `json:"name,omitempty"`
	Value string `json:"value,omitempty"`
}

type SystemIdentity

type SystemIdentity struct {
	UUID         string `json:"uuid,omitempty"`
	Serial       string `json:"serial,omitempty"`
	Manufacturer string `json:"manufacturer,omitempty"`
	Model        string `json:"model,omitempty"`
}

type TPMIdentity

type TPMIdentity struct {
	Present       bool   `json:"present,omitempty"`
	EKFingerprint string `json:"ekFingerprint,omitempty"`
	PCRPolicyHash string `json:"pcrPolicyHash,omitempty"`
}

type USBDeviceIdentity

type USBDeviceIdentity struct {
	BusPath      string `json:"busPath,omitempty"`
	VendorID     string `json:"vendorId,omitempty"`
	ProductID    string `json:"productId,omitempty"`
	Manufacturer string `json:"manufacturer,omitempty"`
	Product      string `json:"product,omitempty"`
	Serial       string `json:"serial,omitempty"`
}

Jump to

Keyboard shortcuts

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