secretsplitlock

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

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

type HubAuthParams struct {
	URL      string
	APIToken string
	Subject  string
}

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 WithLogger

func WithLogger(l log.Logger) Option

WithLogger sets the custom logger.

func WithSecretSplitter

func WithSecretSplitter(s sss.SecretSplitter) Option

WithSecretSplitter sets the custom secret splitter.

type Options

type Options struct {
	// contains filtered or unexported fields
}

Options configures secret split lock dependencies.

Jump to

Keyboard shortcuts

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