testutils

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SharedSecret = []byte(`6a328b8ec2024dd92dd64332164cc0425ddbde40cb7b81e055bf7b099096d068`)
View Source
var TestSubnetPath = conjurepath.Root + "/internal/test_assets/phantom_subnets.toml"

Functions

func SetupPhantomConnections

func SetupPhantomConnections(manager *dd.RegistrationManager, transport pb.TransportType, params protoreflect.ProtoMessage, libver uint) (clientToPhantom net.Conn, serverFromPhantom net.Conn, reg *dd.DecoyRegistration)

SetupPhantomConnections registers one session with the provided transport and registration manager using a pre-determined kay and phantom subnet file.

func SetupPhantomConnectionsSecret

func SetupPhantomConnectionsSecret(manager *dd.RegistrationManager, transport pb.TransportType, params protoreflect.ProtoMessage, sharedSecret []byte, libver uint, testSubnetPath string) (clientToPhantom net.Conn, serverFromPhantom net.Conn, reg *dd.DecoyRegistration)

func SetupRegistrationManager

func SetupRegistrationManager(transports ...Transport) *dd.RegistrationManager

Types

type Transport

type Transport struct {
	Index     pb.TransportType
	Transport dd.Transport
}

Jump to

Keyboard shortcuts

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