Documentation ¶
Overview ¶
Package configurator provides some helper functions to helpe you create default Trireme and Monitor configurations.
Index ¶
- Constants
- func NewPKITriremeWithDockerMonitor(serverID string, networks []string, resolver trireme.PolicyResolver, ...) (trireme.Trireme, monitor.Monitor, enforcer.PublicKeyAdder)
- func NewPSKTriremeWithDockerMonitor(serverID string, networks []string, resolver trireme.PolicyResolver, ...) (trireme.Trireme, monitor.Monitor)
- func NewTriremeWithDockerMonitor(serverID string, networks []string, resolver trireme.PolicyResolver, ...) (trireme.Trireme, monitor.Monitor)
Constants ¶
View Source
const ( // DefaultDockerSocket is the default socket to use to communicate with docker DefaultDockerSocket = "/var/run/docker.sock" // DefaultDockerSocketType is unix DefaultDockerSocketType = "unix" )
Variables ¶
This section is empty.
Functions ¶
func NewPKITriremeWithDockerMonitor ¶
func NewPKITriremeWithDockerMonitor( serverID string, networks []string, resolver trireme.PolicyResolver, processor enforcer.PacketProcessor, eventCollector collector.EventCollector, syncAtStart bool, keyPEM []byte, certPEM []byte, caCertPEM []byte, ) (trireme.Trireme, monitor.Monitor, enforcer.PublicKeyAdder)
NewPKITriremeWithDockerMonitor creates a new network isolator. The calling module must provide a policy engine implementation and private/public key pair and parent certificate. All certificates are passed in PEM format. If a certificate pool is provided certificates will not be transmitted on the wire
func NewPSKTriremeWithDockerMonitor ¶
func NewPSKTriremeWithDockerMonitor( serverID string, networks []string, resolver trireme.PolicyResolver, processor enforcer.PacketProcessor, eventCollector collector.EventCollector, syncAtStart bool, key []byte, ) (trireme.Trireme, monitor.Monitor)
NewPSKTriremeWithDockerMonitor creates a new network isolator. The calling module must provide a policy engine implementation and a pre-shared secret
func NewTriremeWithDockerMonitor ¶
func NewTriremeWithDockerMonitor( serverID string, networks []string, resolver trireme.PolicyResolver, processor enforcer.PacketProcessor, eventCollector collector.EventCollector, secrets tokens.Secrets, syncAtStart bool, ) (trireme.Trireme, monitor.Monitor)
NewTriremeWithDockerMonitor TODO
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.