opcua

package
v0.16.12 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: BSD-3-Clause, GPL-3.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// Discovery Services
	ServiceFindServers          = 422
	ServiceFindServersOnNetwork = 12208
	ServiceGetEndpoints         = 428
	ServiceRegisterServer       = 437
	ServiceRegisterServer2      = 12211

	// SecureChannel Services
	ServiceOpenSecureChannel  = 446
	ServiceCloseSecureChannel = 452

	// Session Services
	ServiceCreateSession   = 461
	ServiceActivateSession = 467
	ServiceCloseSession    = 473
	ServiceCancel          = 479

	// Node Management Services
	ServiceAddNodes         = 488
	ServiceAddReferences    = 494
	ServiceDeleteNodes      = 500
	ServiceDeleteReferences = 506

	// View Services
	ServiceBrowse                        = 527
	ServiceBrowseNext                    = 533
	ServiceTranslateBrowsePathsToNodeIds = 554

	// Query Services
	ServiceQueryFirst = 615
	ServiceQueryNext  = 621

	// Attribute Services
	ServiceRead          = 631
	ServiceHistoryRead   = 664
	ServiceWrite         = 673
	ServiceHistoryUpdate = 700

	// Method Services
	ServiceCall = 712

	// MonitoredItem Services
	ServiceCreateMonitoredItems = 751
	ServiceModifyMonitoredItems = 763
	ServiceSetMonitoringMode    = 769
	ServiceSetTriggering        = 775
	ServiceDeleteMonitoredItems = 781

	// Subscription Services
	ServiceCreateSubscription    = 787
	ServiceModifySubscription    = 793
	ServiceSetPublishingMode     = 799
	ServicePublish               = 826
	ServiceRepublish             = 832
	ServiceTransferSubscriptions = 841
	ServiceDeleteSubscriptions   = 847
)

OPC UA Service IDs (subset of commonly used services)

View Source
const (
	SecurityModeInvalid        = 0
	SecurityModeNone           = 1
	SecurityModeSign           = 2
	SecurityModeSignAndEncrypt = 3
)

OPC UA Security Modes

Variables

View Source
var Decoder = &decoder.StreamDecoder{
	Type:        types.Type_NC_OPCUA,
	Name:        serviceOPCUA,
	Description: "OPC Unified Architecture (OPC UA) is used for ICS/SCADA machine-to-machine communication",
	PostInit: func(d *decoder.StreamDecoder) error {
		var err error
		opcuaLog, _, err = logging.InitZapLogger(
			decoderconfig.Instance.Out,
			"opcua",
			decoderconfig.Instance.Debug,
		)
		return err
	},

	Specificity: core.SpecificityStructural,

	CanDecode: func(client, server []byte) bool {

		return canDecodeOPCUA(client) || canDecodeOPCUA(server)
	},
	DeInit: func(sd *decoder.StreamDecoder) error {
		return opcuaLog.Sync()
	},
	Factory: &opcuaReader{},
	Typ:     core.TCP,
}

Decoder for protocol analysis and writing audit records to disk.

Functions

This section is empty.

Types

type NodeId

type NodeId struct {
	EncodingType uint8
	Namespace    uint16
	NumericId    uint32
	StringId     string
}

NodeId represents an OPC UA NodeId.

func (*NodeId) String

func (n *NodeId) String() string

Jump to

Keyboard shortcuts

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