Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CleanupFn ¶
type CleanupFn func()
CleanupFn defines a function used for cleanup. Usually you would like to defer this function for after the whole process is done and you need to clean up before shutting down.
func NewSecurityFromConfig ¶
func NewSecurityFromConfig(cfg *config.ServiceConfig) (chain.SecurityChain, CleanupFn, error)
NewSecurityFromConfig sets up a full security chain from a a given service configuration.
type ConfiguredSecurity ¶
type ConfiguredSecurity struct { Chain chain.SecurityChain KeyStore tools.KeyStore ACLManager *acl.BackendLadonManager Cleanup CleanupFn }
ConfiguredSecurity holds the entities of the fully configured security. It holds the SecurityChain, the KeyStore, ACLManager (if configured) and optional cleanup function.
func NewConfiguredSecurityFromConfig ¶
func NewConfiguredSecurityFromConfig(cfg *config.ServiceConfig) (*ConfiguredSecurity, error)
NewConfiguredSecurityFromConfig sets up a full security from a given service configuration.
Click to show internal directories.
Click to hide internal directories.