entities

package
v0.0.7-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	ID uint64 `yaml:"id" json:"id"`

	AttestPub  string `yaml:"att-pub" json:"att_pub"`
	EKCert     string `yaml:"ek-cert" json:"ek_cert"`
	EventLog   []byte `yaml:"event-log" json:"event_log"`
	HashAlgoId uint32 `yaml:"hash-algo" json:"hash_algo"`
	Model      string `yaml:"model" json:"model"`
	Serial     string `yaml:"serial" json:"serial"`
	SigningPub string `yaml:"signing-pub" json:"signing_pub"`

	entities.KeyValueEntity `yaml:"-" json:"-"`
}

func (*Device) EntityID

func (d *Device) EntityID() uint64

func (*Device) SetEntityID

func (d *Device) SetEntityID(id uint64)

type DeviceProfile

type DeviceProfile struct {
	ID       uint64 `yaml:"id" json:"id"`
	Model    string `yaml:"model" json:"model"`
	EventLog []byte `yaml:"eventLog" json:"eventLog"`
}

func (*DeviceProfile) EntityID

func (dp *DeviceProfile) EntityID() uint64

func (*DeviceProfile) SetEntityID

func (dp *DeviceProfile) SetEntityID(id uint64)

Jump to

Keyboard shortcuts

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