secret

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action uint

Action upon a secret

const (
	// Seal action
	Seal Action = iota
	// UnSeal action
	UnSeal
)

type EngineProvider

type EngineProvider interface {
	// Seal secrets
	Seal(secrets *Secrets) error
	// unseal secrets
	UnSeal(secrets *Secrets) error
	// Apply action on secrets
	Apply(action Action, secrets *Secrets) error
}

EngineProvider is an interface of a secret engine provider

func NewSecretsEngineProvider

func NewSecretsEngineProvider(uri string) (EngineProvider, error)

NewSecretsEngineProvider create new secret engine provider

type Secrets

type Secrets map[string]string

Secrets store

func (*Secrets) Scan

func (s *Secrets) Scan(value interface{}) error

Scan decodes a JSON-encoded value

func (Secrets) Value

func (s Secrets) Value() (driver.Value, error)

values returns the JSON-encoded representation

Jump to

Keyboard shortcuts

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