secret

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurableDriver

type ConfigurableDriver interface {
	Driver
	Configure(config map[string]interface{}) error
}

type Driver

type Driver interface {
	Type() string
	GetKey() string
	Encrypt(data string) (string, error)
	// if key is set, use that one for decryption, otherwise use the key set in the driver (if available)
	Decrypt(encrypted string, key string) (string, error)
}

func SecretDriverFactory

func SecretDriverFactory(name string) (secretDriver Driver, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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