Versions in this module Expand all Collapse all v0 v0.0.1 Jan 1, 2026 Changes in this version + var ErrCertificateGeneration = errors.New("certificate generation failed") + var ErrConnectionFailed = errors.New("connection failed") + var ErrEndpointNotFound = errors.New("no suitable endpoint found") + var ErrInvalidAuthMethod = errors.New("invalid authentication method") + var ErrInvalidConfiguration = errors.New("invalid configuration") + var ErrInvalidEndpoint = errors.New("invalid endpoint") + var ErrInvalidSecurityMode = errors.New("invalid security mode") + var ErrInvalidSecurityPolicy = errors.New("invalid security policy") + var ErrStatusCodeParsing = errors.New("status code parsing failed") + type AuthenticationError struct + Err error + Method string + func (e *AuthenticationError) Error() string + func (e *AuthenticationError) Unwrap() error + type CertificateError struct + Err error + Operation string + Path string + func (e *CertificateError) Error() string + func (e *CertificateError) Unwrap() error + type ConnectionState opcua.ConnState + const Closed + const Connected + const Connecting + const Disconnected + const Reconnecting + func (c ConnectionState) String() string + type DebugLogger struct + Log telegraf.Logger + func (l *DebugLogger) Write(p []byte) (n int, err error) + type EndpointError struct + Endpoint string + Err error + func (e *EndpointError) Error() string + func (e *EndpointError) Unwrap() error + type OpcUAClient struct + Client *opcua.Client + Config *OpcUAClientConfig + Log telegraf.Logger + func (o *OpcUAClient) Connect(ctx context.Context) error + func (o *OpcUAClient) Disconnect(ctx context.Context) error + func (o *OpcUAClient) NamespaceArray() []string + func (o *OpcUAClient) SetupOptions() error + func (o *OpcUAClient) State() ConnectionState + func (o *OpcUAClient) StatusCodeOK(code ua.StatusCode) bool + func (o *OpcUAClient) UpdateNamespaceArray(ctx context.Context) error + type OpcUAClientConfig struct + AuthMethod string + Certificate string + ClientTrace bool + ConnectTimeout config.Duration + Endpoint string + OptionalFields []string + Password config.Secret + PrivateKey string + RemoteCertificate string + RequestTimeout config.Duration + SecurityMode string + SecurityPolicy string + SessionTimeout config.Duration + Username config.Secret + Workarounds OpcUAWorkarounds + func (o *OpcUAClientConfig) CreateClient(telegrafLogger telegraf.Logger) (*OpcUAClient, error) + func (o *OpcUAClientConfig) Validate() error + type OpcUAWorkarounds struct + AdditionalValidStatusCodes []string + type SecurityError struct + Err error + Mode string + Policy string + func (e *SecurityError) Error() string + func (e *SecurityError) Unwrap() error