flow

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 Imports: 18 Imported by: 3

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.

Jump to

Keyboard shortcuts

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