keystore

package
v0.0.0-...-9bbed00 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key interface {
	KeyType() pb.KeyType
	PublicKey() (crypto.PublicKey, error)
	KeyID() int32

	Signer() (crypto.Signer, error)
}

type KeySet

type KeySet interface {
	AuthenticateAndDecrypt(ciphertext []byte) ([]byte, error)
	Encrypt(plaintext []byte) ([]byte, error)

	ActiveKey() (Key, error)
	AllVersions() ([]Key, error)
}

type KeyStore

type KeyStore interface {
	KeySet(ctx context.Context, keyname string, keyType pb.KeyType) (KeySet, error)
}

type KubernetesKeyStore

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

func NewKubernetesKeyStore

func NewKubernetesKeyStore(client kubernetes.Interface, namespace string, name string) (*KubernetesKeyStore, error)

func (*KubernetesKeyStore) KeySet

func (k *KubernetesKeyStore) KeySet(ctx context.Context, name string, keyType pb.KeyType) (KeySet, error)

func (*KubernetesKeyStore) WatchForever

func (c *KubernetesKeyStore) WatchForever(ctx context.Context) error

Run starts the secretsWatcher.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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