arieskmsstore

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	CreateSecret(
		ctx context.Context,
		params *secretsmanager.CreateSecretInput,
		optFns ...func(*secretsmanager.Options),
	) (*secretsmanager.CreateSecretOutput, error)

	GetSecretValue(
		ctx context.Context,
		params *secretsmanager.GetSecretValueInput,
		optFns ...func(*secretsmanager.Options),
	) (*secretsmanager.GetSecretValueOutput, error)

	DeleteSecret(
		ctx context.Context,
		params *secretsmanager.DeleteSecretInput,
		optFns ...func(*secretsmanager.Options),
	) (*secretsmanager.DeleteSecretOutput, error)
}

type DataWrapper

type DataWrapper struct {
	ID  string `json:"ID"`
	Bin []byte `json:"bin"`
}

type Store

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

func NewStore

func NewStore(
	client Client,
	keyPrefix string,
) *Store

func (*Store) Delete

func (s *Store) Delete(keysetID string) error

func (*Store) Get

func (s *Store) Get(keysetID string) ([]byte, error)

func (*Store) GetPath

func (s *Store) GetPath(
	keySetID string,
) string

func (*Store) Put

func (s *Store) Put(keysetID string, key []byte) error

Jump to

Keyboard shortcuts

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