Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(secret []byte, params *HubAuthParams, options ...Option) (secretlock.Service, error)
New returns a new secret split lock instance.
Types ¶
type HubAuthParams ¶
HubAuthParams defines parameters for HubAuth to get the secret share.
type Option ¶
type Option func(options *Options)
Option configures Options.
func WithCacheProvider ¶
func WithCacheProvider(p ariesstorage.Provider) Option
WithCacheProvider sets a cache provider.
func WithHTTPClient ¶
func WithHTTPClient(c support.HTTPClient) Option
WithHTTPClient sets the custom HTTP client.
func WithSecretSplitter ¶
func WithSecretSplitter(s sss.SecretSplitter) Option
WithSecretSplitter sets the custom secret splitter.
Click to show internal directories.
Click to hide internal directories.