package
2.0.0+incompatible
Repository: https://github.com/nginxinc/nginx-service-mesh.git
Documentation: pkg.go.dev

# Functions

NewInMemorySecureConfig creates a new InMemorySecureConfig.
NewOnDiskSecureConfig make an OnDiskSecureConfig.
NewSecureMessageBus returns a new instance of a Secure Message Bus.
VerifyServerCertificate uses a custom CA File from a securable config to validate a NATS server during connection.

# Variables

ErrInvalidConfig indicates an invalid secure NATs configuration.
ErrNoCertificate indicates that no certificate was presented.
ErrNoConnection indicates there is no nats connection.
ErrNoServerName indicates that no server name was provided.

# Structs

InMemorySecureConfig implements the securableconfig interface from the nats package in a way that allows you to provide an in memory certificate getter to the NATS client.
OnDiskSecureConfig contains the configuration needed to connect to NATs securely.
RootCertParseError indicates that the root certificate could not be parsed.
SecureMessageBus securely connects to NATs and provides methods to publish and subscribe to subjects.

# Interfaces

SecurableConfig implements everything that NewSecureMessageBus needs to kick off a secure connection to a NATS server.