package
0.0.0-20200601021147-e1aa8c7e24af
Repository: https://github.com/hello2mao/go-common.git
Documentation: pkg.go.dev
# Functions
GetCSPFromOpts returns a CSP created according to the options passed in input.
GetDefault returns a non-ephemeral (long-term) CSP.
GetDefaultOpts offers a default implementation for Opts returns a new instance every time.
InitFactories must be called before using factory interfaces It is acceptable to call with config = nil, in which case some defaults will get used Error is returned only if defaultCSP cannot be found.
# Constants
SoftwareBasedFactoryName is the name of the factory of the software-based CSP implementation.
# Structs
No description provided by the author
FactoryOpts holds configuration information used to initialize factory implementations.
Pluggable Keystores, could add JKS, P12, etc..
InmemKeystoreOpts - empty, as there is no config for the in-memory keystore.
SWFactory is the factory of the software-based CSP.
SwOpts contains options for the SWFactory.
# Interfaces
CSPFactory is used to get instances of the CSP interface.