secret

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbortedError

type AbortedError struct {
	ID string
}

AbortedError is an error implementation that includes the id of the aborted message.

func (*AbortedError) Error

func (e *AbortedError) Error() string

type Secret

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

Secret represents a secret.

func New

func New(cfg *config.Configuration, vc VaultClient, secretsClient s3.Client) (*Secret, error)

New returns a new secret.

func (*Secret) Handler

func (s *Secret) Handler(ctx context.Context, msg *engine.Message) error

Handler handles secret messages that are delegated by the engine.

type VaultClient added in v1.10.0

type VaultClient interface {
	Write(path string, data map[string]interface{}) error
}

VaultClient is an interface to represent methods called to action upon Vault

Jump to

Keyboard shortcuts

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