Versions in this module Expand all Collapse all v1 v1.0.2 May 18, 2023 Changes in this version + type Key interface + ID func() string + type KeyManager interface + GenerateKey func(ctx context.Context, id string, keyType KeyType) (Key, error) + GetKey func(ctx context.Context, id string) (Key, error) + GetKeys func(ctx context.Context) ([]Key, error) + type KeyType int + const ECP256 + const ECP384 + const KeyTypeUnset + const RSA2048 + const RSA4096 + func (keyType KeyType) GenerateSigner() (crypto.Signer, error) + func (keyType KeyType) String() string + type Repository struct + KeyManager KeyManager + func (repo *Repository) Clear() + func (repo *Repository) GetKeyManager() KeyManager + func (repo *Repository) SetKeyManager(keyManager KeyManager) + type SVIDKeyManager interface + GenerateKey func(ctx context.Context, currentKey Key) (Key, error) + GetKeys func(ctx context.Context) ([]Key, error) + func ForSVID(km KeyManager) SVIDKeyManager + type V1 struct + func (v1 V1) GenerateKey(ctx context.Context, id string, keyType KeyType) (Key, error) + func (v1 V1) GetKey(ctx context.Context, id string) (Key, error) + func (v1 V1) GetKeys(ctx context.Context) ([]Key, error)