secret

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalSecret

type LocalSecret struct {
	kms.BaseSecret
	MasterKey string
}

LocalSecret defines a SecretProvider that use a locally provided symmetric key

func (*LocalSecret) Decrypt

func (s *LocalSecret) Decrypt() error

func (*LocalSecret) Encrypt

func (s *LocalSecret) Encrypt() error

func (*LocalSecret) GetKey

func (s *LocalSecret) GetKey() string

GetKey returns the secret's key

func (*LocalSecret) GetMode

func (s *LocalSecret) GetMode() int

GetMode returns the encryption mode

func (*LocalSecret) GetPayload

func (s *LocalSecret) GetPayload() string

GetPayload returns the secret's payload

Jump to

Keyboard shortcuts

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