dmiserver

package
v1.14.3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 24 Imported by: 2

Documentation

Index

Constants

View Source
const (
	SockPath = "/etc/kubeedge/dmi.sock"
	Limit    = 1000
	Burst    = 100
)
View Source
const (
	PropertyType = "type"
)

Variables

This section is empty.

Functions

func CreateMessageTwinUpdate

func CreateMessageTwinUpdate(name, valueType, value string) ([]byte, error)

CreateMessageTwinUpdate create twin update message.

func StartDMIServer

func StartDMIServer(cache *DMICache)

Types

type DMICache

type DMICache struct {
	MapperMu        *sync.Mutex
	DeviceMu        *sync.Mutex
	DeviceModelMu   *sync.Mutex
	MapperList      map[string]*pb.MapperInfo
	DeviceModelList map[string]*v1alpha2.DeviceModel
	DeviceList      map[string]*v1alpha2.Device
}

type DeviceTwinUpdate

type DeviceTwinUpdate struct {
	types.BaseMessage
	Twin map[string]*types.MsgTwin `json:"twin"`
}

DeviceTwinUpdate the structure of device twin update.

Jump to

Keyboard shortcuts

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