configmap

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(path string,
	devices map[string]*globals.OPCUADev,
	dms map[string]mappercommon.DeviceModel,
	protocols map[string]mappercommon.Protocol) error

Parse parse the configmap.

Types

type CustomizedValue

type CustomizedValue map[string]interface{}

CustomizedValue is the customized part for opc-ua protocol.

type ProtocolCommonConfigOPCUA

type ProtocolCommonConfigOPCUA struct {
	CustomizedValues CustomizedValue `json:"customizedValues,omitempty"`
}

ProtocolCommonConfigOPCUA is the opc-ua configuration.

type ProtocolConfigOPCUA

type ProtocolConfigOPCUA struct {
	// Required: The URL for opc server endpoint.
	URL string `json:"url,omitempty"`
	// Username for access opc server.
	// +optional
	UserName string `json:"userName,omitempty"`
	// Password file for access opc server.
	// +optional
	Password string `json:"password,omitempty"`
	// Defaults to "None". The value could be "None", "Basic128Rsa15", "Basic256",
	// "Basic256Sha256", "Aes128Sha256RsaOaep", "Aes256Sha256RsaPss".
	// +optional
	SecurityPolicy string `json:"securityPolicy,omitempty"`
	// Defaults to "None". The value could be "None", "Sign" and "SignAndEncrypt".
	// +optional
	SecurityMode string `json:"securityMode,omitempty"`
	// Certificate file for access opc server.
	// +optional
	Certificate string `json:"certificate,omitempty"`
	// PrivateKey file for access opc server.
	// +optional
	PrivateKey string `json:"privateKey,omitempty"`
	// Timeout seconds for the opc server connection.???
	// +optional
	Timeout int64 `json:"timeout,omitempty"`
}

Configuration for opc-ua protocol.

type VisitorConfigOPCUA

type VisitorConfigOPCUA struct {
	// Required: The ID of opc-ua node, e.g. "ns=1,i=1005"
	NodeID string `json:"nodeID,omitempty"`
	// The name of opc-ua node
	BrowseName string `json:"browseName,omitempty"`
}

Common visitor configurations for opc-ua protocol

Jump to

Keyboard shortcuts

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