Documentation ¶
Overview ¶
Package configurator provides some helper functions to helpe you create default Trireme and Monitor configurations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSecretsFromPSK ¶
NewSecretsFromPSK creates secrets from a pre-shared key
Types ¶
type TriremeOptions ¶ added in v1.0.64
type TriremeOptions struct { ServerID string PSK []byte KeyPEM []byte CertPEM []byte CaCertPEM []byte SmartToken []byte TargetNetworks []string Resolver trireme.PolicyResolver EventCollector collector.EventCollector Processor packetprocessor.PacketProcessor Validity time.Duration ExternalIPCacheValidity time.Duration FilterQueue *fqconfig.FilterQueue ModeType constants.ModeType ImplType constants.ImplementationType ProcMountPoint string AporetoProcMountPoint string RemoteArg string MutualAuth bool PKI bool LocalProcess bool LocalContainer bool RemoteContainer bool // Monitor Configuration Monitor *monitor.Config }
TriremeOptions defines all the possible configuration options for Trireme configurator
func DefaultTriremeOptions ¶ added in v1.0.64
func DefaultTriremeOptions() *TriremeOptions
DefaultTriremeOptions returns a default set of options.
type TriremeResult ¶ added in v1.0.64
type TriremeResult struct { Trireme trireme.Trireme PublicKeyAdder secrets.PublicKeyAdder Secret secrets.Secrets Monitors monitor.Monitor }
TriremeResult is the result of the creation of Trireme
func NewTriremeWithOptions ¶ added in v1.0.64
func NewTriremeWithOptions(options *TriremeOptions) (*TriremeResult, error)
NewTriremeWithOptions creates all the Trireme objects based on the option struct
Click to show internal directories.
Click to hide internal directories.