Documentation ¶
Index ¶
Constants ¶
View Source
const ( DeviceConfigmapCertificatePath string = "/etc/edgedevice/certificate" DeviceSecretPasswordPath string = "/etc/edgedevice/secret/password" )
DeviceConfigmapCertificatePath default cert path
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceCommandHandlerOPCUA ¶
type DeviceCommandHandlerOPCUA struct { HandlerMetaData *HandlerMetaData // contains filtered or unexported fields }
DeviceCommandHandlerOPCUA handler for opcua
type DeviceShifu ¶
type DeviceShifu struct {
// contains filtered or unexported fields
}
DeviceShifu implemented from deviceshifuBase and OPC UA Setting and client
func New ¶
func New(deviceShifuMetadata *deviceshifubase.DeviceShifuMetaData) (*DeviceShifu, error)
New This function creates a new Device Shifu based on the configuration
func (*DeviceShifu) Start ¶
func (ds *DeviceShifu) Start(stopCh <-chan struct{}) error
Start start opcua telemetry
type HandlerMetaData ¶
type HandlerMetaData struct {
// contains filtered or unexported fields
}
HandlerMetaData MetaData for OPC UA handler
type OPCUAInstruction ¶
type OPCUAInstruction struct {
OPCUAInstructionProperty *OPCUAInstructionProperty `yaml:"instructionProperties,omitempty"`
}
OPCUAInstruction OPCUA Instruction
type OPCUAInstructionProperty ¶
type OPCUAInstructionProperty struct {
OPCUANodeID string `yaml:"OPCUANodeID"`
}
OPCUAInstructionProperty OPCUA Instruction's Property
type OPCUAInstructions ¶
type OPCUAInstructions struct {
Instructions map[string]*OPCUAInstruction
}
OPCUAInstructions OPCUA Instructions
func CreateOPCUAInstructions ¶
func CreateOPCUAInstructions(dsInstructions *deviceshifubase.DeviceShifuInstructions) *OPCUAInstructions
CreateOPCUAInstructions Create OPCUA Instructions
Click to show internal directories.
Click to hide internal directories.